Skip to content

Commit

Permalink
add flutter distributor
Browse files Browse the repository at this point in the history
  • Loading branch information
b-lack committed Sep 18, 2024
1 parent b2653dd commit fd1ed01
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/deploy-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,29 +62,42 @@ jobs:

build-and-release-windows:
runs-on: windows-latest

permissions:
contents: write

steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
with:
channel: 'stable'
flutter-version: '3.24.2'

- name: Install project dependencies
run: flutter pub get

- name: Generate intermediates
run: flutter pub run build_runner build --delete-conflicting-outputs

- name: Enable windows build
run: flutter config --enable-windows-desktop

- name: 'Create env file'
run: touch .env

- name: Install Inno Setup
run: flutter_distributor package --platform windows --targets exe

- name: Build artifacts
run: flutter build windows --release

- name: Archive Release
uses: thedoctor0/zip-release@master
with:
type: 'zip'
filename: MacRecoveryX-${{github.ref_name}}-windows.zip
directory: build/windows/runner/release

- name: Windows Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v')
Expand Down
12 changes: 12 additions & 0 deletions windows/packaging/exe/make_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# The value of AppId uniquely identifies this application.
# Do not use the same AppId value in installers for other applications.
app_id: 5B599538-42B1-4826-A479-AF079F21A65D
publisher: Thünen Institute
publisher_url: https://www.thuenen.de/de/fachinstitute/waldoekosysteme
display_name: Terrestrial Forest Monitor
create_desktop_icon: true
# See: https://jrsoftware.org/ishelp/index.php?topic=setup_defaultdirname
# install_dir_name: "D:\\HELLO-WORLD"
locales:
- en
- de

0 comments on commit fd1ed01

Please sign in to comment.