From 4c14a249609334c3cfbe4af214f9ba62c92f5d24 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 7 Feb 2026 17:26:23 -0600 Subject: [PATCH] Change nightly builds to use the non-portable profile by default Fixes #1790 --- scripts/build-arch.bat | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/scripts/build-arch.bat b/scripts/build-arch.bat index 41a631dd..2c774fde 100644 --- a/scripts/build-arch.bat +++ b/scripts/build-arch.bat @@ -268,9 +268,19 @@ rem This must be done after WiX harvesting and signing, since the VCRT dlls are rem and should not be harvested for inclusion in the full installer copy "%VC_REDIST_DLL_PATH%\*.dll" %DEPLOY_FOLDER% if !ERRORLEVEL! NEQ 0 goto Error -rem This file tells Moonlight that it's a portable installation -echo. > %DEPLOY_FOLDER%\portable.dat -if !ERRORLEVEL! NEQ 0 goto Error + +rem Since we don't publish Windows installers for CI builds, let's use the user profile +rem location of the regular non-portable version by default. We'll place a file in the +rem the package to allow the user to rename if they want portable behavior. +if defined CI_VERSION ( + echo. > %DEPLOY_FOLDER%\portable.dat.inactive + if !ERRORLEVEL! NEQ 0 goto Error +) else ( + rem This file tells Moonlight that it's a portable installation + echo. > %DEPLOY_FOLDER%\portable.dat + if !ERRORLEVEL! NEQ 0 goto Error +) + 7z a %INSTALLER_FOLDER%\MoonlightPortable-%ARCH%-%VERSION%.zip %DEPLOY_FOLDER%\* if !ERRORLEVEL! NEQ 0 goto Error