Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions installer/src-tauri/src/installer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use std::thread;

const DEFAULT_REPO_URL: &str = "https://github.com/Osmantic/ODS.git";
const DEFAULT_INSTALL_REF: &str = "main";
const ENV_INSTALLER_GUI: &str = "ODS_INSTALLER_GUI";
const TRANSFERRED_REPO_URL_BYTES: &[u8] = &[
104, 116, 116, 112, 115, 58, 47, 47, 103, 105, 116, 104, 117, 98, 46, 99, 111, 109, 47, 76,
105, 103, 104, 116, 45, 72, 101, 97, 114, 116, 45, 76, 97, 98, 115, 47, 79, 68, 83, 46, 103,
Expand Down Expand Up @@ -104,7 +105,7 @@ pub fn run_install(
Command::new("powershell.exe")
.args(&ps_args)
.current_dir(&install_dir)
.env("ODS_INSTALLER_GUI", "1")
.env(ENV_INSTALLER_GUI, "1")
.stdout(Stdio::piped())
.stderr(Stdio::piped())
.spawn()
Expand All @@ -113,7 +114,7 @@ pub fn run_install(
Command::new(&install_script)
.args(&args)
.current_dir(&ods_dir)
.env("ODS_INSTALLER_GUI", "1")
.env(ENV_INSTALLER_GUI, "1")
.stdout(Stdio::piped())
.stderr(Stdio::piped())
.spawn()
Expand Down
Loading