22 lines
506 B
Makefile
22 lines
506 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 update
|
|
apt-get install --yes --no-install-recommends curl ca-certificates
|
|
curl --silent --location https://deb.nodesource.com/setup_6.x | bash -
|
|
apt-get install --yes nodejs
|
|
npm install --ignore-scripts
|
|
ARCH=$(ELECTRON_ARCH) npm run build
|
|
|
|
install:
|
|
mkdir -p $(INSTALL_LOCATION)
|
|
cp -r build/pitaya-linux-$(ELECTRON_ARCH)/* $(INSTALL_LOCATION)/
|