Skip to content

add acrylic/mica effect support #96

add acrylic/mica effect support

add acrylic/mica effect support #96

Workflow file for this run

on:
push:
tags:
- '*'
name: "Build & Release"
jobs:
build:
name: Build & Release
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true
# https://github.com/subosito/flutter-action/issues/278
# - name: Export pub environment variable
# run: |
# if [ "$RUNNER_OS" == "Windows" ]; then
# echo "PUB_CACHE=$LOCALAPPDATA\\Pub\\Cache" >> $GITHUB_ENV
# fi
# shell: bash
- run: echo "NEW_VERSION=${{ github.ref_name }}" | Out-File -FilePath $env:GITHUB_ENV -Append
- name: Bump MyAppVersion in Inno Setup
run: |
(Get-Content -Path "inno-setup.iss") -replace '#define MyAppVersion "[\d\.]+"', "#define MyAppVersion `"${{ env.NEW_VERSION }}`"" | Set-Content -Path "inno-setup.iss"
shell: pwsh
- run: flutter gen-l10n
- run: dart run build_runner build --delete-conflicting-outputs
- run: flutter build windows --build-name=${{ env.NEW_VERSION }} --build-number=1 --obfuscate --split-debug-info=/symbols
- name: Build Installer
run: |
"%programfiles(x86)%\Inno Setup 6\iscc.exe" "inno-setup.iss"
shell: cmd
- name: Calculate SHA256 hash
run: |
$hash = Get-FileHash "build/RevisionTool-Setup.exe" -Algorithm SHA256
echo "SHA256_HASH=$($hash.Hash)" | Out-File -FilePath $env:GITHUB_ENV -Append
- name: Release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.TOKEN }}
file: build/RevisionTool-Setup.exe
asset_name: RevisionTool-Setup.exe
tag: ${{ github.ref }}
overwrite: true
body: "SHA256: `${{ env.SHA256_HASH }}`"