Files
Andy Dixon 9805681c2c license: release Nexus Terminal under the GNU AGPL v3
- LICENSE: the GNU Affero General Public License, version 3 (verbatim
  from gnu.org).
- SPDX-License-Identifier: AGPL-3.0-only plus a copyright line on every
  first-party source file (Rust, shell, Python, PHP); vendored crates keep
  their own licenses.
- Cargo manifests carry license/authors/repository; the macOS bundle
  copyright and the About page state the license and link the source.
- Release zips (and the macOS app bundle) include LICENSE.
- README: License section.
2026-10-13 09:46:31 +01:00

18 lines
724 B
Rust

// SPDX-License-Identifier: AGPL-3.0-only
// Copyright (C) 2026 Andy Dixon
//! Embeds the icon and version info into the Windows executable.
fn main() {
println!("cargo:rerun-if-changed=../packaging/windows/nexus.ico");
if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("windows") {
let mut res = winresource::WindowsResource::new();
if std::path::Path::new("../packaging/windows/nexus.ico").exists() {
res.set_icon("../packaging/windows/nexus.ico");
}
res.set("ProductName", "Nexus Terminal").set("FileDescription", "Nexus Terminal");
if let Err(e) = res.compile() {
println!("cargo:warning=Windows icon not embedded: {e}");
}
}
}