Skip to content

Commit

Permalink
ci: pass build
Browse files Browse the repository at this point in the history
  • Loading branch information
drevoed authored and Drevoed committed Nov 27, 2022
1 parent 3f672ab commit accfe2a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src-tauri/src/admin.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#[cfg(windows)]
pub fn reopen_as_admin() {
use std::process::{exit, Command};

let install = std::env::current_exe().unwrap();

println!("Opening as admin: {}", install.to_str().unwrap());
Expand All @@ -16,5 +18,6 @@ pub fn reopen_as_admin() {
exit(0);
}

#[allow(unused)]
#[cfg(target_os = "linux")]
pub fn reopen_as_admin() {}
2 changes: 1 addition & 1 deletion src-tauri/src/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ pub fn generate_ca_files(path: &Path) -> CultivationResult<()> {
*/
#[cfg(windows)]
pub fn install_ca_files(cert_path: &Path) {
crate::system_helpers::run_command(
run_command(
"certutil",
vec!["-user", "-addstore", "Root", cert_path.to_str().unwrap()],
None,
Expand Down

0 comments on commit accfe2a

Please sign in to comment.