File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9797 - name : Build frontend
9898 run : pnpm generate
9999
100+ - name : Generate latest.json
101+ run : |
102+ cat > latest.json << EOF
103+ {
104+ "version": "${{ github.ref_name }}",
105+ "notes": "Release ${{ github.ref_name }}",
106+ "pub_date": "$(date -u +%Y-%m-%dT%H:%M:%SZ)",
107+ "platforms": {
108+ "darwin-x86_64": {
109+ "signature": "",
110+ "url": "https://github.com/jumpserver/clients/releases/download/${{ github.ref_name }}/JumpServerClient_${{ github.ref_name }}_x86_64.dmg"
111+ },
112+ "darwin-aarch64": {
113+ "signature": "",
114+ "url": "https://github.com/jumpserver/clients/releases/download/${{ github.ref_name }}/JumpServerClient_${{ github.ref_name }}_aarch64.dmg"
115+ },
116+ "windows-x86_64": {
117+ "signature": "",
118+ "url": "https://github.com/jumpserver/clients/releases/download/${{ github.ref_name }}/JumpServerClient_${{ github.ref_name }}_x64.msi"
119+ },
120+ "linux-x86_64": {
121+ "signature": "",
122+ "url": "https://github.com/jumpserver/clients/releases/download/${{ github.ref_name }}/JumpServerClient_${{ github.ref_name }}_x86_64.AppImage"
123+ },
124+ "linux-aarch64": {
125+ "signature": "",
126+ "url": "https://github.com/jumpserver/clients/releases/download/${{ github.ref_name }}/JumpServerClient_${{ github.ref_name }}_aarch64.AppImage"
127+ }
128+ }
129+ }
130+ EOF
131+
100132 - name : Build Tauri app (Linux)
101133 if : matrix.os == 'ubuntu-latest'
102134 run : pnpm tauri:build
@@ -158,6 +190,7 @@ jobs:
158190 uses : softprops/action-gh-release@v1
159191 with :
160192 files : |
193+ latest.json
161194 src-tauri/target/release/bundle/deb/*.deb
162195 src-tauri/target/release/bundle/rpm/*.rpm
163196 src-tauri/target/release/bundle/appimage/*.AppImage
Original file line number Diff line number Diff line change 4343 "updater" : {
4444 "pubkey" : " dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDQ0NDhCRUVCN0Y5M0UwMTcKUldRWDRKTi82NzVJUkh2cW5xeUtKYTRZYkErU1ZPZkNramNXMjlRQWVmdnVtVEY0dk5RcDIvZ2IK" ,
4545 "endpoints" : [
46- " https://github.com/jumpserver/clients/releases/download/{{current_version}}/JumpServerClient_{{current_version}}_{{target}}.{{ext}} "
46+ " https://github.com/jumpserver/clients/releases/latest/ download/latest.json "
4747 ]
4848 }
4949 },
You can’t perform that action at this time.
0 commit comments