Skip to content

Commit

Permalink
ci: fix release build error (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
MiaoMint authored Jan 19, 2024
1 parent 50f2dbb commit d34c1d0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/prbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions inno_setup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit d34c1d0

Please sign in to comment.