aboutsummaryrefslogtreecommitdiff
path: root/launcher/src/constants.rs
blob: eaf66fb2c697b608d13538eada5c3ea0d84d9f9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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");