Add Windows portable auto-update from Forgejo continuous releases.
Some checks failed
Windows Release / windows-x86_64 (push) Failing after 1h12m0s
Some checks failed
Windows Release / windows-x86_64 (push) Failing after 1h12m0s
Poll windows-continuous by git SHA, download the matching zip, and apply it in place so friends stay current without manual installs. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
7f34283537
commit
cdc4c5cb30
13 changed files with 371 additions and 22 deletions
3
.github/workflows/windows_release.yml
vendored
3
.github/workflows/windows_release.yml
vendored
|
|
@ -105,6 +105,7 @@ jobs:
|
|||
shell: pwsh
|
||||
env:
|
||||
ZIP_NAME: ${{ steps.ver.outputs.zip_name }}
|
||||
ASSET_VER: ${{ steps.ver.outputs.asset_ver }}
|
||||
run: |
|
||||
$ErrorActionPreference = "Stop"
|
||||
$exe = Get-ChildItem -Path . -Recurse -Filter infinipaint.exe |
|
||||
|
|
@ -115,6 +116,8 @@ jobs:
|
|||
Remove-Item -Recurse -Force $outDir -ErrorAction SilentlyContinue
|
||||
New-Item -ItemType Directory -Force -Path $outDir | Out-Null
|
||||
Copy-Item $exe.FullName (Join-Path $outDir "infinipaint.exe")
|
||||
# Identity file for humans / debugging (app also embeds SHA at compile time).
|
||||
Set-Content -Path (Join-Path $outDir "version.txt") -Value $env:ASSET_VER -Encoding ascii
|
||||
$dllDir = Join-Path (Get-Location) "windowsinstall\dlls-x86_64"
|
||||
if (Test-Path $dllDir) {
|
||||
Copy-Item (Join-Path $dllDir "*.dll") $outDir -ErrorAction SilentlyContinue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue