[AppVeyor] AppVeyor doesn't like IF blocks.

This commit is contained in:
Rick Gibbed 2020-02-17 15:38:05 -06:00 committed by GitHub
parent 75f98b01b9
commit c72d65ad9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 7 deletions

View File

@ -38,13 +38,10 @@ build_script:
after_build:
- cmd: |
IF "%CONFIGURATION%"=="Checked" (
set "ARCHIVE_SUFFIX=%APPVEYOR_REPO_BRANCH%_FOR-DEVS-ONLY"
set "7Z_SWITCHES="-pI know what I am doing." --"
) ELSE (
set "ARCHIVE_SUFFIX=%APPVEYOR_REPO_BRANCH%"
set "7Z_SWITCHES=--"
)
IF NOT "%CONFIGURATION%"=="Checked" SET "ARCHIVE_SUFFIX=%APPVEYOR_REPO_BRANCH%"
IF NOT "%CONFIGURATION%"=="Checked" SET "7Z_SWITCHES=--"
IF "%CONFIGURATION%"=="Checked" SET "ARCHIVE_SUFFIX=%APPVEYOR_REPO_BRANCH%_FOR-DEVS-ONLY"
IF "%CONFIGURATION%"=="Checked" SET "7Z_SWITCHES="-pI know what I am doing." --"
7z a xenia_%ARCHIVE_SUFFIX%.zip %7Z_SWITCHES% LICENSE %APPVEYOR_BUILD_FOLDER%\build\bin\%PLATFORM%\%CONFIGURATION%\xenia.exe %APPVEYOR_BUILD_FOLDER%\build\bin\%PLATFORM%\%CONFIGURATION%\xenia.pdb
7z a xenia-vfs-dump_%ARCHIVE_SUFFIX%.zip %7Z_SWITCHES% LICENSE %APPVEYOR_BUILD_FOLDER%\build\bin\%PLATFORM%\%CONFIGURATION%\xenia-vfs-dump.exe %APPVEYOR_BUILD_FOLDER%\build\bin\%PLATFORM%\%CONFIGURATION%\xenia-vfs-dump.pdb
7z a SDL2.zip %7Z_SWITCHES% %APPVEYOR_BUILD_FOLDER%\build\bin\%PLATFORM%\%CONFIGURATION%\SDL2.dll