From 954760857d7b96c81a1e2df3cf7d70d6b6db7d69 Mon Sep 17 00:00:00 2001 From: papeh Date: Mon, 12 Dec 2022 10:10:49 -0600 Subject: [PATCH] Build Chorus Hub Installer with GHA (#314) * Build Chorus Hub Installer with GitHub Actions * Update a deprecated WiX attribute * clean up (completes https://github.com/sillsdev/chorus/issues/299) * check out help in a clean location --- .github/workflows/dotnet.yml | 20 +++++- build/Chorus.proj | 96 ---------------------------- src/Installer/ChorusHub.wixproj | 46 +++++++------ src/Installer/ChorusHub.wxs | 11 ++-- src/Installer/ChorusMergeModule.wxs | 2 +- src/Installer/resources/License.rtf | Bin 1541 -> 1546 bytes 6 files changed, 48 insertions(+), 127 deletions(-) delete mode 100644 build/Chorus.proj diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 68ee9743b..2e2f02c55 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -69,8 +69,7 @@ jobs: uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 with: repository: sillsdev/chorushelp - path: lib - clean: false # don't delete other files from lib + path: DistFiles/Help if: matrix.os == 'windows-latest' - name: Add msbuild to PATH @@ -87,7 +86,7 @@ jobs: run: msbuild src/Installer/ChorusMergeModule.wixproj -t:pack if: matrix.os == 'windows-latest' - - name: Upload Merge Modules + - name: Upload Merge Module uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0 with: name: chorus-merge-module @@ -96,6 +95,21 @@ jobs: output/*.nupkg if: matrix.os == 'windows-latest' + - name: Build Chorus Hub Installer + run: | + msbuild src/Installer/ChorusHub.wixproj /t:Restore + msbuild src/Installer/ChorusHub.wixproj /t:StampLicenseYear + msbuild src/Installer/ChorusHub.wixproj /t:Build + if: matrix.os == 'windows-latest' + + - name: Upload Chorus Hub Installer + uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0 + with: + name: chorus-hub-installer + path: | + output/Release/*.msi + if: matrix.os == 'windows-latest' + - name: Pack run: dotnet pack --no-restore --no-build -c Release diff --git a/build/Chorus.proj b/build/Chorus.proj deleted file mode 100644 index 5e7cc9c26..000000000 --- a/build/Chorus.proj +++ /dev/null @@ -1,96 +0,0 @@ - - - $(MSBuildProjectDirectory)/.. - $(teamcity_build_checkoutDir) - Chorus.sln - $(RootDir)/$(Solution) - ChorusLibrary - Chorus - chorus - Release - KnownMonoIssue, - SkipOnTeamCity,SkipOnBuildServer,SkipOnTeamCityRandomTestFailure,$(ExtraExcludeCategories) - true - false - $(RootDir)/output/$(Configuration) - true - false - - true - false - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/Installer/ChorusHub.wixproj b/src/Installer/ChorusHub.wixproj index 27e92cb7c..64b4c63c0 100644 --- a/src/Installer/ChorusHub.wixproj +++ b/src/Installer/ChorusHub.wixproj @@ -1,26 +1,22 @@  + Release x86 - 3.5 + $(GitVersion_AssemblySemVer) c1ee5822-e382-11de-8a39-0800200c9a66 2.0 ChorusHubInstaller Package + ..\..\output\$(Configuration)\ $(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets $(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets ChorusHubInstaller - - - ..\..\output\Debug\ - obj\Debug\ - Debug - True - - - ..\..\output\Release\ - obj\Release\ + ProductVersion=$(ProductVersion) + Debug;$(DefineConstants) + false True @@ -47,12 +43,22 @@ - - \ No newline at end of file + + + + + 2.5.0 + $(NuGetToolsPath)/packages/SIL.BuildTasks.$(SilBuildTasksVersion)/tools/SIL.BuildTasks.dll + + + + + + + + + + + + diff --git a/src/Installer/ChorusHub.wxs b/src/Installer/ChorusHub.wxs index a740c45e6..b17d90665 100644 --- a/src/Installer/ChorusHub.wxs +++ b/src/Installer/ChorusHub.wxs @@ -1,7 +1,4 @@ - - - - + - + @@ -71,7 +68,7 @@ http://blogs.msdn.com/robmen/archive/2003/10/04/56479.aspx --> - + @@ -84,7 +81,7 @@ http://blogs.msdn.com/robmen/archive/2003/10/04/56479.aspx --> - + diff --git a/src/Installer/ChorusMergeModule.wxs b/src/Installer/ChorusMergeModule.wxs index 8cc262412..703c51970 100644 --- a/src/Installer/ChorusMergeModule.wxs +++ b/src/Installer/ChorusMergeModule.wxs @@ -54,7 +54,7 @@ http://blogs.msdn.com/robmen/archive/2003/10/04/56479.aspx --> - + diff --git a/src/Installer/resources/License.rtf b/src/Installer/resources/License.rtf index 0f721115c503771e5d80c0dff549abb459350568..b2b21c5c1701cdb5441ec4873fad882e1c4e38e9 100644 GIT binary patch delta 18 ZcmZqW>EhYY$H;1AU}&JbxsS1&1pqSJ1sMPU delta 12 TcmeC;Y313_$GCYiV>t@|9L@wO