diff options
author | RaindropsSys <raindrops@equestria.dev> | 2024-05-10 22:41:19 +0200 |
---|---|---|
committer | RaindropsSys <raindrops@equestria.dev> | 2024-05-10 22:41:19 +0200 |
commit | e98145ba554d9e8396dea96e466c14db10e988fc (patch) | |
tree | bbbc84a45007dbbfacf99f6daa21a85024401fa0 /launcher/src/constants.rs | |
parent | 77472e57d0ce3f7e6420017225b3bdfbe1ac9050 (diff) | |
download | atomic-e98145ba554d9e8396dea96e466c14db10e988fc.tar.gz atomic-e98145ba554d9e8396dea96e466c14db10e988fc.tar.bz2 atomic-e98145ba554d9e8396dea96e466c14db10e988fc.zip |
Crappy code fix 12/?
Diffstat (limited to 'launcher/src/constants.rs')
-rw-r--r-- | launcher/src/constants.rs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/launcher/src/constants.rs b/launcher/src/constants.rs new file mode 100644 index 0000000..eaf66fb --- /dev/null +++ b/launcher/src/constants.rs @@ -0,0 +1,24 @@ +// TODO: Rename these to "Atomic" + +#[cfg(target_os = "macos")] +pub const BINARY_PATH: &str = "Contents/MacOS/Electron"; + +#[cfg(target_os = "linux")] +pub const BINARY_PATH: &str = "electron"; + +#[cfg(target_os = "windows")] +pub const BINARY_PATH: &str = "electron.exe"; + +#[cfg(target_os = "macos")] +pub const APP_FOLDER_PATH: &str = "../Resources/app"; + +#[cfg(any(target_os = "linux", target_os = "windows"))] +pub const APP_FOLDER_PATH: &str = "./resources/app"; + +#[cfg(target_os = "macos")] +pub const APP_ASAR_PATH: &str = "../Resources/app.asar"; + +#[cfg(any(target_os = "linux", target_os = "windows"))] +pub const APP_ASAR_PATH: &str = "./resources/app.asar"; + +pub const VERSION: &str = env!("CARGO_PKG_VERSION"); |