pitaya-launcher/Makefile

23 lines
530 B
Makefile

DESTDIR=./
INSTALL_LOCATION=$(DESTDIR)/opt/pitaya
ELECTRON_ARCH=x64
ifeq ($(DEB_TARGET_ARCH), i386)
ELECTRON_ARCH=ia32
endif
all: build
build:
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
npm run clean
npm run compile
npm run package -- --arch=$(ELECTRON_ARCH)
install:
mkdir -p $(INSTALL_LOCATION)
cp -r build/pitaya-linux-$(ELECTRON_ARCH)/* $(INSTALL_LOCATION)/