Skip to content

Commit 13d53a8

Browse files
committed
修复 Linux 以及 windows 打包失败问题
1 parent b1aad91 commit 13d53a8

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ jobs:
3838
matrix:
3939
include:
4040
- os: ubuntu-22.04
41-
container: ubuntu:22.04
4241
platform: linux
4342
arch: x64
4443
- os: windows-2022
@@ -53,7 +52,6 @@ jobs:
5352
arch: arm64
5453
targets: aarch64-apple-darwin
5554
runs-on: ${{ matrix.os }}
56-
container: ${{ matrix.container }}
5755
steps:
5856
- name: Checkout
5957
uses: actions/checkout@v4
@@ -77,7 +75,7 @@ jobs:
7775
- name: Install system deps for Linux (Ubuntu 22.04)
7876
if: ${{ matrix.os == 'ubuntu-22.04' }}
7977
run: |
80-
apt-get update && apt-get install -y \
78+
sudo apt-get update && sudo apt-get install -y \
8179
libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev \
8280
librsvg2-dev build-essential curl wget file patchelf libssl-dev \
8381
xdg-utils desktop-file-utils
@@ -110,7 +108,12 @@ jobs:
110108
- name: List generated bundles (Debug)
111109
run: |
112110
echo "=== Generated bundles for ${{ matrix.platform }}-${{ matrix.arch }} ==="
113-
find src-tauri/target/release/bundle -type f | sort || echo "No bundles found"
111+
if ($env:OS -eq "Windows_NT") {
112+
Get-ChildItem -Recurse src-tauri/target/release/bundle | Sort-Object FullName | ForEach-Object { $_.FullName }
113+
} else {
114+
find src-tauri/target/release/bundle -type f | sort || echo "No bundles found"
115+
}
116+
shell: pwsh
114117

115118
- name: Upload artifacts
116119
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)