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:
26
.gitea/workflows/build-check.yml
Normal file
26
.gitea/workflows/build-check.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
name: Build Check
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'bug-*'
|
||||
- 'feat-*'
|
||||
- 'dev'
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Build check
|
||||
shell: powershell
|
||||
run: cargo build --release
|
||||
|
||||
- name: Report success
|
||||
shell: powershell
|
||||
run: Write-Host "Build succeeded - safe to merge to main"
|
||||
@@ -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