Skip to content

Commit

Permalink
Fix building beta installer
Browse files Browse the repository at this point in the history
  • Loading branch information
poiru committed Feb 8, 2021
1 parent 7efcf2a commit cd49cb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/official-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ jobs:
- name: Upload installer
uses: actions/upload-artifact@v2
with:
name: installer
name: Rainmeter-${{ github.event.inputs.version }}-${{ github.event.inputs.type }}
path: Build/Rainmeter-*.exe
if-no-files-found: error
4 changes: 2 additions & 2 deletions Build/Build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ if not "%CERTFILE%" == "" (
echo * Building installer

set INSTALLER_PATH=Rainmeter-%VERSION_SHORT%.exe
if "%ISBETA%" == "true" set INSTALLER_PATH=Rainmeter-%VERSION_SHORT%-r%VERSION_REVISION%-beta.exe
if "%BUILD_TYPE%" == "beta" set INSTALLER_PATH=Rainmeter-%VERSION_SHORT%-r%VERSION_REVISION%-beta.exe

set INSTALLER_DEFINES=^
/DOUTFILE="%INSTALLER_PATH%"^
Expand All @@ -151,7 +151,7 @@ set INSTALLER_DEFINES=^
/DVERSION_REVISION="%VERSION_REVISION%"^
/DVERSION_MAJOR="%VERSION_MAJOR%"^
/DVERSION_MINOR="%VERSION_MINOR%"
if "%ISBETA%" == "true" set INSTALLER_DEFINES=!INSTALLER_DEFINES! /DBETA
if "%BUILD_TYPE%" == "beta" set INSTALLER_DEFINES=!INSTALLER_DEFINES! /DBETA

"%MAKENSIS%" %INSTALLER_DEFINES% /WX .\Installer\Installer.nsi || (echo ERROR %ERRORLEVEL%: Building installer failed & exit /b 1)

Expand Down

0 comments on commit cd49cb1

Please sign in to comment.