Fix MSI build by removing changelog requirement (#2284) (#2285)

(cherry picked from commit 340ae815d9)

Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
This commit is contained in:
Mattermost Build 2022-10-13 17:11:17 +03:00 committed by GitHub
parent 7792e6906b
commit 825cae2647
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -511,18 +511,6 @@ function Run-BuildId {
Print-Info "Modified Wix XML"
}
function Run-BuildChangelog {
Print-Info "Getting list of commits for changelog..."
$previousTag = $(Invoke-Expression "git describe --abbrev=0 --tags $(git describe --abbrev=0)^")
$currentTag = [string]"HEAD"
$changelogRaw = "$(git log --oneline --since=""$(git log -1 ""$previousTag"" --pretty=%ad)"" --until=""$(git log -1 "$currentTag" --pretty=%ad)"")"
$changelog = "";
foreach ($i in $changelogRaw) {
$changelog += "* $i`n"
}
$env:COM_MATTERMOST_MAKEFILE_BUILD_CHANGELOG = $changelog
}
function Run-BuildElectron {
Print-Info "Installing nodejs/electron dependencies (running npm ci)..."
npm i -g node-gyp
@ -678,7 +666,6 @@ function Run-Build {
Prepare-Path
Get-Cert
Run-BuildId
Run-BuildChangelog
Run-BuildElectron
Run-BuildForceSignature
Run-BuildLicense