From d34c1d0bf1ec9438f21ec464e65798a8a8c6c1f3 Mon Sep 17 00:00:00 2001 From: MiaoMint <44718819+MiaoMint@users.noreply.github.com> Date: Fri, 19 Jan 2024 10:37:00 +0800 Subject: [PATCH] ci: fix release build error (#197) --- .github/workflows/prbuild.yml | 4 ++-- .github/workflows/release.yml | 12 ++++++------ inno_setup.iss | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/prbuild.yml b/.github/workflows/prbuild.yml index b2c5ad7f..ff904cd5 100644 --- a/.github/workflows/prbuild.yml +++ b/.github/workflows/prbuild.yml @@ -23,7 +23,7 @@ jobs: - name: Flutter action uses: subosito/flutter-action@v2 with: - flutter-version: 3.16.1 + flutter-version: 3.16.8 channel: stable - name: Decode keystore run: | @@ -64,7 +64,7 @@ jobs: - uses: actions/checkout@v3 - uses: subosito/flutter-action@v2 with: - flutter-version: 3.16.1 + flutter-version: 3.16.8 channel: stable - name: Install project dependencies run: flutter pub get diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 907b8bf7..02e18f96 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,7 +38,7 @@ jobs: - name: Flutter action uses: subosito/flutter-action@v2 with: - flutter-version: 3.13.0 + flutter-version: 3.16.8 channel: stable - name: Decode keystore run: | @@ -125,7 +125,7 @@ jobs: ref: main - uses: subosito/flutter-action@v2 with: - flutter-version: 3.13.0 + flutter-version: 3.16.8 channel: stable - name: Install project dependencies run: flutter pub get @@ -138,19 +138,19 @@ jobs: with: type: "zip" filename: Miru-${{github.ref_name}}-windows.zip - directory: build/windows/runner/Release + directory: build/windows/x64/runner/Release - name: Rename Release Directory Name to Miru-App # For Artifacts. # 但是此处将压缩出来的包迁移到了一个临时 temp 目录,这是用来上传到 Release Assets 的 # 再下面的重命名是为了 Artifacts 的 run: | mkdir temp - mv build/windows/runner/Release/Miru-${{github.ref_name}}-windows.zip temp/Miru-${{github.ref_name}}-windows.zip - mv build/windows/runner/Release build/windows/runner/Miru-App + mv build/windows/x64/runner/Release/Miru-${{github.ref_name}}-windows.zip temp/Miru-${{github.ref_name}}-windows.zip + mv build/windows/x64/runner/Release build/windows/x64/runner/Miru-App # 发布安装包 - name: Upload Artifact uses: actions/upload-artifact@v3 with: - path: "build/windows/runner/Miru-App" + path: "build/windows/x64/runner/Miru-App" name: Miru-pr-${{ github.event.pull_request.number }}-windows.zip - name: Release Packages uses: ncipollo/release-action@v1 diff --git a/inno_setup.iss b/inno_setup.iss index 6d9e64a8..99327a61 100644 --- a/inno_setup.iss +++ b/inno_setup.iss @@ -34,9 +34,9 @@ Name: "english"; MessagesFile: "compiler:Default.isl" Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked [Files] -Source: ".\build\windows\runner\Release\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion -Source: ".\build\windows\runner\Release\*"; DestDir: "{app}"; Flags: ignoreversion -Source: ".\build\windows\runner\Release\data\*"; DestDir: "{app}\data"; Flags: ignoreversion recursesubdirs createallsubdirs +Source: ".\build\windows\x64\runner\Release\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion +Source: ".\build\windows\x64\runner\Release\*"; DestDir: "{app}"; Flags: ignoreversion +Source: ".\build\windows\x64\runner\Release\data\*"; DestDir: "{app}\data"; Flags: ignoreversion recursesubdirs createallsubdirs ; NOTE: Don't use "Flags: ignoreversion" on any shared system files [Icons]