Skip to content

Commit 323f75d

Browse files
committed
fix: Build fixes
1 parent 1bc1535 commit 323f75d

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
cmake --preset=release
5555
cmake --build build/release --config Release
5656
mkdir -p D:/a/build/unsigned
57-
mv build/release/Installer.exe D:/a/build/unsigned/MillenniumInstaller-Windows.exe
57+
mv build/Installer.exe D:/a/build/unsigned/MillenniumInstaller-Windows.exe
5858
5959
- name: Upload Build Artifact
6060
id: upload-unsigned-artifact

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.50)
1+
cmake_minimum_required(VERSION 3.31.6)
22
# Set the project name and version
33
project(Installer VERSION 1.0 LANGUAGES CXX)
44
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>" CACHE STRING "" FORCE)

src/routes/uninstall_select.cc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ ComponentProps MakeComponentProps(std::vector<std::filesystem::path> pathList)
9797
std::vector<std::string> pathListStr;
9898

9999
for (const auto& path : pathList) {
100+
if (!std::filesystem::exists(path)) {
101+
continue;
102+
}
100103
pathListStr.push_back(path.string());
101104
}
102105

@@ -119,16 +122,17 @@ void InitializeUninstaller()
119122
steamPath / "version.dll",
120123
steamPath / "ext" / "compat32" / "millennium_x86.dll",
121124
steamPath / "ext" / "compat32" / "python311.dll",
125+
steamPath / "millennium.hhx64.dll",
122126
steamPath / "millennium.dll",
123127
steamPath / "python311.dll"
124128
})) },
125129
{ "Custom Steam Components", std::make_tuple(ComponentState({ false, true }), MakeComponentProps({
126130
steamPath / "ext" / "data" / "assets",
127131
steamPath / "ext" / "data" / "shims"
128132
})) },
129-
{ "Dependencies", std::make_tuple(ComponentState({ false, true }), MakeComponentProps({ steamPath / "ext" / "data" / "cache" })) },
130-
{ "Themes", std::make_tuple(ComponentState({ false, true }), MakeComponentProps({ steamPath / "steamui" / "skins" })) },
131-
{ "Plugins", std::make_tuple(ComponentState({ false, true }), MakeComponentProps({ steamPath / "plugins" })) },
133+
{ "Dependencies", std::make_tuple(ComponentState({ false, true }), MakeComponentProps({ steamPath / "ext" / "data" / "cache", steamPath / "ext" / "data" / "pyx64" })) },
134+
{ "Themes", std::make_tuple(ComponentState({ false, true }), MakeComponentProps({ steamPath / "steamui" / "skins" })) },
135+
{ "Plugins", std::make_tuple(ComponentState({ false, true }), MakeComponentProps({ steamPath / "plugins" })) },
132136
};
133137
}
134138
// clang-format on

0 commit comments

Comments
 (0)