дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-04 09:11:10 +02:00
Replace the OpenIDEA mark with the gradient ring artwork on the startup, welcome, About, clone and project-opening screens, in the OS icon bundle and in the documentation branding. The in-app logo is a bundled asset so it resolves under a Web IDE subpath. Dogfood keeps a greyscale version of the same artwork, and the Rust build tracks the embedded icon inputs so icon-only changes rebuild the development Dock icon. Closes #3948
27 рядки
1.7 KiB
Rust
27 рядки
1.7 KiB
Rust
fn main() {
|
|
// Read when the script runs: a path compiled into the script would outlive a move of the checkout.
|
|
let manifest_dir =
|
|
std::path::PathBuf::from(std::env::var_os("CARGO_MANIFEST_DIR").expect("cargo sets CARGO_MANIFEST_DIR"));
|
|
let root = dunce::canonicalize(manifest_dir.parent().unwrap()).expect("worktree root");
|
|
println!("cargo:rustc-env=OPENIDEA_WORKTREE_ROOT={}", root.display());
|
|
// Windows (MSVC): link the Common-Controls v6 manifest into every binary of
|
|
// this package, not only the app's resources, so test executables such as
|
|
// `export_bindings` can load comctl32 and don't exit with
|
|
// STATUS_ENTRYPOINT_NOT_FOUND.
|
|
let mut windows = tauri_build::WindowsAttributes::new();
|
|
if std::env::var("CARGO_CFG_TARGET_ENV").as_deref() == Ok("msvc") {
|
|
windows = tauri_build::WindowsAttributes::new_without_app_manifest();
|
|
let manifest = manifest_dir.join("windows-app-manifest.xml");
|
|
println!("cargo:rerun-if-changed={}", manifest.display());
|
|
println!("cargo:rustc-link-arg=/MANIFEST:EMBED");
|
|
println!("cargo:rustc-link-arg=/MANIFESTINPUT:{}", manifest.display());
|
|
// Windows gives the main thread a 1 MB stack by default (macOS and Linux: 8 MB), which
|
|
// unoptimized debug frames overflow (STATUS_STACK_OVERFLOW). Match the 8 MB elsewhere.
|
|
println!("cargo:rustc-link-arg=/STACK:8388608");
|
|
}
|
|
// Tauri embeds the development Dock icon and the default window icon in the binary.
|
|
println!("cargo:rerun-if-changed=icons/icon.icns");
|
|
println!("cargo:rerun-if-changed=icons/32x32.png");
|
|
tauri_build::try_build(tauri_build::Attributes::new().windows_attributes(windows)).expect("tauri build");
|
|
}
|