bug-001: fix tray menu, add autostart and crash recovery launcher
All checks were successful
Build Check / build (push) Successful in 4m2s
All checks were successful
Build Check / build (push) Successful in 4m2s
This commit is contained in:
@@ -16,6 +16,11 @@ jobs:
|
||||
shell: powershell
|
||||
run: cargo build --release
|
||||
|
||||
- name: Build installer
|
||||
shell: powershell
|
||||
run: |
|
||||
cargo wix --nocapture
|
||||
|
||||
- name: Create Gitea Release
|
||||
id: create_release
|
||||
shell: powershell
|
||||
@@ -59,4 +64,21 @@ jobs:
|
||||
|
||||
$uri = "https://gitea.whitlocktech.com/api/v1/repos/whitlocktech/tickr/releases/$releaseId/assets?name=tickr.exe"
|
||||
|
||||
& curl.exe -X POST -H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" -F "attachment=@$filePath" "$uri"
|
||||
& curl.exe -X POST -H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" -F "attachment=@$filePath" "$uri"
|
||||
|
||||
- name: Upload installer
|
||||
shell: powershell
|
||||
run: |
|
||||
$releaseId = "${{ steps.create_release.outputs.release_id }}"
|
||||
$msiPath = (Get-ChildItem -Path "target\wix\*.msi" | Select-Object -First 1).FullName
|
||||
|
||||
Write-Host "MSI Path: $msiPath"
|
||||
|
||||
if (!(Test-Path $msiPath)) {
|
||||
Write-Error "MSI not found"
|
||||
exit 1
|
||||
}
|
||||
|
||||
$uri = "https://gitea.whitlocktech.com/api/v1/repos/whitlocktech/tickr/releases/$releaseId/assets?name=tickr-setup.msi"
|
||||
|
||||
& curl.exe -X POST -H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" -F "attachment=@$msiPath" "$uri"
|
||||
Reference in New Issue
Block a user