Rinomina: crate akode-*, cartelle akode-rs/ e akode-cli/, binario akode, ~/.akode, AKODE_* (A)
Riapplica la fase 5 di aKode (86e7c72e) sulla base ripulita:
- crate codex-* -> akode-*, codex-rs -> akode-rs, codex-cli -> akode-cli, binario e ausiliari akode;
- ~/.codex -> ~/.akode, CODEX_HOME -> AKODE_HOME, variabili CODEX_* -> AKODE_*, .codex/ -> .akode/ di progetto;
nessun fallback a ~/.codex o a CODEX_*;
- testi per l'utente "Codex" -> "aKode"; testi verso il modello e istruzioni di sistema invariati;
- snapshot insta rinominati (non ancora rigenerati).
I conflitti con la base ripulita sono stati risolti riapplicando la rinomina ai file senza le
funzioni di imeAI (script di mappa dei token per file).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
39
akode-rs/windows-sandbox-rs/build.rs
Normal file
39
akode-rs/windows-sandbox-rs/build.rs
Normal file
@@ -0,0 +1,39 @@
|
||||
use std::env;
|
||||
use std::path::PathBuf;
|
||||
|
||||
const SETUP_BIN: &str = "akode-windows-sandbox-setup";
|
||||
const SETUP_MANIFEST: &str = "akode-windows-sandbox-setup.manifest";
|
||||
|
||||
fn main() -> Result<(), String> {
|
||||
println!("cargo:rerun-if-changed={SETUP_MANIFEST}");
|
||||
|
||||
if env::var("CARGO_CFG_TARGET_OS").as_deref() != Ok("windows") {
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let manifest_dir = env::var_os("CARGO_MANIFEST_DIR")
|
||||
.ok_or_else(|| "CARGO_MANIFEST_DIR should be set for build scripts".to_string())?;
|
||||
let manifest_path = PathBuf::from(manifest_dir).join(SETUP_MANIFEST);
|
||||
let manifest_path = manifest_path.display();
|
||||
|
||||
// Keep this scoped to the setup helper so Codex binaries that link the
|
||||
// library do not inherit any resource metadata from this package.
|
||||
match (
|
||||
env::var("CARGO_CFG_TARGET_ENV").as_deref(),
|
||||
env::var("CARGO_CFG_TARGET_ABI").as_deref(),
|
||||
) {
|
||||
(Ok("msvc"), _) => {
|
||||
println!("cargo:rustc-link-arg-bin={SETUP_BIN}=/MANIFEST:EMBED");
|
||||
println!("cargo:rustc-link-arg-bin={SETUP_BIN}=/MANIFESTINPUT:{manifest_path}");
|
||||
}
|
||||
(Ok("gnu"), Ok("llvm")) => {
|
||||
println!("cargo:rustc-link-arg-bin={SETUP_BIN}=-Wl,-Xlink=/manifest:embed");
|
||||
println!(
|
||||
"cargo:rustc-link-arg-bin={SETUP_BIN}=-Wl,-Xlink=/manifestinput:{manifest_path}"
|
||||
);
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
Reference in New Issue
Block a user