2 Commits

Author SHA1 Message Date
Novattz
6559b15894 version bump 2025-09-12 06:41:15 +02:00
Novattz
653c301ba9 correct SmokeAPI DLL name mapping during installation 2025-09-12 06:39:38 +02:00
4 changed files with 19 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "creamlinux",
"private": true,
"version": "1.0.2",
"version": "1.0.4",
"type": "module",
"author": "Tickbase",
"repository": "https://github.com/Novattz/creamlinux-installer",

View File

@@ -1,6 +1,6 @@
[package]
name = "app"
version = "1.0.1"
version = "1.0.4"
description = "DLC Manager for Steam games on Linux"
authors = ["tickbase"]
license = "MIT"

View File

@@ -1001,15 +1001,27 @@ where
info!("Created backup: {}", backup_path.display());
}
// Extract the appropriate DLL directly to the game directory
if let Ok(mut file) = archive.by_name(&api_name.to_string_lossy()) {
// Map the Steam API DLL name to the corresponding SmokeAPI DLL name
let smoke_dll_name = match api_name.to_string_lossy().as_ref() {
"steam_api.dll" => "SmokeAPI32.dll",
"steam_api64.dll" => "SmokeAPI64.dll",
_ => {
return Err(InstallerError::InstallationError(format!(
"Unknown Steam API DLL: {}",
api_name.to_string_lossy()
)));
}
};
// Extract the appropriate SmokeAPI DLL and rename it to the original Steam API DLL name
if let Ok(mut file) = archive.by_name(smoke_dll_name) {
let mut outfile = fs::File::create(&original_path)?;
io::copy(&mut file, &mut outfile)?;
info!("Installed SmokeAPI as: {}", original_path.display());
info!("Installed {} as: {}", smoke_dll_name, original_path.display());
} else {
return Err(InstallerError::InstallationError(format!(
"Could not find {} in the SmokeAPI zip file",
api_name.to_string_lossy()
smoke_dll_name
)));
}
}

View File

@@ -14,7 +14,7 @@
},
"productName": "Creamlinux",
"mainBinaryName": "creamlinux",
"version": "1.0.2",
"version": "1.0.4",
"identifier": "com.creamlinux.dev",
"app": {
"withGlobalTauri": false,