Skip to content

Commit 4c14a24

Browse files
committed
Change nightly builds to use the non-portable profile by default
Fixes #1790
1 parent e3702db commit 4c14a24

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

scripts/build-arch.bat

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,19 @@ rem This must be done after WiX harvesting and signing, since the VCRT dlls are
268268
rem and should not be harvested for inclusion in the full installer
269269
copy "%VC_REDIST_DLL_PATH%\*.dll" %DEPLOY_FOLDER%
270270
if !ERRORLEVEL! NEQ 0 goto Error
271-
rem This file tells Moonlight that it's a portable installation
272-
echo. > %DEPLOY_FOLDER%\portable.dat
273-
if !ERRORLEVEL! NEQ 0 goto Error
271+
272+
rem Since we don't publish Windows installers for CI builds, let's use the user profile
273+
rem location of the regular non-portable version by default. We'll place a file in the
274+
rem the package to allow the user to rename if they want portable behavior.
275+
if defined CI_VERSION (
276+
echo. > %DEPLOY_FOLDER%\portable.dat.inactive
277+
if !ERRORLEVEL! NEQ 0 goto Error
278+
) else (
279+
rem This file tells Moonlight that it's a portable installation
280+
echo. > %DEPLOY_FOLDER%\portable.dat
281+
if !ERRORLEVEL! NEQ 0 goto Error
282+
)
283+
274284
7z a %INSTALLER_FOLDER%\MoonlightPortable-%ARCH%-%VERSION%.zip %DEPLOY_FOLDER%\*
275285
if !ERRORLEVEL! NEQ 0 goto Error
276286

0 commit comments

Comments
 (0)