Skip to repository content

tenant.openagents/omega

No repository description is available.

OpenAgents Git authority 2026-07-28T01:49:09.399Z Public web read
NIP-34 coordinate30617:7649603503856e5148d571eac2766b288a8ff1e9e35d380337a1d2b0015b4f92:omega
MaintainersHidden in public view
References2 branches · 1 tag
Read-only clonegit clone https://openagents.com/git/tenant.openagents/omega.git
Browse files

build.rs

38 lines · 1.2 KB · rust
1#![allow(clippy::disallowed_methods, reason = "build scripts are exempt")]
2use std::process::Command;
3
4fn main() {
5    if std::env::var("ZED_UPDATE_EXPLANATION").is_ok() {
6        println!(r#"cargo:rustc-cfg=feature="no-bundled-uninstall""#);
7    }
8
9    if cfg!(target_os = "macos") {
10        println!("cargo:rustc-env=MACOSX_DEPLOYMENT_TARGET=10.15.7");
11    }
12
13    // Populate git sha environment variable if git is available
14    println!("cargo:rerun-if-changed=../../.git/logs/HEAD");
15    if let Some(output) = Command::new("git")
16        .args(["rev-parse", "HEAD"])
17        .output()
18        .ok()
19        .filter(|output| output.status.success())
20    {
21        let git_sha = String::from_utf8_lossy(&output.stdout);
22        let git_sha = git_sha.trim();
23
24        println!("cargo:rustc-env=ZED_COMMIT_SHA={git_sha}");
25    }
26    if let Some(build_identifier) = option_env!("GITHUB_RUN_NUMBER") {
27        println!("cargo:rustc-env=ZED_BUILD_ID={build_identifier}");
28    }
29
30    #[cfg(windows)]
31    {
32        println!("cargo:rerun-if-env-changed=RELEASE_CHANNEL");
33        println!("cargo:rerun-if-env-changed=GITHUB_RUN_NUMBER");
34
35        windows_resources::compile(false).expect("failed to compile Windows resources");
36    }
37}
38
Served at tenant.openagents/omega Member data and write actions are omitted.