build: use latest tauri

This commit is contained in:
MystiPanda
2024-06-04 09:56:33 +08:00
parent dd6dea9dfc
commit 0a6fe382ac
6 changed files with 30 additions and 24 deletions

View File

@@ -2,7 +2,7 @@ pnpm install
pnpm check $INPUT_TARGET
sed -i "s/#openssl/openssl={version=\"0.10\",features=[\"vendored\"]}/g" src-tauri/Cargo.toml
if [ "$INPUT_TARGET" = "x86_64-unknown-linux-gnu" ]; then
pnpm build --target $INPUT_TARGET
cargo tauri build --target $INPUT_TARGET
else
pnpm build --target $INPUT_TARGET -b deb
cargo tauri build --target $INPUT_TARGET -b deb
fi

View File

@@ -5,6 +5,8 @@ tar -Jxvf ./node-v20.10.0-linux-x64.tar.xz
export PATH=$(pwd)/node-v20.10.0-linux-x64/bin:$PATH
npm install pnpm -g
cargo install --git https://github.com/tauri-apps/tauri --branch 1.x tauri-cli
rustup target add "$INPUT_TARGET"
if [ "$INPUT_TARGET" = "x86_64-unknown-linux-gnu" ]; then