pitaya-launcher/Makefile

22 lines
507 B
Makefile
Raw Normal View History

2015-10-22 13:49:38 +02:00
DESTDIR=./
INSTALL_LOCATION=$(DESTDIR)/opt/pitaya
ELECTRON_ARCH=x64
2015-10-17 11:34:37 +02:00
2015-10-22 13:49:38 +02:00
ifeq ($(DEB_TARGET_ARCH), i386)
ELECTRON_ARCH=ia32
endif
2015-10-17 11:34:37 +02:00
2015-10-22 13:49:38 +02:00
all: build
2015-10-17 11:34:37 +02:00
2015-10-22 13:49:38 +02:00
build:
2016-03-03 10:20:47 +01:00
apt-get update
2015-10-22 13:49:38 +02:00
apt-get install --yes --no-install-recommends curl ca-certificates
curl --silent --location https://deb.nodesource.com/setup_0.12 | bash -
apt-get install --yes nodejs
npm install --ignore-scripts
ARCH=$(ELECTRON_ARCH) npm run build
2015-10-17 11:34:37 +02:00
2015-10-22 13:49:38 +02:00
install:
mkdir -p $(INSTALL_LOCATION)
cp -r build/pitaya-linux-$(ELECTRON_ARCH)/* $(INSTALL_LOCATION)/