Commit d318d461 authored by Pouya Kary's avatar Pouya Kary

building for linux too?

parent 1b5688a6
designs/icon/icon.png

534 KB | W: | H:

designs/icon/icon.png

286 KB | W: | H:

designs/icon/icon.png
designs/icon/icon.png
designs/icon/icon.png
designs/icon/icon.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -47,6 +47,9 @@
'unicode-match-property-value-ecmascript',
]
const CopyrightNotice =
'Copyright 2016-present, Pouya KAry. All rights reserved.'
//
// ─── UPDATING PACKAGE JSON ──────────────────────────────────────────────────────
//
......@@ -278,7 +281,7 @@
'--arch=x64',
'--overwrite=true',
'--app-bundle-id="us.kary.orchestra"',
'--app-copyright="Copyright 2016-present, Pouya KAry. All rights reserved."',
'--app-copyright="' + CopyrightNotice + '"',
'--app-version="' + packageJson.version + '"',
'--icon=' + iconFile,
'--name="' + packageJson.productName + '"',
......@@ -342,7 +345,31 @@
//
async function packOrchestraForLinux ( ) {
// to be continued...
const iconFile =
( isProductionBuild ? './designs/icon/icon.png'
: './designs/icon-nightly/icns/icon.icns'
)
// build script
const packBashScript = [
'electron-packager',
' _compiled',
'"' + packageJson.productName + '"',
'--platform=linux',
'--arch=x64',
'--overwrite=true',
'--app-bundle-id="us.kary.orchestra"',
'--app-copyright="' + CopyrightNotice + '"',
'--app-version="' + packageJson.version + '"',
'--icon=' + iconFile,
'--name="' + packageJson.productName + '"',
'--out=_release',
'--protocol="orchestra"',
'--protocol-name="Orchestra"',
]
// building
await shell( ...packBashScript )
}
//
......
......@@ -10,11 +10,12 @@
"scripts": {
"test": "echo 'can not do right now' > /dev/null",
"pack": "gulp --pack",
"build": "gulp --pack --installers --mac --production-build",
"build-mac": "gulp --pack --installers --mac --production-build",
"build-linux": "gulp --pack --installers --linux --production-build",
"debug": "gulp --debug",
"dist-mac": "gulp --pack --installers --mac",
"electron": "electron ./_compiled/main.js --enable-logging",
"configure": "npm install -g gulp gulp-cli electron-installer-dmg"
"configure": "npm install -g gulp gulp-cli electron-installer-dmg electron-installer-debian"
},
"repository": {
"type": "git",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment