mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-01-11 22:40:36 +00:00
don't pass --app-version to inno_bundle
By not passing --app-version or the Flutter build flags at all, inno_bundle will read the pubspec.yaml and pass `--build-name 0.6.3 --build-number 85` down into `flutter build windows` And stamp both the EXE’s PE resource and the Inno Setup installer with that exact version.
This commit is contained in:
parent
4ee0073de5
commit
f740bbf59d
1 changed files with 13 additions and 6 deletions
19
.github/workflows/release.yml
vendored
19
.github/workflows/release.yml
vendored
|
|
@ -214,15 +214,22 @@ jobs:
|
|||
|
||||
- name: build windows exe
|
||||
run: |
|
||||
dart run inno_bundle:build --release --app-version ${{ github.ref_name }}
|
||||
dart run inno_bundle:build --release
|
||||
|
||||
- name: build windows zip
|
||||
run: |
|
||||
cd build/windows/x64/installer/Release
|
||||
Rename-Item -Path "*-Installer.exe" -NewName "Mangayomi-${{ github.ref_name }}-windows.exe"
|
||||
cd ../../runner/Release
|
||||
Compress-Archive -Path * -DestinationPath Mangayomi-Windows.zip
|
||||
Rename-Item -Path "Mangayomi-*.zip" -NewName "Mangayomi-${{ github.ref_name }}-windows.zip"
|
||||
# Rename the installer .exe
|
||||
$installer = Get-ChildItem "build/windows/x64/installer/Release/*-Installer.exe"
|
||||
Rename-Item -Path $installer.FullName -NewName "Mangayomi-${{ github.ref_name }}-windows.exe"
|
||||
|
||||
# Go to runner output dir
|
||||
Set-Location -Path "build/windows/x64/runner/Release"
|
||||
|
||||
# Create zip
|
||||
Compress-Archive -Path * -DestinationPath "Mangayomi-Windows.zip"
|
||||
|
||||
# Rename zip
|
||||
Rename-Item -Path "Mangayomi-Windows.zip" -NewName "Mangayomi-${{ github.ref_name }}-windows.zip"
|
||||
|
||||
- name: upload artifact windows exe_zip
|
||||
uses: actions/upload-artifact@v4
|
||||
|
|
|
|||
Loading…
Reference in a new issue