fix: macos compile
This commit is contained in:
parent
f0b532426f
commit
021612e8be
2
.github/workflows/flutter-build.yml
vendored
2
.github/workflows/flutter-build.yml
vendored
@ -431,7 +431,7 @@ jobs:
|
|||||||
VCPKG_ROOT: /opt/rustdesk_thirdparty_lib/vcpkg
|
VCPKG_ROOT: /opt/rustdesk_thirdparty_lib/vcpkg
|
||||||
run: |
|
run: |
|
||||||
rustup target add ${{ matrix.job.target }}
|
rustup target add ${{ matrix.job.target }}
|
||||||
cargo build --release --target aarch64-apple-ios --lib
|
cargo build --features flutter --release --target aarch64-apple-ios --lib
|
||||||
|
|
||||||
- name: Build rustdesk
|
- name: Build rustdesk
|
||||||
shell: bash
|
shell: bash
|
||||||
|
10
build.rs
10
build.rs
@ -123,9 +123,11 @@ fn main() {
|
|||||||
build_manifest();
|
build_manifest();
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
build_windows();
|
build_windows();
|
||||||
#[cfg(target_os = "macos")]
|
let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap();
|
||||||
build_mac();
|
if target_os == "macos" {
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
println!("cargo:rustc-link-lib=framework=ApplicationServices");
|
build_mac();
|
||||||
|
println!("cargo:rustc-link-lib=framework=ApplicationServices");
|
||||||
|
}
|
||||||
println!("cargo:rerun-if-changed=build.rs");
|
println!("cargo:rerun-if-changed=build.rs");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user