Skip to main content

BinarySignature

Function BinarySignature 

Source
fn BinarySignature() -> String
Expand description

Produce an identity signature for THIS running binary derived from CARGO_PKG_NAME (which Maintain sets to the long PascalCase product name before cargo build). Each profile produces a distinct signature

  • _Debug_Mountain.debug.mountain, _Compile_Mountain.compile.mountain, _Bundle_Clean_Debug_ElectronProfile_Mountain.debug.electron.profile.mountain - so a candidate directory in ~/Library/Application Support/ can be disambiguated against every other land.editor.*.mountain leftover from prior runs.

Only the last three underscore-delimited segments are used: the leading DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_ 22NodeVersion_Bundle_Clean prefix is identical across profiles and doesn’t help disambiguate, while the tail (Debug_Mountain vs Compile_Mountain vs Debug_ElectronProfile_Mountain) is where the per-profile identity lives.