diff --git a/.github/workflows/deploy-desktop.yml b/.github/workflows/deploy-desktop.yml index 6b5c84b..4a2a0ae 100644 --- a/.github/workflows/deploy-desktop.yml +++ b/.github/workflows/deploy-desktop.yml @@ -62,6 +62,9 @@ jobs: build-and-release-windows: runs-on: windows-latest + + permissions: + contents: write steps: - uses: actions/checkout@v2 @@ -69,22 +72,32 @@ jobs: 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') diff --git a/windows/packaging/exe/make_config.yaml b/windows/packaging/exe/make_config.yaml new file mode 100644 index 0000000..5ae008a --- /dev/null +++ b/windows/packaging/exe/make_config.yaml @@ -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 \ No newline at end of file