Add Winget building to CircleCI artifacts (#522)

* Add config for winget electron builder

* add winget build run in circleCI

* add winget building in scripts
This commit is contained in:
yazninja 2022-03-01 07:48:00 +03:00 committed by GitHub
parent 5a160068cf
commit b09ec0100a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 47 additions and 0 deletions

View file

@ -56,6 +56,11 @@ jobs:
command: yarn dist -w --x64 -p never
post-steps:
- jira/notify
- run:
name: Generate Builds (Winget)
command: yarn winget -p never
post-steps:
- jira/notify
- run:
name: Move Build Files
command: |

View file

@ -30,6 +30,7 @@
"dist:macarm": "yarn build && electron-builder --mac --arm64",
"dist:universalNotWorking": "yarn build && electron-builder --mac --universal",
"dist:all": "yarn build && electron-builder -mwl",
"winget": "yarn build && electron-builder --win -c winget.json",
"msft": "yarn build && electron-builder -c msft-package.json",
"postinstall": "electron-builder install-app-deps",
"circle:append-bid": "node resources/appendCommitToVersion"

41
winget.json Normal file
View file

@ -0,0 +1,41 @@
{
"electronVersion": "16.0.7",
"electronDownload": {
"version": "16.0.7+wvcus",
"mirror": "https://github.com/castlabs/electron-releases/releases/download/v"
},
"appId": "cider",
"afterPack": "./resources/afterPack.js",
"afterSign": "./resources/notarize.js",
"protocols": [
{
"name": "Cider",
"schemes": [
"ame",
"cider",
"itms",
"itmss",
"musics",
"music"
]
}
],
"extends": null,
"files": [
"./build/**/*",
"./src/**/*",
"./resources/icons/**/*"
],
"nsis": {
"oneClick": true,
"perMachine": false,
"deleteAppDataOnUninstall": true,
"artifactName": "${productName}-Setup-winget-${version}.${ext}"
},
"win": {
"target": [
"nsis"
],
"icon": "resources/icons/icon.ico"
}
}