Merge branch 'master' into 'master'

Support APPX builds and split builder into separate CI and Windows-only configs

See merge request openflexure/openflexure-microscope-jsclient!9
This commit is contained in:
Joel Collins 2019-05-03 17:42:44 +00:00
commit f4c9523643
14 changed files with 93 additions and 72 deletions

View file

@ -8,6 +8,4 @@ build:
paths:
- release-builds/*.exe
- release-builds/*.deb
- release-builds/*.AppImage
only:
- tags
- release-builds/*.AppImage

View file

@ -0,0 +1,38 @@
directories:
output: release-builds
buildResources: app/resources
appId: org.openflexure.ev
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:
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

52
app/builder-config.yaml Normal file
View file

@ -0,0 +1,52 @@
directories:
output: release-builds
buildResources: app/resources
appId: org.openflexure.ev
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${/*}'
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
linux:
target:
- AppImage
- target: deb
arch:
- x64
- armv7l
icon: app/icons/png/1024x1024.png
deb:
category: Science
win:
target:
- NSIS
icon: app/icons/win/icon.ico
electronVersion: 4.1.5

View file

Before

Width:  |  Height:  |  Size: 7 KiB

After

Width:  |  Height:  |  Size: 7 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 7.9 KiB

After

Width:  |  Height:  |  Size: 7.9 KiB

Before After
Before After

View file

@ -11,9 +11,8 @@
"license": "GNU General Public License v3.0 ",
"main": "./app/app.js",
"scripts": {
"dist": "build",
"dist:win": "build --win",
"dist:all": "build --linux --win",
"dist:all": "electron-builder --linux --win --config app/builder-config.yaml",
"dist:win": "electron-builder --win --config app/builder-config-win.yaml",
"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:ios": "npm run setup-webpack-config && tns build ios --bundle --env.production && npm run remove-webpack-config",
@ -33,72 +32,6 @@
"serve:web": "vue-cli-service serve --mode development.web",
"setup-webpack-config": "node ./node_modules/vue-cli-plugin-nativescript-vue/lib/scripts/webpack-maintenance pre"
},
"build": {
"appId": "org.openflexure.ev",
"asar": true,
"files": [
"**/*",
"!**/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${/*}"
],
"directories": {
"output": "release-builds"
},
"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"
}
]
},
"linux": {
"target": [
"AppImage",
{
"target": "deb",
"arch": [
"x64",
"armv7l"
]
}
],
"icon": "app/icons/png/1024x1024.png"
},
"deb": {
"category": "Science"
},
"win": {
"target": "NSIS",
"icon": "app/icons/win/icon.ico"
}
},
"dependencies": {
"about-window": "^1.12.1",
"electron-context-menu": "^0.11.0"