Packaging Debian fonctionnel
This commit is contained in:
parent
4df989270e
commit
331db1e035
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)/
|
||||
|
|
|
@ -8,12 +8,6 @@ Homepage:
|
|||
Vcs-Git: https://forge.cadoles.com/wpetit/pitaya.git
|
||||
Vcs-Browser: https://forge.cadoles.com/wpetit/pitaya
|
||||
|
||||
Package: pitaya_amd64
|
||||
Architecture: amd64
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||
Description: Lanceur d'application pour GNU/Linux
|
||||
|
||||
Package: pitaya_ia32
|
||||
Architecture: ia32
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||
Package: pitaya
|
||||
Architecture: any
|
||||
Description: Lanceur d'application pour GNU/Linux
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
build/pitaya-linux-x64/* opt/pitaya
|
|
@ -1 +0,0 @@
|
|||
build/pitaya-linux-ia32/* opt/pitaya
|
|
@ -2,7 +2,16 @@
|
|||
# -*- makefile -*-
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
export DH_VERBOSE=1
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
||||
override_dh_makeshlibs:
|
||||
# Disabled
|
||||
|
||||
override_dh_shlibdeps:
|
||||
# Disabled
|
||||
|
||||
override_dh_strip:
|
||||
# Disabled
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
"scripts": {
|
||||
"test": "./node_modules/.bin/nodeunit test",
|
||||
"start": "./node_modules/.bin/electron .",
|
||||
"compile": "./node_modules/.bin/jsx -x js src dist",
|
||||
"compile": "./node_modules/.bin/jsx -x js --no-cache-dir src dist",
|
||||
"clean": "rm -rf dist/* build/*",
|
||||
"package": "./node_modules/.bin/electron-packager ./ pitaya --prune --ignore=res/ --ignore=scripts/ --ignore=debian/ --ignore=test/ --platform=linux --arch=ia32,x64 --version=0.33.6 --out=build --overwrite --app-version 0.0.0",
|
||||
"package": "./node_modules/.bin/electron-packager ./ pitaya --out=./build --app-version 0.0.0 --version=0.33.6 --prune --ignore='/res(/|$)' --ignore='/debian(/|$)' --ignore='/scripts(/|$)' --ignore='/build(/|$)' --ignore='/test(/|$)' --ignore='/electron-packager(/|$)' --ignore='/electron-tmp-.+(/|$)' --platform=linux --overwrite",
|
||||
"build": "npm run clean && npm run compile && npm run package"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
apt-get install --yes --no-install-recommends curl ca-certificates || exit 1
|
||||
curl --silent --location https://deb.nodesource.com/setup_4.x | bash - || exit 1
|
||||
apt-get install --yes nodejs || exit 1
|
Loading…
Reference in New Issue