Skip to content
This repository has been archived by the owner on Jul 7, 2024. It is now read-only.
/ Orion Public archive

Commit

Permalink
Merge pull request #174 from Siderus/feature/add-generic-provider-for…
Browse files Browse the repository at this point in the history
…-auto-updates

Add generic provider for auto updates
  • Loading branch information
koalalorenzo authored Aug 13, 2018
2 parents 77b62f8 + 2515b9a commit a058556
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
21 changes: 17 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ yarn:test:
only:
- master
- /release.*/
- tags


yarn:build:mac:
Expand Down Expand Up @@ -69,29 +70,41 @@ yarn:release:mac:
retry: 2
script:
- docker run --rm -e GH_TOKEN="${GH_TOKEN}" -v ${PWD}:/project electronuserland/builder:wine /bin/bash -c "make release -e OS=Darwin -e UNAME_S=Darwin"
artifacts:
paths:
- build
expire_in: 3 months
only:
- master
- tags

yarn:release:win:
stage: release
retry: 2
script:
- docker run --rm -e GH_TOKEN="${GH_TOKEN}" -v ${PWD}:/project electronuserland/builder:wine /bin/bash -c "make release -e OS=Windows_NT"
artifacts:
paths:
- build
expire_in: 3 months
only:
- master
- tags

yarn:release:gnu:
stage: release
retry: 2
script:
- docker run --rm -e GH_TOKEN="${GH_TOKEN}" -v ${PWD}:/project electronuserland/builder:wine /bin/bash -c "make release -e OS=Linux -e UNAME_S=Linux"
artifacts:
paths:
- build
expire_in: 3 months
only:
- master
- tags


trigger_repository:
stage: post-release
script:
- curl -X POST -F token=${TRIGGER_REPO_TOKEN} -F ref=master https://gitlab.com/api/v4/projects/7744513/trigger/pipeline
only:
- master
- tags
2 changes: 1 addition & 1 deletion app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function startOrion () {
defaultId: 1
})
if (btnId === 1) {
shell.openExternal(`${pjson.repository}/releases/latest`)
shell.openExternal(pjson.releasePage)
}
})
autoUpdater.on('update-downloaded', (info) => {
Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"lint": "eslint app/ --ext .jsx --ext .js",
"start": "electron ."
},
"releasePage": "https://orion.siderus.io",
"repository": "https://github.com/siderus/Orion",
"keywords": [
"electron",
Expand Down Expand Up @@ -81,6 +82,10 @@
"testURL": "http://localhost/"
},
"build": {
"publish": [{
"provider": "generic",
"url": "https://get.siderus.io/orion"
}],
"appId": "io.siderus.orion",
"files": [
"app/**/*",
Expand Down

0 comments on commit a058556

Please sign in to comment.