-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: use package inno_bundle for .exe build
- Loading branch information
1 parent
f109dbd
commit d720d81
Showing
3 changed files
with
24 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,22 +70,22 @@ jobs: | |
channel: 'stable' | ||
- name: Build app | ||
run: flutter build windows --release | ||
- name: Replace InnoSetup version | ||
uses: MathieuSoysal/[email protected] | ||
with: | ||
file: windows/CPM.iss | ||
old-string: 0.1.0 | ||
new-string: ${{ needs.get_version.outputs.version }} | ||
- name: Run InnoSetup | ||
- name: Build InnoSetup script | ||
run: dart run inno_bundle:build --no-app --release --no-installer | ||
- name: Build EXE | ||
uses: Minionguyjpro/[email protected] | ||
with: | ||
path: windows/CPM.iss | ||
options: /O+ | ||
- name: Archive installer | ||
path: ./build/windows/x64/installer/Release/inno-script.iss | ||
- name: Output InnoSetup env variables | ||
id: envs | ||
run: echo $(dart run inno_bundle:build --envs --no-hf) | Out-File -FilePath $Env:GITHUB_OUTPUT -Encoding utf8 -Append | ||
- name: Rename EXE | ||
run: Rename-Item -Path "/build/windows/x64/installer/Release/${{ steps.envs.outputs.APP_NAME_CAMEL_CASE }}-x86_64-${{ steps.envs.outputs.APP_VERSION }}-Installer.exe" -NewName "CPM_${{ needs.get_version.outputs.version }}.exe" | ||
- name: Archive EXE | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Windows | ||
path: windows\Output\CPM_${{ needs.get_version.outputs.version }}.exe | ||
path: /build/windows/x64/installer/Release/CPM_${{ needs.get_version.outputs.version }}.exe | ||
|
||
build_publish_web: | ||
name: Web | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.