Switch to GitHub Actions for Windows and macOS builds

This commit is contained in:
Cameron Gutman
2025-10-26 12:31:33 -05:00
parent 7d544c1ce4
commit 68aa04926e
8 changed files with 157 additions and 40 deletions

View File

@@ -96,7 +96,13 @@ set BUILD_FOLDER=%BUILD_ROOT%\build-%ARCH%-%BUILD_CONFIG%
set DEPLOY_FOLDER=%BUILD_ROOT%\deploy-%ARCH%-%BUILD_CONFIG%
set INSTALLER_FOLDER=%BUILD_ROOT%\installer-%ARCH%-%BUILD_CONFIG%
set SYMBOLS_FOLDER=%BUILD_ROOT%\symbols-%ARCH%-%BUILD_CONFIG%
set /p VERSION=<%SOURCE_ROOT%\app\version.txt
rem Allow CI to override the version.txt with an environment variable
if defined CI_VERSION (
set VERSION=%CI_VERSION%
) else (
set /p VERSION=<%SOURCE_ROOT%\app\version.txt
)
rem Use the correct VC tools for the specified architecture
if /I "%ARCH%" EQU "x64" (
@@ -237,7 +243,7 @@ if "%ML_SYMBOL_STORE%" NEQ "" (
)
echo Building MSI
msbuild -Restore %SOURCE_ROOT%\wix\Moonlight\Moonlight.wixproj /p:Configuration=%BUILD_CONFIG% /p:Platform=%ARCH% /p:MSBuildProjectExtensionsPath=%BUILD_FOLDER%\
cmd /c "set VERSION= && msbuild -Restore %SOURCE_ROOT%\wix\Moonlight\Moonlight.wixproj /p:Configuration=%BUILD_CONFIG% /p:Platform=%ARCH% /p:MSBuildProjectExtensionsPath=%BUILD_FOLDER%\"
if !ERRORLEVEL! NEQ 0 goto Error
echo Copying application binary to deployment directory