Trimmed monorepo checkout (fluxer_desktop + packages/voice_engine_v2 + tools/ci) with a "Connect to a Different Server" menu item and popout that lets the desktop app switch to any self-hosted Fluxer instance, plus fixes for well-known discovery on single-domain self-hosted deployments and a false-positive ERR_ABORTED on same-origin client redirects during the switch. Defaults to chat.fluxr.chat and uses an isolated userData directory from the official build.
21 lines
597 B
Rust
21 lines
597 B
Rust
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
fn main() {
|
|
napi_build::setup();
|
|
|
|
let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default();
|
|
|
|
match target_os.as_str() {
|
|
"macos" => {}
|
|
"windows" => {
|
|
println!("cargo:rustc-link-arg-cdylib=/DELAYLOAD:webauthn.dll");
|
|
println!("cargo:rustc-link-arg-cdylib=delayimp.lib");
|
|
}
|
|
"linux" => {
|
|
println!("cargo:rustc-link-arg-cdylib=-Wl,--disable-new-dtags");
|
|
println!("cargo:rustc-link-arg-cdylib=-Wl,-rpath,$ORIGIN");
|
|
}
|
|
_ => {}
|
|
}
|
|
}
|