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

Add generic provider for auto updates #174

Merged
merged 6 commits into from
Aug 13, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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