Skip to content

Commit 49e7649

Browse files
committed
chore: updater
1 parent 6055913 commit 49e7649

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ jobs:
101101
- uses: actions/setup-node@v2
102102
with:
103103
node-version: '14'
104-
- run: yarn updater -v=${{ needs.create-release.steps.get_version.outputs.VERSION }}
104+
- run: yarn updater -v=${GITHUB_REF:11}
105105

106-
- name: Deploy
106+
- name: Deploy install.json
107107
uses: peaceiris/actions-gh-pages@v3
108108
with:
109109
github_token: ${{ secrets.GITHUB_TOKEN }}

scripts/updater.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ const updaterInfo = {
3535
},
3636
'linux-x86_64': {
3737
signature: '',
38-
url: `${baseURL}/oh-my-box_${argv.v}_amd64.AppImage`
38+
url: `${baseURL}/oh-my-box_${argv.v}_amd64.AppImage.tar.gz`
3939
},
4040
'windows-x86_64': {
4141
signature: '',
42-
url: `${baseURL}/OhMyBox_${argv.v}_x64_en-US.msi`
42+
url: `${baseURL}/OhMyBox_${argv.v}_x64_en-US.msi.zip`
4343
}
4444
}
4545
}
@@ -48,4 +48,5 @@ if (!fs.existsSync('updater')) {
4848
fs.mkdirSync('updater');
4949
}
5050

51-
fs.writeFileSync('./updater/app.json', JSON.stringify(updaterInfo, null, 2));
51+
fs.writeFileSync('./updater/install.json', JSON.stringify(updaterInfo, null, 2));
52+
console.log('Generate updater/install.json');

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"updater": {
1616
"active": true,
1717
"dialog": true,
18-
"endpoints": ["https://lencx.github.io/OhMyBox/app.json"],
18+
"endpoints": ["https://lencx.github.io/OhMyBox/install.json"],
1919
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEU5MEIwREEzNDlBNzdDN0MKUldSOGZLZEpvdzBMNmFOZ2cyY2NPeTdwK2hsV3gwcWxoZHdUWXRZWFBpQTh1dWhqWXhBdkl0cW8K"
2020
},
2121
"systemTray": {

0 commit comments

Comments
 (0)