Skip to content

Commit

Permalink
Auto-Updater may fail for signed electron apps #116
Browse files Browse the repository at this point in the history
* Copy windows installer with version instead of soft linking
  • Loading branch information
jfaltermeier committed Sep 2, 2021
1 parent e0d9729 commit 522f69b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ spec:
container('jnlp') {
script {
uploadInstaller('windows')
linkInstaller('windows', 'TheiaBlueprint', 'exe')
copyInstaller('windows', 'TheiaBlueprint', 'exe')
}
}
}
Expand Down Expand Up @@ -316,12 +316,12 @@ def uploadInstaller(String platform) {
}
}

def linkInstaller(String platform, String installer, String extension) {
def copyInstaller(String platform, String installer, String extension) {
if (env.BRANCH_NAME == releaseBranch) {
def packageJSON = readJSON file: "package.json"
String version = "${packageJSON.version}"
sshagent(['projects-storage.eclipse.org-bot-ssh']) {
sh "ssh genie.theia@projects-storage.eclipse.org ln -s /home/data/httpd/download.eclipse.org/theia/latest/${platform}/${installer}.${extension} /home/data/httpd/download.eclipse.org/theia/latest/${platform}/${installer}-${version}.${extension}"
sh "ssh genie.theia@projects-storage.eclipse.org cp /home/data/httpd/download.eclipse.org/theia/latest/${platform}/${installer}.${extension} /home/data/httpd/download.eclipse.org/theia/latest/${platform}/${installer}-${version}.${extension}"
}
} else {
echo "Skipped copying installer for branch ${env.BRANCH_NAME}"
Expand Down

0 comments on commit 522f69b

Please sign in to comment.