more "cargo build --locked"

This commit is contained in:
rustdesk
2026-05-26 11:44:51 +08:00
parent 1f26e452fc
commit c19a0ceba2
13 changed files with 28 additions and 27 deletions

View File

@@ -460,6 +460,7 @@ build)
--target "${RUST_TARGET}" \
--bindgen \
build \
--locked \
--release \
--features "${RUSTDESK_FEATURES}"

View File

@@ -1,2 +1,2 @@
#!/usr/bin/env bash
cargo build --features flutter,hwcodec --release --target aarch64-apple-ios --lib
cargo build --locked --features flutter,hwcodec --release --target aarch64-apple-ios --lib

View File

@@ -1,2 +1,2 @@
#!/usr/bin/env bash
cargo build --features flutter --release --target x86_64-apple-ios --lib
cargo build --locked --features flutter --release --target x86_64-apple-ios --lib

View File

@@ -1,2 +1,2 @@
#!/usr/bin/env bash
cargo ndk --platform 21 --target armv7-linux-androideabi build --release --features flutter,hwcodec
cargo ndk --platform 21 --target armv7-linux-androideabi build --locked --release --features flutter,hwcodec

View File

@@ -1,2 +1,2 @@
#!/usr/bin/env bash
cargo ndk --platform 21 --target aarch64-linux-android build --release --features flutter,hwcodec
cargo ndk --platform 21 --target aarch64-linux-android build --locked --release --features flutter,hwcodec

View File

@@ -1,2 +1,2 @@
#!/usr/bin/env bash
cargo ndk --platform 21 --target x86_64-linux-android build --release --features flutter
cargo ndk --platform 21 --target x86_64-linux-android build --locked --release --features flutter

View File

@@ -7,4 +7,4 @@
export CFLAGS="-DBROKEN_CLANG_ATOMICS"
export CXXFLAGS="-DBROKEN_CLANG_ATOMICS"
cargo ndk --platform 21 --target i686-linux-android build --release --features flutter
cargo ndk --platform 21 --target i686-linux-android build --locked --release --features flutter

View File

@@ -1,9 +1,9 @@
#!/usr/bin/env bash
cargo install flutter_rust_bridge_codegen --version 1.80.1 --features uuid
cargo install flutter_rust_bridge_codegen --version 1.80.1 --features uuid --locked
flutter pub get
~/.cargo/bin/flutter_rust_bridge_codegen --rust-input ../src/flutter_ffi.rs --dart-output ./lib/generated_bridge.dart --c-output ./macos/Runner/bridge_generated.h
# call `flutter clean` if cargo build fails
# export LLVM_HOME=/Library/Developer/CommandLineTools/usr/
cargo build --features flutter
cargo build --locked --features flutter
flutter run $@