Skip to content

Commit d3c2eaf

Browse files
committed
Add packaging and publishing for darwin-arm64 plaform for Mac M1
Fix #2737. Signed-off-by: Denis Golovin [email protected]
1 parent d377e19 commit d3c2eaf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Jenkinsfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ node('rhel8'){
5858
stage('Package darwin-x64') {
5959
sh "vsce package --target darwin-x64 -o openshift-toolkit-${packageJson.version}-${env.BUILD_NUMBER}-darwin-x64.vsix"
6060
sh "sha256sum *-darwin-x64.vsix > openshift-toolkit-${packageJson.version}-${env.BUILD_NUMBER}-darwin-x64.vsix.sha256"
61+
sh "vsce package --target darwin-arm64 -o openshift-toolkit-${packageJson.version}-${env.BUILD_NUMBER}-darwin-arm64.vsix"
62+
sh "sha256sum *-darwin-arm64.vsix > openshift-toolkit-${packageJson.version}-${env.BUILD_NUMBER}-darwin-arm64.vsix.sha256"
6163
}
6264
}
6365

@@ -88,6 +90,7 @@ node('rhel8'){
8890
stage("Publish to Marketplace") {
8991
withCredentials([[$class: 'StringBinding', credentialsId: 'vscode_java_marketplace', variable: 'TOKEN']]) {
9092
sh "vsce publish -p ${TOKEN} --packagePath openshift-toolkit-${packageJson.version}-${env.BUILD_NUMBER}-darwin-x64.vsix"
93+
sh "vsce publish -p ${TOKEN} --packagePath openshift-toolkit-${packageJson.version}-${env.BUILD_NUMBER}-darwin-arm64.vsix"
9194
sh "vsce publish -p ${TOKEN} --packagePath openshift-toolkit-${packageJson.version}-${env.BUILD_NUMBER}-linux-x64.vsix"
9295
sh "vsce publish -p ${TOKEN} --packagePath openshift-toolkit-${packageJson.version}-${env.BUILD_NUMBER}-win32-x64.vsix"
9396
}

0 commit comments

Comments
 (0)