Skip to content

Commit 5f24071

Browse files
authored
Fix libssl flatpak
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.
1 parent 32f5b5f commit 5f24071

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tmc"
3-
version = "0.3.7"
3+
version = "1.0.1"
44
authors = ["HoolaBoola <jaime.heikkiladias@helsinki.fi>",
55
"Robustic <juha.malinen@helsinki.fi>",
66
"ShootingStar91 <arttu.kangas@helsinki.fi>",

src/commands.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#[cfg(target_os = "windows")]
12
use crate::updater;
23
use command_util::{get_organization, Client, ClientProduction};
34
use courses_command::list_courses;
@@ -138,9 +139,11 @@ pub fn handle(matches: &clap::ArgMatches, io: &mut dyn Io) {
138139
}
139140
("logout", _) => logout(io, &mut client),
140141
("fetchupdate", _) => {
142+
#[cfg(target_os = "windows")]
141143
updater::process_update();
142144
}
143145
("cleartemp", _) => {
146+
#[cfg(target_os = "windows")]
144147
updater::cleartemp().unwrap();
145148
}
146149
("elevateddownload", _) => {

src/main.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ mod cli;
1212
pub mod commands;
1313
pub mod interactive;
1414
pub mod progress_reporting;
15+
16+
// Updater is used only for windows
17+
// Updates for linux and macos are handled
18+
// via package managers
19+
#[cfg(target_os = "windows")]
1520
mod updater;
1621

1722
fn main() {
@@ -39,6 +44,7 @@ fn main() {
3944
0 => {
4045
let os = std::env::consts::OS;
4146
if os == "windows" {
47+
#[cfg(target_os = "windows")]
4248
updater::check_for_update();
4349
}
4450
}

0 commit comments

Comments
 (0)