Skip to content

Commit 626c305

Browse files
fix: do not extract libsciter.so in appimage
1 parent ea714b1 commit 626c305

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,8 @@ fn main() {
10591059
.to_path_buf();
10601060
let lib_path = exe_dir.join(lib_name);
10611061

1062-
if !lib_path.exists() {
1062+
if !lib_path.exists() &&
1063+
/* we should not extract if in appimage, since it has the library bundled in a different way */ std::env::var("APPIMAGE").is_err() {
10631064
println!("Extracting {}...", lib_name);
10641065
let lib_bytes = include_bytes_zstd::include_bytes_zstd!("resources/libsciter.so", 19);
10651066
let mut file = std::fs::File::create(&lib_path).expect("Failed to create libsciter.so");

0 commit comments

Comments
 (0)