Fix msi (#1548)
* fix checking for a tag * fix ico path * no need to remove asar.unpack * fix copy from various sources to same dir
This commit is contained in:
@@ -287,14 +287,14 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: "Don't upload if it's not on a tag"
|
name: "Don't upload if it's not on a tag"
|
||||||
command: |
|
command: |
|
||||||
if [ -z `git tag -l --points-at master` ]; then
|
if [ -z `git name-rev --name-only --tags --no-undefined HEAD 2>/dev/null` ]; then
|
||||||
circleci-agent step halt
|
circleci-agent step halt
|
||||||
fi
|
fi
|
||||||
- run:
|
- run:
|
||||||
name: "Setup files for aws-s3"
|
name: "Setup files for aws-s3"
|
||||||
command: |
|
command: |
|
||||||
mkdir -p ./aws-s3-dist
|
mkdir -p ./aws-s3-dist
|
||||||
cp ./dist/{macos-release,win-release,linux}/* ./aws-s3-dist
|
cp --backup=numbered ./dist/{macos-release,win-release,linux}/* ./aws-s3-dist
|
||||||
- aws-s3/copy:
|
- aws-s3/copy:
|
||||||
from: ./aws-s3-dist/
|
from: ./aws-s3-dist/
|
||||||
to: s3://releases.mattermost.com/desktop/$(jq -r .version package.json)/
|
to: s3://releases.mattermost.com/desktop/$(jq -r .version package.json)/
|
||||||
@@ -324,14 +324,14 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: "Don't upload if it's not on a tag"
|
name: "Don't upload if it's not on a tag"
|
||||||
command: |
|
command: |
|
||||||
if [ -z `git tag -l --points-at master` ]; then
|
if [ -z `git name-rev --name-only --tags --no-undefined HEAD 2>/dev/null` ]; then
|
||||||
circleci-agent step halt
|
circleci-agent step halt
|
||||||
fi
|
fi
|
||||||
- run:
|
- run:
|
||||||
name: "Setup files for ghr"
|
name: "Setup files for ghr"
|
||||||
command: |
|
command: |
|
||||||
mkdir -p ./ghr-dist
|
mkdir -p ./ghr-dist
|
||||||
cp ./dist/{macos-release,win-release,linux}/* ./ghr-dist
|
cp --backup=numbered ./dist/{macos-release,win-release,linux}/* ./ghr-dist
|
||||||
- run:
|
- run:
|
||||||
name: "Publish Release on GitHub"
|
name: "Publish Release on GitHub"
|
||||||
command: |
|
command: |
|
||||||
|
@@ -533,10 +533,6 @@ function Run-BuildElectron {
|
|||||||
Print-Info "Packaging nodejs/electron for Windows (running npm run package:windows)..."
|
Print-Info "Packaging nodejs/electron for Windows (running npm run package:windows)..."
|
||||||
npm run package:windows
|
npm run package:windows
|
||||||
#npm run package:windows --prefix="$(Get-RootDir)" "$(Get-RootDir)"
|
#npm run package:windows --prefix="$(Get-RootDir)" "$(Get-RootDir)"
|
||||||
|
|
||||||
Print-Info "Cleaning build dir..."
|
|
||||||
Remove-Item "release\win-ia32-unpacked\resources\app.asar.unpacked\" -Force -Recurse
|
|
||||||
Remove-Item "release\win-unpacked\resources\app.asar.unpacked\" -Force -Recurse
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function Run-BuildForceSignature {
|
function Run-BuildForceSignature {
|
||||||
|
@@ -131,7 +131,7 @@
|
|||||||
</InstallExecuteSequence>
|
</InstallExecuteSequence>
|
||||||
<CustomAction Id="LaunchApp" FileKey="MattermostDesktopEXE" ExeCommand="" Return="asyncNoWait" />
|
<CustomAction Id="LaunchApp" FileKey="MattermostDesktopEXE" ExeCommand="" Return="asyncNoWait" />
|
||||||
<CustomAction Id="KillApp" Directory="INSTALLDIR" Return="ignore" ExeCommand=""[SystemFolder]taskkill.exe" /F /IM "Mattermost.exe"" />
|
<CustomAction Id="KillApp" Directory="INSTALLDIR" Return="ignore" ExeCommand=""[SystemFolder]taskkill.exe" /F /IM "Mattermost.exe"" />
|
||||||
<Icon Id="Mattermost.ico" SourceFile="../resources/icon.ico" />
|
<Icon Id="Mattermost.ico" SourceFile="../src/assets/icon.ico" />
|
||||||
<Property Id="ARPPRODUCTICON">Mattermost.ico</Property>
|
<Property Id="ARPPRODUCTICON">Mattermost.ico</Property>
|
||||||
<Property Id="ARPCONTACT">https://pre-release.mattermost.com</Property>
|
<Property Id="ARPCONTACT">https://pre-release.mattermost.com</Property>
|
||||||
<Property Id="ARPHELPLINK">https://docs.mattermost.com/</Property>
|
<Property Id="ARPHELPLINK">https://docs.mattermost.com/</Property>
|
||||||
|
Reference in New Issue
Block a user