Skip to content

Commit eeca662

Browse files
committed
chore: remove MILLENNIUM__UPDATE_SCRIPT_PROMPT cmake machinery
1 parent 39659c0 commit eeca662

2 files changed

Lines changed: 1 addition & 20 deletions

File tree

src/CMakeLists.txt

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -198,21 +198,6 @@ if(UNIX AND CMAKE_BUILD_TYPE STREQUAL "Release")
198198
set(CMAKE_CXX_FLAGS_DEBUG "")
199199
endif()
200200

201-
include(${MILLENNIUM_BASE}/scripts/cmake/detect_aur_helper.cmake)
202-
203-
if(DISTRO_NIX)
204-
detect_aur_helper(MILLENNIUM__UPDATE_SCRIPT_PROMPT)
205-
set(MILLENNIUM__UPDATE_SCRIPT_PROMPT "echo {}")
206-
elseif(UNIX AND NOT APPLE)
207-
if(DISTRO_ARCH OR LSB_RELEASE_ID_SHORT STREQUAL "Arch")
208-
detect_aur_helper(MILLENNIUM__UPDATE_SCRIPT_PROMPT)
209-
elseif(NIX_BUILD OR LSB_RELEASE_ID_SHORT STREQUAL "NixOS")
210-
set(MILLENNIUM__UPDATE_SCRIPT_PROMPT "nix flake update millennium")
211-
else()
212-
set(MILLENNIUM__UPDATE_SCRIPT_PROMPT "curl -fsSL 'https://steambrew.app/install.sh' | bash")
213-
endif()
214-
message(STATUS "[Millennium] Setting MILLENNIUM__UPDATE_SCRIPT_PROMPT to: ${MILLENNIUM__UPDATE_SCRIPT_PROMPT}")
215-
endif()
216201

217202
include(${MILLENNIUM_BASE}/scripts/cmake/find_steam_path.cmake)
218203

@@ -222,7 +207,7 @@ if(CMAKE_BUILD_TYPE STREQUAL "Release" AND NOT DISTRO_NIX)
222207
find_program(BUN_EXECUTABLE bun REQUIRED)
223208
message(STATUS "[Millennium] Building TypeScript frontend...")
224209
execute_process(
225-
COMMAND ${BUN_EXECUTABLE} install --frozen-lockfile
210+
COMMAND ${BUN_EXECUTABLE} install
226211
WORKING_DIRECTORY "${MILLENNIUM_BASE}/src/typescript"
227212
RESULT_VARIABLE _bun_result
228213
)
@@ -243,12 +228,10 @@ include(${MILLENNIUM_BASE}/scripts/cmake/generate_virtfs.cmake)
243228

244229
if(WIN32)
245230
add_library(Millennium SHARED "${SOURCE_FILES}")
246-
target_compile_definitions(Millennium PRIVATE MILLENNIUM__UPDATE_SCRIPT_PROMPT="https://github.com/SteamClientHomebrew/Installer/releases/latest/download/MillenniumInstaller-Windows.exe")
247231
elseif(UNIX)
248232
add_library(Millennium SHARED "${SOURCE_FILES}")
249233

250234
add_compile_definitions(MILLENNIUM_SHARED)
251-
target_compile_definitions(Millennium PRIVATE MILLENNIUM__UPDATE_SCRIPT_PROMPT="${MILLENNIUM__UPDATE_SCRIPT_PROMPT}")
252235
if(APPLE)
253236
target_compile_definitions(Millennium PRIVATE MILLENNIUM_MENU_ICON_PATH="${MILLENNIUM_BASE}/src/bootstrap/macos/AppIcon.icns")
254237
endif()

src/system/environment.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ void platform::environment::setup()
202202
{ "MILLENNIUM__DATA_LIB", dataLibPath },
203203
{ "MILLENNIUM__SHIMS_PATH", shimsPath },
204204
{ "MILLENNIUM__ASSETS_PATH", assetsPath },
205-
{ "MILLENNIUM__UPDATE_SCRIPT_PROMPT", MILLENNIUM__UPDATE_SCRIPT_PROMPT },
206205
};
207206
environment.insert(environment_unix.begin(), environment_unix.end());
208207
#elif __APPLE__
@@ -221,7 +220,6 @@ void platform::environment::setup()
221220
{ "MILLENNIUM__DATA_LIB", dataLibPath },
222221
{ "MILLENNIUM__SHIMS_PATH", shimsPath },
223222
{ "MILLENNIUM__ASSETS_PATH", assetsPath },
224-
{ "MILLENNIUM__UPDATE_SCRIPT_PROMPT", MILLENNIUM__UPDATE_SCRIPT_PROMPT },
225223
};
226224
environment.insert(environment_macos.begin(), environment_macos.end());
227225
#endif

0 commit comments

Comments
 (0)