Update CI bundle packaging to support code-signing
Signed-off-by: gnl <gnl@lipov.net>
This commit is contained in:
parent
6679374573
commit
80672a5c3e
|
@ -141,20 +141,25 @@ timeout(90) {
|
||||||
|
|
||||||
stage('Create MacOS Bundle') {
|
stage('Create MacOS Bundle') {
|
||||||
dir(packageFolder) {
|
dir(packageFolder) {
|
||||||
sh 'curl -L -O "https://github.com/status-im/StatusAppFiles/raw/master/StatusIm.app.zip"'
|
sh 'curl -L -O "https://github.com/gnl/StatusAppFiles/raw/master/StatusIm.app.zip"'
|
||||||
sh 'unzip StatusIm.app.zip'
|
sh 'unzip StatusIm.app.zip'
|
||||||
sh 'cp -r assets/share/assets StatusIm.app/Contents/MacOs'
|
sh 'cp -r assets/share/assets StatusIm.app/Contents/Resources'
|
||||||
sh 'chmod +x StatusIm.app/Contents/MacOs/ubuntu-server'
|
sh 'ln -sf ../Resources/assets ../Resources/ubuntu-server ../Resources/node_modules ' +
|
||||||
sh 'cp ../desktop/bin/StatusIm StatusIm.app/Contents/MacOs'
|
'StatusIm.app/Contents/MacOS'
|
||||||
sh 'cp ../desktop/reportApp/reportApp StatusIm.app/Contents/MacOs'
|
sh 'chmod +x StatusIm.app/Contents/Resources/ubuntu-server'
|
||||||
sh 'install_name_tool -add_rpath "@executable_path/../Frameworks" StatusIm.app/Contents/MacOs/reportApp'
|
sh 'cp ../desktop/bin/StatusIm StatusIm.app/Contents/MacOS'
|
||||||
|
sh 'cp ../desktop/reportApp/reportApp StatusIm.app/Contents/MacOS'
|
||||||
|
sh 'cp -f ../deployment/macos/qt-reportApp.conf StatusIm.app/Contents/Resources'
|
||||||
|
sh 'ln -sf ../Resources/qt-reportApp.conf StatusIm.app/Contents/MacOS/qt.conf'
|
||||||
|
sh 'install_name_tool -add_rpath "@executable_path/../Frameworks" ' +
|
||||||
|
'-delete_rpath "/Users/administrator/qt/5.9.1/clang_64/lib" ' +
|
||||||
|
'StatusIm.app/Contents/MacOS/reportApp'
|
||||||
sh 'cp -f ../deployment/macos/Info.plist StatusIm.app/Contents'
|
sh 'cp -f ../deployment/macos/Info.plist StatusIm.app/Contents'
|
||||||
sh 'cp -f ../deployment/macos/qt.conf StatusIm.app/Contents/MacOs'
|
|
||||||
sh """
|
sh """
|
||||||
macdeployqt StatusIm.app -verbose=1 -dmg \\
|
macdeployqt StatusIm.app -verbose=1 -dmg \\
|
||||||
-qmldir='${workspace}/node_modules/react-native/ReactQt/runtime/src/qml/'
|
-qmldir='${workspace}/node_modules/react-native/ReactQt/runtime/src/qml/'
|
||||||
"""
|
"""
|
||||||
sh 'rm -fr StatusAppFiles'
|
sh 'rm -f StatusIm.app.zip'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -152,17 +152,25 @@ parallel(
|
||||||
|
|
||||||
stage('Create MacOS Bundle') {
|
stage('Create MacOS Bundle') {
|
||||||
dir(packageFolder) {
|
dir(packageFolder) {
|
||||||
sh 'curl -L -O "https://github.com/status-im/StatusAppFiles/raw/master/StatusIm.app.zip"'
|
sh 'curl -L -O "https://github.com/gnl/StatusAppFiles/raw/master/StatusIm.app.zip"'
|
||||||
sh 'unzip StatusIm.app.zip'
|
sh 'unzip StatusIm.app.zip'
|
||||||
sh 'cp -r assets/share/assets StatusIm.app/Contents/MacOs'
|
sh 'cp -r assets/share/assets StatusIm.app/Contents/Resources'
|
||||||
sh 'chmod +x StatusIm.app/Contents/MacOs/ubuntu-server'
|
sh 'ln -sf ../Resources/assets ../Resources/ubuntu-server ../Resources/node_modules ' +
|
||||||
sh 'cp ../desktop/bin/StatusIm StatusIm.app/Contents/MacOs'
|
'StatusIm.app/Contents/MacOS'
|
||||||
|
sh 'chmod +x StatusIm.app/Contents/Resources/ubuntu-server'
|
||||||
|
sh 'cp ../desktop/bin/StatusIm StatusIm.app/Contents/MacOS'
|
||||||
|
sh 'cp ../desktop/reportApp/reportApp StatusIm.app/Contents/MacOS'
|
||||||
|
sh 'cp -f ../deployment/macos/qt-reportApp.conf StatusIm.app/Contents/Resources'
|
||||||
|
sh 'ln -sf ../Resources/qt-reportApp.conf StatusIm.app/Contents/MacOS/qt.conf'
|
||||||
|
sh 'install_name_tool -add_rpath "@executable_path/../Frameworks" ' +
|
||||||
|
'-delete_rpath "/Users/administrator/qt/5.9.1/clang_64/lib" ' +
|
||||||
|
'StatusIm.app/Contents/MacOS/reportApp'
|
||||||
sh 'cp -f ../deployment/macos/Info.plist StatusIm.app/Contents'
|
sh 'cp -f ../deployment/macos/Info.plist StatusIm.app/Contents'
|
||||||
sh """
|
sh """
|
||||||
macdeployqt StatusIm.app -verbose=1 -dmg \\
|
macdeployqt StatusIm.app -verbose=1 -dmg \\
|
||||||
-qmldir='${workspace}/node_modules/react-native/ReactQt/runtime/src/qml/'
|
-qmldir='${workspace}/node_modules/react-native/ReactQt/runtime/src/qml/'
|
||||||
"""
|
"""
|
||||||
sh 'rm -fr StatusAppFiles'
|
sh 'rm -f StatusIm.app.zip'
|
||||||
dmg_file = "StatusIm-${commit}.dmg"
|
dmg_file = "StatusIm-${commit}.dmg"
|
||||||
sh "mv StatusIm.dmg ${dmg_file}"
|
sh "mv StatusIm.dmg ${dmg_file}"
|
||||||
}
|
}
|
||||||
|
|
|
@ -179,20 +179,25 @@ def compileMacOS() {
|
||||||
def bundleMacOS(type = 'nightly') {
|
def bundleMacOS(type = 'nightly') {
|
||||||
def pkg = common.pkgFilename(type, 'dmg')
|
def pkg = common.pkgFilename(type, 'dmg')
|
||||||
dir(packageFolder) {
|
dir(packageFolder) {
|
||||||
sh 'git clone https://github.com/vkjr/StatusAppFiles.git'
|
sh 'curl -L -O "https://github.com/gnl/StatusAppFiles/raw/master/StatusIm.app.zip"'
|
||||||
sh 'unzip StatusAppFiles/StatusIm.app.zip'
|
sh 'unzip StatusIm.app.zip'
|
||||||
sh 'cp -r assets/share/assets StatusIm.app/Contents/MacOs'
|
sh 'cp -r assets/share/assets StatusIm.app/Contents/Resources'
|
||||||
sh 'chmod +x StatusIm.app/Contents/MacOs/ubuntu-server'
|
sh 'ln -sf ../Resources/assets ../Resources/ubuntu-server ../Resources/node_modules ' +
|
||||||
sh 'cp ../desktop/bin/StatusIm StatusIm.app/Contents/MacOs'
|
'StatusIm.app/Contents/MacOS'
|
||||||
sh 'cp ../desktop/reportApp/reportApp StatusIm.app/Contents/MacOs'
|
sh 'chmod +x StatusIm.app/Contents/Resources/ubuntu-server'
|
||||||
sh 'cp -f ../deployment/macos/qt.conf StatusIm.app/Contents/MacOs'
|
sh 'cp ../desktop/bin/StatusIm StatusIm.app/Contents/MacOS'
|
||||||
sh 'install_name_tool -add_rpath "@executable_path/../Frameworks" StatusIm.app/Contents/MacOs/reportApp'
|
sh 'cp ../desktop/reportApp/reportApp StatusIm.app/Contents/MacOS'
|
||||||
|
sh 'cp -f ../deployment/macos/qt-reportApp.conf StatusIm.app/Contents/Resources'
|
||||||
|
sh 'ln -sf ../Resources/qt-reportApp.conf StatusIm.app/Contents/MacOS/qt.conf'
|
||||||
|
sh 'install_name_tool -add_rpath "@executable_path/../Frameworks" ' +
|
||||||
|
'-delete_rpath "/Users/administrator/qt/5.9.1/clang_64/lib" ' +
|
||||||
|
'StatusIm.app/Contents/MacOS/reportApp'
|
||||||
sh 'cp -f ../deployment/macos/Info.plist StatusIm.app/Contents'
|
sh 'cp -f ../deployment/macos/Info.plist StatusIm.app/Contents'
|
||||||
sh """
|
sh """
|
||||||
macdeployqt StatusIm.app -verbose=1 -dmg \\
|
macdeployqt StatusIm.app -verbose=1 -dmg \\
|
||||||
-qmldir='${workspace}/node_modules/react-native/ReactQt/runtime/src/qml/'
|
-qmldir='${workspace}/node_modules/react-native/ReactQt/runtime/src/qml/'
|
||||||
"""
|
"""
|
||||||
sh 'rm -fr StatusAppFiles'
|
sh 'rm -f StatusIm.app.zip'
|
||||||
sh "mv StatusIm.dmg ${pkg}"
|
sh "mv StatusIm.dmg ${pkg}"
|
||||||
}
|
}
|
||||||
return "${packageFolder}/${pkg}".drop(2)
|
return "${packageFolder}/${pkg}".drop(2)
|
||||||
|
|
Loading…
Reference in New Issue