Split builder config
This commit is contained in:
parent
8e05e3c618
commit
977ab0290f
7 changed files with 82 additions and 35 deletions
13
app/builder-config-appx.yaml
Normal file
13
app/builder-config-appx.yaml
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
extends: app/builder-config-base.yaml
|
||||||
|
win:
|
||||||
|
target:
|
||||||
|
- NSIS
|
||||||
|
- appx
|
||||||
|
icon: app/icons/win/icon.ico
|
||||||
|
appx:
|
||||||
|
applicationId: OpenFlexureEV
|
||||||
|
identityName: 60425J.T.Collins.OpenFlexureeV
|
||||||
|
publisher: CN=CC867BEF-0715-4D48-8035-8881993DBB68
|
||||||
|
publisherDisplayName: J. T. Collins
|
||||||
|
backgroundColor: '#C5247F'
|
||||||
|
electronVersion: 4.1.5
|
||||||
27
app/builder-config-base.yaml
Normal file
27
app/builder-config-base.yaml
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
directories:
|
||||||
|
output: release-builds
|
||||||
|
buildResources: app/resources
|
||||||
|
appId: org.openflexure.ev
|
||||||
|
artifactName: ${name}-${os}-${arch}.${ext}
|
||||||
|
asar: true
|
||||||
|
files:
|
||||||
|
- filter:
|
||||||
|
- '**/*'
|
||||||
|
- '!**/node_modules/*/{CHANGELOG.md,README.md,README,readme.md,readme}'
|
||||||
|
- '!**/node_modules/*/{test,__tests__,tests,powered-test,example,examples}'
|
||||||
|
- '!**/node_modules/*.d.ts'
|
||||||
|
- '!**/node_modules/.bin'
|
||||||
|
- '!**/*.{iml,o,hprof,orig,pyc,pyo,rbc,swp,csproj,sln,xproj}'
|
||||||
|
- '!.editorconfig'
|
||||||
|
- '!**/._*'
|
||||||
|
- '!**/{.DS_Store,.git,.hg,.svn,CVS,RCS,SCCS,.gitignore,.gitattributes}'
|
||||||
|
- '!**/{__pycache__,thumbs.db,.flowconfig,.idea,.vs,.nyc_output}'
|
||||||
|
- '!**/{appveyor.yml,.travis.yml,circle.yml}'
|
||||||
|
- '!**/{npm-debug.log,yarn.lock,.yarn-integrity,.yarn-metadata.json}'
|
||||||
|
- '!**/.env.*'
|
||||||
|
- '!**/{.idea,.vscode}${/*}'
|
||||||
|
- '!**/app/installers${/*}'
|
||||||
|
- '!**/hooks${/*}'
|
||||||
|
- '!**/platforms${/*}'
|
||||||
|
- '!**/release-builds${/*}'
|
||||||
|
- '!src${/*}'
|
||||||
13
app/builder-config-dmg.yaml
Normal file
13
app/builder-config-dmg.yaml
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
extends: app/builder-config-base.yaml
|
||||||
|
mac:
|
||||||
|
icon: app/icons/mac/icon.icns
|
||||||
|
category: public.app-category.utilities
|
||||||
|
dmg:
|
||||||
|
contents:
|
||||||
|
- x: 110
|
||||||
|
y: 150
|
||||||
|
- x: 240
|
||||||
|
y: 150
|
||||||
|
type: link
|
||||||
|
path: /Applications
|
||||||
|
electronVersion: 4.1.5
|
||||||
12
app/builder-config-linux.yaml
Normal file
12
app/builder-config-linux.yaml
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
extends: app/builder-config-base.yaml
|
||||||
|
linux:
|
||||||
|
target:
|
||||||
|
- AppImage
|
||||||
|
- target: deb
|
||||||
|
arch:
|
||||||
|
- x64
|
||||||
|
- armv7l
|
||||||
|
icon: app/icons/png/1024x1024.png
|
||||||
|
deb:
|
||||||
|
category: Science
|
||||||
|
electronVersion: 4.1.5
|
||||||
11
app/builder-config-raspi.yaml
Normal file
11
app/builder-config-raspi.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
extends: app/builder-config-base.yaml
|
||||||
|
linux:
|
||||||
|
target:
|
||||||
|
- AppImage
|
||||||
|
- target: deb
|
||||||
|
arch:
|
||||||
|
- armv7l
|
||||||
|
icon: app/icons/png/1024x1024.png
|
||||||
|
deb:
|
||||||
|
category: Science
|
||||||
|
electronVersion: 3.0.13
|
||||||
|
|
@ -1,39 +1,6 @@
|
||||||
directories:
|
extends: app/builder-config-base.yaml
|
||||||
output: release-builds
|
|
||||||
buildResources: app/resources
|
|
||||||
appId: org.openflexure.ev
|
|
||||||
artifactName: ${name}-${os}-${arch}.${ext}
|
|
||||||
asar: true
|
|
||||||
files:
|
|
||||||
- filter:
|
|
||||||
- '**/*'
|
|
||||||
- '!**/node_modules/*/{CHANGELOG.md,README.md,README,readme.md,readme}'
|
|
||||||
- '!**/node_modules/*/{test,__tests__,tests,powered-test,example,examples}'
|
|
||||||
- '!**/node_modules/*.d.ts'
|
|
||||||
- '!**/node_modules/.bin'
|
|
||||||
- '!**/*.{iml,o,hprof,orig,pyc,pyo,rbc,swp,csproj,sln,xproj}'
|
|
||||||
- '!.editorconfig'
|
|
||||||
- '!**/._*'
|
|
||||||
- '!**/{.DS_Store,.git,.hg,.svn,CVS,RCS,SCCS,.gitignore,.gitattributes}'
|
|
||||||
- '!**/{__pycache__,thumbs.db,.flowconfig,.idea,.vs,.nyc_output}'
|
|
||||||
- '!**/{appveyor.yml,.travis.yml,circle.yml}'
|
|
||||||
- '!**/{npm-debug.log,yarn.lock,.yarn-integrity,.yarn-metadata.json}'
|
|
||||||
- '!**/.env.*'
|
|
||||||
- '!**/{.idea,.vscode}${/*}'
|
|
||||||
- '!**/app/installers${/*}'
|
|
||||||
- '!**/hooks${/*}'
|
|
||||||
- '!**/platforms${/*}'
|
|
||||||
- '!**/release-builds${/*}'
|
|
||||||
- '!src${/*}'
|
|
||||||
win:
|
win:
|
||||||
target:
|
target:
|
||||||
- NSIS
|
- NSIS
|
||||||
- appx
|
|
||||||
icon: app/icons/win/icon.ico
|
icon: app/icons/win/icon.ico
|
||||||
appx:
|
|
||||||
applicationId: OpenFlexureEV
|
|
||||||
identityName: 60425J.T.Collins.OpenFlexureeV
|
|
||||||
publisher: CN=CC867BEF-0715-4D48-8035-8881993DBB68
|
|
||||||
publisherDisplayName: J. T. Collins
|
|
||||||
backgroundColor: '#C5247F'
|
|
||||||
electronVersion: 4.1.5
|
electronVersion: 4.1.5
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,12 @@
|
||||||
"license": "GNU General Public License v3.0 ",
|
"license": "GNU General Public License v3.0 ",
|
||||||
"main": "./app/app.js",
|
"main": "./app/app.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dist:all": "electron-builder --linux --win --config app/builder-config.yaml",
|
"dist:all": "npm run dist:linux && npm run dist:raspi && npm run dist:win",
|
||||||
|
"dist:linux": "electron-builder --linux --config app/builder-config-linux.yaml",
|
||||||
|
"dist:raspi": "electron-builder --linux --config app/builder-config-raspi.yaml",
|
||||||
"dist:win": "electron-builder --win --config app/builder-config-win.yaml",
|
"dist:win": "electron-builder --win --config app/builder-config-win.yaml",
|
||||||
|
"dist:appx": "electron-builder --win --config app/builder-config-appx.yaml",
|
||||||
|
"dist:dmg": "electron-builder --mac --config app/builder-config-dmg.yaml",
|
||||||
"release": "npm run build:web && npm run dist:all",
|
"release": "npm run build:web && npm run dist:all",
|
||||||
"build:android": "npm run setup-webpack-config && tns build android --bundle --env.production && npm run remove-webpack-config",
|
"build:android": "npm run setup-webpack-config && tns build android --bundle --env.production && npm run remove-webpack-config",
|
||||||
"build:ios": "npm run setup-webpack-config && tns build ios --bundle --env.production && npm run remove-webpack-config",
|
"build:ios": "npm run setup-webpack-config && tns build ios --bundle --env.production && npm run remove-webpack-config",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue