From 83ea7103e3de7521d268111a04ba1cc6c1d4eb67 Mon Sep 17 00:00:00 2001 From: Pete Batard Date: Tue, 28 Sep 2021 19:47:09 +0100 Subject: [PATCH] [ci] set VS2019 to produce ALPHA or BETA off release --- .github/workflows/vs2019.yml | 14 +++++++++++++- .vs/rufus.vcxproj | 16 ++++++++-------- res/appstore/Package.appxmanifest | 2 +- src/rufus.rc | 10 +++++----- 4 files changed, 27 insertions(+), 15 deletions(-) diff --git a/.github/workflows/vs2019.yml b/.github/workflows/vs2019.yml index e8638302..51be7c39 100644 --- a/.github/workflows/vs2019.yml +++ b/.github/workflows/vs2019.yml @@ -47,10 +47,22 @@ jobs: - name: Add MSBuild to PATH uses: microsoft/setup-msbuild@v1 + - name: Set ALPHA + id: set_alpha + if: ${{ !startsWith(github.ref, 'refs/tags/') }} + run: echo "::set-output name=option::/DALPHA" + + - name: Set BETA + id: set_beta + if: ${{ startsWith(github.ref, 'refs/tags/') && contains(github.ref, 'BETA') }} + run: echo "::set-output name=option::/DBETA" + - name: Build + shell: cmd run: | + set ExternalCompilerOptions=${{ steps.set_alpha.outputs.option }} ${{ steps.set_beta.outputs.option }} msbuild ${{ env.SOLUTION_FILE_PATH }} /m /p:Configuration=${{ env.BUILD_CONFIGURATION }},Platform=${{ matrix.TARGET_PLATFORM }} - move ./${{ matrix.TARGET_PLATFORM }}/Release/rufus.exe ./rufus_${{ matrix.TARGET_PLATFORM }}.exe + move .\${{ matrix.TARGET_PLATFORM }}\Release\rufus.exe .\rufus_${{ matrix.TARGET_PLATFORM }}.exe - name: Display SHA-256 run: sha256sum ./rufus_${{ matrix.TARGET_PLATFORM }}.exe diff --git a/.vs/rufus.vcxproj b/.vs/rufus.vcxproj index 68cc6631..5b3df00b 100644 --- a/.vs/rufus.vcxproj +++ b/.vs/rufus.vcxproj @@ -130,7 +130,7 @@ false 4091;28251;28252;28253;%(DisableSpecificWarnings) Disabled - /utf-8 %(AdditionalOptions) + /utf-8 $(ExternalCompilerOptions) %(AdditionalOptions) advapi32.lib;comctl32.lib;comdlg32.lib;crypt32.lib;gdi32.lib;ole32.lib;setupapi.lib;shell32.lib;shlwapi.lib;wintrust.lib;psapi.lib;%(AdditionalDependencies) @@ -154,7 +154,7 @@ true false 4091;28251;28252;28253;%(DisableSpecificWarnings) - /utf-8 %(AdditionalOptions) + /utf-8 $(ExternalCompilerOptions) %(AdditionalOptions) advapi32.lib;comctl32.lib;comdlg32.lib;crypt32.lib;gdi32.lib;ole32.lib;setupapi.lib;shell32.lib;shlwapi.lib;wintrust.lib;ole32.lib;advapi32.lib;gdi32.lib;shell32.lib;comdlg32.lib;%(AdditionalDependencies) @@ -180,7 +180,7 @@ true false 4091;28251;28252;28253;%(DisableSpecificWarnings) - /utf-8 %(AdditionalOptions) + /utf-8 $(ExternalCompilerOptions) %(AdditionalOptions) advapi32.lib;comctl32.lib;comdlg32.lib;crypt32.lib;gdi32.lib;ole32.lib;setupapi.lib;shell32.lib;shlwapi.lib;wintrust.lib;ole32.lib;advapi32.lib;gdi32.lib;shell32.lib;comdlg32.lib;%(AdditionalDependencies) @@ -211,7 +211,7 @@ false 4091;28251;28252;28253;%(DisableSpecificWarnings) Disabled - /utf-8 %(AdditionalOptions) + /utf-8 $(ExternalCompilerOptions) %(AdditionalOptions) advapi32.lib;comctl32.lib;comdlg32.lib;crypt32.lib;gdi32.lib;ole32.lib;setupapi.lib;shell32.lib;shlwapi.lib;wintrust.lib;psapi.lib;%(AdditionalDependencies) @@ -236,7 +236,7 @@ false 4091;28251;28252;28253;%(DisableSpecificWarnings) NDEBUG - /utf-8 %(AdditionalOptions) + /utf-8 $(ExternalCompilerOptions) %(AdditionalOptions) true @@ -263,7 +263,7 @@ false 4091;28251;28252;28253;%(DisableSpecificWarnings) NDEBUG - /utf-8 %(AdditionalOptions) + /utf-8 $(ExternalCompilerOptions) %(AdditionalOptions) true @@ -292,7 +292,7 @@ false 4091;28251;28252;28253;%(DisableSpecificWarnings) NDEBUG - /utf-8 %(AdditionalOptions) + /utf-8 $(ExternalCompilerOptions) %(AdditionalOptions) true @@ -324,7 +324,7 @@ false 4091;28251;28252;28253;%(DisableSpecificWarnings) NDEBUG - /utf-8 %(AdditionalOptions) + /utf-8 $(ExternalCompilerOptions) %(AdditionalOptions) true diff --git a/res/appstore/Package.appxmanifest b/res/appstore/Package.appxmanifest index bacfdadc..a0938244 100644 --- a/res/appstore/Package.appxmanifest +++ b/res/appstore/Package.appxmanifest @@ -11,7 +11,7 @@ + Version="3.16.1827.0" /> Rufus diff --git a/src/rufus.rc b/src/rufus.rc index 39d43d8a..6472f173 100644 --- a/src/rufus.rc +++ b/src/rufus.rc @@ -33,7 +33,7 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL IDD_DIALOG DIALOGEX 12, 12, 232, 326 STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU EXSTYLE WS_EX_ACCEPTFILES -CAPTION "Rufus 3.16.1826" +CAPTION "Rufus 3.16.1827" FONT 9, "Segoe UI Symbol", 400, 0, 0x0 BEGIN LTEXT "Drive Properties",IDS_DRIVE_PROPERTIES_TXT,8,6,53,12,NOT WS_GROUP @@ -395,8 +395,8 @@ END // VS_VERSION_INFO VERSIONINFO - FILEVERSION 3,16,1826,0 - PRODUCTVERSION 3,16,1826,0 + FILEVERSION 3,16,1827,0 + PRODUCTVERSION 3,16,1827,0 FILEFLAGSMASK 0x3fL #ifdef _DEBUG FILEFLAGS 0x1L @@ -414,13 +414,13 @@ BEGIN VALUE "Comments", "https://rufus.ie" VALUE "CompanyName", "Akeo Consulting" VALUE "FileDescription", "Rufus" - VALUE "FileVersion", "3.16.1826" + VALUE "FileVersion", "3.16.1827" VALUE "InternalName", "Rufus" VALUE "LegalCopyright", "© 2011-2021 Pete Batard (GPL v3)" VALUE "LegalTrademarks", "https://www.gnu.org/licenses/gpl-3.0.html" VALUE "OriginalFilename", "rufus-3.16.exe" VALUE "ProductName", "Rufus" - VALUE "ProductVersion", "3.16.1826" + VALUE "ProductVersion", "3.16.1827" END END BLOCK "VarFileInfo"