Draft better pre-release handling in CI
This commit is contained in:
parent
6c2c98af78
commit
aa2a21f1c1
4 changed files with 44 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ build:
|
|||
script:
|
||||
- npm install
|
||||
- npm run build:app
|
||||
- npm run release
|
||||
- if [ "$CI_COMMIT_REF_NAME" == "stable"]; then npm run release; else npm run release:pre; fi
|
||||
|
||||
artifacts:
|
||||
name: "dist"
|
||||
|
|
|
|||
15
app/builder-config-raspi-pre.yaml
Normal file
15
app/builder-config-raspi-pre.yaml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
extends: app/builder-config-base.yaml
|
||||
artifactName: ${name}-${os}-${arch}.${ext}
|
||||
electronVersion: 3.0.13
|
||||
linux:
|
||||
target:
|
||||
- target: deb
|
||||
arch:
|
||||
- armv7l
|
||||
- target: appImage
|
||||
arch:
|
||||
- armv7l
|
||||
icon: app/icons/png/
|
||||
category: Science
|
||||
deb:
|
||||
fpm: ['--architecture', 'armhf']
|
||||
27
app/builder-config-x86_64-pre.yaml
Normal file
27
app/builder-config-x86_64-pre.yaml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
extends: app/builder-config-base.yaml
|
||||
artifactName: ${name}-${os}-${arch}.${ext}
|
||||
win:
|
||||
target:
|
||||
- NSIS
|
||||
icon: app/icons/win/icon.ico
|
||||
linux:
|
||||
target:
|
||||
- target: deb
|
||||
arch:
|
||||
- x64
|
||||
- target: appImage
|
||||
arch:
|
||||
- x64
|
||||
icon: app/icons/png/
|
||||
category: Science
|
||||
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
|
||||
|
|
@ -23,6 +23,7 @@
|
|||
"dist:dmg": "electron-builder --mac --config app/builder-config-x86_64.yaml",
|
||||
"dist:appx": "electron-builder --win --config app/builder-config-appx.yaml",
|
||||
"release": "electron-builder --linux --config app/builder-config-raspi.yaml & electron-builder --win --linux --config app/builder-config-x86_64.yaml",
|
||||
"release:pre": "electron-builder --linux --config app/builder-config-raspi-pre.yaml & electron-builder --win --linux --config app/builder-config-x86_64-pre.yaml",
|
||||
"make-icons": "electron-icon-builder --input=./app/icons/icon_base.png --output=./app/"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue