feat(@desktop/windows): produce 7z archive when packaging

This commit is contained in:
Andrei Smirnov 2021-09-15 10:44:36 +03:00 committed by Iuri Matias
parent 5ce06a94cc
commit d4da9b75f0
2 changed files with 8 additions and 0 deletions

View File

@ -431,6 +431,9 @@ endif
ifdef WINDOWS_CODESIGN_PFX_PATH
scripts/sign-windows-bin.sh $(INSTALLER_OUTPUT)
endif
echo -e $(BUILD_MSG) "7z"
rm $(OUTPUT)/status.iss
7z a $(INSTALLER_OUTPUT)/Status.7z ./$(OUTPUT)
pkg: $(PKG_TARGET)

View File

@ -31,6 +31,8 @@ pipeline {
NIMFLAGS = '--colors:off'
/* Control output the filename */
STATUS_CLIENT_EXE = "pkg/${utils.pkgFilename('exe')}"
/* 7zip archive filename */
STATUS_CLIENT_7Z = "pkg/${utils.pkgFilename('7z')}"
/* RFC 3161 timestamping URL for DigiCert */
WINDOWS_CODESIGN_TIMESTAMP_URL = 'http://timestamp.digicert.com'
}
@ -65,6 +67,8 @@ pipeline {
parallel {
stage('Upload') {
steps { script {
zip_url = s3.uploadArtifact(env.STATUS_CLIENT_7Z)
jenkins.setBuildDesc(Zip: zip_url)
env.PKG_URL = s3.uploadArtifact(env.STATUS_CLIENT_EXE)
jenkins.setBuildDesc(Exe: env.PKG_URL)
} }
@ -72,6 +76,7 @@ pipeline {
stage('Archive') {
steps { script {
archiveArtifacts(env.STATUS_CLIENT_EXE)
archiveArtifacts(env.STATUS_CLIENT_7Z)
} }
}
}