Commit aa2a21f1 authored by Joel Collins's avatar Joel Collins
Browse files

Draft better pre-release handling in CI

parent 6c2c98af
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 −0
Original line number Diff line number Diff line
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 −0
Original line number Diff line number Diff line
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
+1 −0
Original line number Diff line number Diff line
@@ -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": {