From 3dfd9814de2173c558d80ed32cddb8bd65fdaabe Mon Sep 17 00:00:00 2001 From: MelonSpeedruns Date: Wed, 7 May 2025 09:25:53 -0400 Subject: [PATCH] Fixed paths with spaces not being able to compress properly. Needs testing on Linux and Mac! --- RecompModTool/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RecompModTool/main.cpp b/RecompModTool/main.cpp index 85d6d48..fae14a9 100644 --- a/RecompModTool/main.cpp +++ b/RecompModTool/main.cpp @@ -974,7 +974,7 @@ bool create_mod_zip(const std::filesystem::path& output_dir, const ModConfig& co #ifdef _WIN32 std::filesystem::path temp_zip_path = output_path; temp_zip_path.replace_extension(".zip"); - std::string command_string = fmt::format("powershell -command Compress-Archive -Force -CompressionLevel Optimal -DestinationPath \"{}\" -Path \"{}\",\"{}\",\"{}\"", + std::string command_string = fmt::format("powershell -command Compress-Archive -Force -CompressionLevel Optimal -DestinationPath '{}' -Path '{}','{}','{}'", temp_zip_path.string(), (output_dir / symbol_filename).string(), (output_dir / binary_filename).string(), (output_dir / manifest_filename).string()); for (const auto& cur_file : config.inputs.additional_files) {