Packaging Debian fonctionnel
This commit is contained in:
23
Makefile
23
Makefile
@ -1,11 +1,22 @@
|
||||
DESTDIR=./
|
||||
INSTALL_LOCATION=$(DESTDIR)/opt/pitaya
|
||||
ELECTRON_ARCH=x64
|
||||
|
||||
ifeq ($(DEB_TARGET_ARCH), i386)
|
||||
ELECTRON_ARCH=ia32
|
||||
endif
|
||||
|
||||
build: clean
|
||||
npm run build
|
||||
all: build
|
||||
|
||||
clean: install-deps
|
||||
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-deps:
|
||||
./scripts/install-build-deps.sh
|
||||
npm install
|
||||
install:
|
||||
mkdir -p $(INSTALL_LOCATION)
|
||||
cp -r build/pitaya-linux-$(ELECTRON_ARCH)/* $(INSTALL_LOCATION)/
|
||||
|
Reference in New Issue
Block a user