فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
Release Windows v2.0.1 cash account activation fix
davoodmehraban89 committed
Oct 11, 2026 at 12:31 UTC
e49f7dff5ad4cbea5e59740fe1817a7d21d44e42
1 file changed
+51
.github/workflows/release-v2-0-1.yml
new
+51
@@ -0,0 +1,51 @@
1
+name: Build and publish Factor-easyPro v2.0.1
2
+on:
3
+ push:
4
+ branches: [main]
5
+ paths:
6
+ - '.github/workflows/release-v2-0-1.yml'
7
+permissions:
8
+ contents: write
9
+jobs:
10
+ windows-release:
11
+ runs-on: windows-latest
12
+ timeout-minutes: 50
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+ with:
16
+ ref: v2.0.1
17
+ persist-credentials: false
18
+ - uses: actions/setup-node@v4
19
+ with:
20
+ node-version: '22'
21
+ cache: npm
22
+ - uses: dtolnay/rust-toolchain@stable
23
+ - name: Install dependencies
24
+ run: npm ci
25
+ - name: Regression tests
26
+ run: npm test
27
+ - name: Build Windows installer
28
+ run: npm exec tauri build
29
+ - name: Create SHA256 checksum
30
+ shell: pwsh
31
+ run: |
32
+ $installer = Get-ChildItem 'src-tauri/target/release/bundle/nsis/*2.0.1*x64-setup.exe' | Select-Object -First 1
33
+ if (!$installer) { throw 'Windows installer missing' }
34
+ $hash = (Get-FileHash $installer.FullName -Algorithm SHA256).Hash
35
+ $hash + ' ' + $installer.Name | Out-File -FilePath SHA256SUMS.txt -Encoding ascii
36
+ Write-Output ('SHA256=' + $hash)
37
+ - name: Publish GitHub hotfix release
38
+ shell: pwsh
39
+ env:
40
+ GH_TOKEN: '${{ github.token }}'
41
+ run: |
42
+ gh release view v2.0.1 --json id *> $null
43
+ if ($LASTEXITCODE -ne 0) {
44
+ gh release create v2.0.1 --draft --title 'Factor-easyPro 2.0.1 — Activation fix' --notes-file RELEASE_NOTES_v2.0.1_FA.md
45
+ if ($LASTEXITCODE -ne 0) { throw 'Could not create hotfix release' }
46
+ }
47
+ gh release upload v2.0.1 'src-tauri/target/release/bundle/nsis/Factor-easyPro_2.0.1_x64-setup.exe' SHA256SUMS.txt --clobber
48
+ if ($LASTEXITCODE -ne 0) { throw 'Could not upload hotfix installer' }
49
+ gh release edit v2.0.1 --draft=false --latest
50
+ if ($LASTEXITCODE -ne 0) { throw 'Could not publish hotfix' }
51
+ gh release view v2.0.1 --json url,isDraft,assets