Skip to content

Commit

Permalink
Fix libssl flatpak
Browse files Browse the repository at this point in the history
Fixes problem with llibssl.so.1.0.0 not being found inside flatpak sandbox. This pr removes the libssl.so.1.0.0 dependency on linux and macos systems as it's only used on windows.
  • Loading branch information
Tykky authored May 10, 2021
1 parent 32f5b5f commit 5f24071
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tmc"
version = "0.3.7"
version = "1.0.1"
authors = ["HoolaBoola <[email protected]>",
"Robustic <[email protected]>",
"ShootingStar91 <[email protected]>",
Expand Down
3 changes: 3 additions & 0 deletions src/commands.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#[cfg(target_os = "windows")]
use crate::updater;
use command_util::{get_organization, Client, ClientProduction};
use courses_command::list_courses;
Expand Down Expand Up @@ -138,9 +139,11 @@ pub fn handle(matches: &clap::ArgMatches, io: &mut dyn Io) {
}
("logout", _) => logout(io, &mut client),
("fetchupdate", _) => {
#[cfg(target_os = "windows")]
updater::process_update();
}
("cleartemp", _) => {
#[cfg(target_os = "windows")]
updater::cleartemp().unwrap();
}
("elevateddownload", _) => {
Expand Down
6 changes: 6 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ mod cli;
pub mod commands;
pub mod interactive;
pub mod progress_reporting;

// Updater is used only for windows
// Updates for linux and macos are handled
// via package managers
#[cfg(target_os = "windows")]
mod updater;

fn main() {
Expand Down Expand Up @@ -39,6 +44,7 @@ fn main() {
0 => {
let os = std::env::consts::OS;
if os == "windows" {
#[cfg(target_os = "windows")]
updater::check_for_update();
}
}
Expand Down

0 comments on commit 5f24071

Please sign in to comment.