Skip to content

Commit 9c1a3db

Browse files
author
richardson
committed
尝试解决manc打包的问题
1 parent b71e057 commit 9c1a3db

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/build-and-release.yml

+16-1
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,28 @@ jobs:
7575
libsoup2.4-dev \
7676
libjavascriptcoregtk-4.0-dev
7777
78+
- name: 安装 Rust
79+
uses: actions-rs/toolchain@v1
80+
with:
81+
toolchain: stable
82+
target: x86_64-apple-darwin
83+
profile: minimal
84+
override: true
85+
86+
- name: 安装 macOS 构建目标
87+
if: matrix.os == 'macos-latest' || matrix.os == 'macos-11'
88+
run: |
89+
rustup target add x86_64-apple-darwin
90+
rustup target add aarch64-apple-darwin
91+
7892
- name: 构建 Tauri 应用 (现代 macOS)
7993
if: matrix.target == 'macos-modern'
8094
uses: tauri-apps/tauri-action@v0
8195
env:
8296
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8397
with:
84-
args: --target universal-apple-darwin
98+
args: --target "universal-apple-darwin"
99+
includeDebug: false
85100

86101
- name: 构建 Tauri 应用 (Big Sur)
87102
if: matrix.target == 'macos-bigsur'

0 commit comments

Comments
 (0)