Improve linux build process. Caught an issue where the binary mcopy is conflicting with another in the mtools library. Will be re-naming the binary mcopy-app on linux. Will revist this after current release.

This commit is contained in:
mmcw-dev 2018-03-15 14:52:08 -04:00
parent 116cb46fcd
commit c128fa2871
2 changed files with 12 additions and 2 deletions

10
app/build_linux.json Normal file
View File

@ -0,0 +1,10 @@
{
"dest": "../dest/installers/",
"icon": "./assets/icons/icon.png",
"categories": [
"Video"
],
"lintianOverrides": [
"changelog-file-missing-in-native-package"
]
}

View File

@ -1,6 +1,6 @@
#!/bin/bash
#package app
./node_modules/.bin/electron-packager . mcopy --overwrite --asar=true --platform=linux --arch=x64 --icon=assets/icons/icon.png --prune=true --out=../dist
./node_modules/.bin/electron-packager . mcopy --overwrite --asar --platform=linux --arch=x64 --icon=assets/icons/icon.png --prune=true --out=../dist
#build a .deb installer
./node_modules/.bin/electron-installer-debian --src ../dist/mcopy-linux-x64/ --dest ../dist/installers/ --arch amd64
./node_modules/.bin/electron-installer-debian --src ../dist/mcopy-linux-x64/ --arch amd64 --config build_linux.json