Skip to content

Commit

Permalink
ci: use package inno_bundle for .exe build
Browse files Browse the repository at this point in the history
  • Loading branch information
maelchiotti committed Mar 24, 2024
1 parent f109dbd commit d720d81
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 66 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 13 additions & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ dev_dependencies:
flutter_test:
sdk: flutter
freezed: ^2.4.7
inno_bundle: ^0.4.1
json_serializable: ^6.7.1
lint: ^2.3.0
riverpod_generator: ^2.3.11
Expand All @@ -66,3 +67,15 @@ flutter:
uses-material-design: true
assets:
- assets/logos/

# dart run inno_bundle:build --release
inno_bundle:
id: 74c43507-d381-5f15-b818-6d1a6731e317
# name: Cinema Project Manager (CPM)
publisher: Studio Rv & Co
url: https://cpm.rvandco.fr
support_url: https://rvandco.fr
installer_icon: assets/icons/cpm.ico
languages:
- english
- french
55 changes: 0 additions & 55 deletions windows/CPM.iss

This file was deleted.

0 comments on commit d720d81

Please sign in to comment.