From b0a514a427872e4b89c825e8060c2ae791e74590 Mon Sep 17 00:00:00 2001 From: gnl Date: Fri, 17 Aug 2018 11:46:44 +0300 Subject: [PATCH] [#5467] Make app searchable with Spotlight Download app skeleton from Status repo and add Info.plist overlay with required metata to enable correct Spotlight indexing. Signed-off-by: gnl --- ci/Jenkinsfile.desktopbuild | 5 +++-- ci/Jenkinsfile.nightly_desktop | 5 +++-- deployment/macos/Info.plist | 20 ++++++++++++++++++++ 3 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 deployment/macos/Info.plist diff --git a/ci/Jenkinsfile.desktopbuild b/ci/Jenkinsfile.desktopbuild index c0c7389e7a..f4714acae5 100644 --- a/ci/Jenkinsfile.desktopbuild +++ b/ci/Jenkinsfile.desktopbuild @@ -133,11 +133,12 @@ timeout(90) { stage('Create MacOS Bundle') { dir(packageFolder) { - sh 'git clone https://github.com/vkjr/StatusAppFiles.git' - sh 'unzip StatusAppFiles/StatusIm.app.zip' + sh 'curl -L -O "https://github.com/status-im/StatusAppFiles/raw/master/StatusIm.app.zip"' + sh 'unzip StatusIm.app.zip' sh 'cp -r assets/share/assets StatusIm.app/Contents/MacOs' sh 'chmod +x StatusIm.app/Contents/MacOs/ubuntu-server' sh 'cp ../desktop/bin/StatusIm StatusIm.app/Contents/MacOs' + sh 'cp -f ../deployment/macos/Info.plist StatusIm.app/Contents' sh """ macdeployqt StatusIm.app -verbose=1 -dmg \\ -qmldir='${workspace}/node_modules/react-native/ReactQt/runtime/src/qml/' diff --git a/ci/Jenkinsfile.nightly_desktop b/ci/Jenkinsfile.nightly_desktop index ea9df37e50..4732eba8b0 100644 --- a/ci/Jenkinsfile.nightly_desktop +++ b/ci/Jenkinsfile.nightly_desktop @@ -152,11 +152,12 @@ parallel( stage('Create MacOS Bundle') { dir(packageFolder) { - sh 'git clone https://github.com/vkjr/StatusAppFiles.git' - sh 'unzip StatusAppFiles/StatusIm.app.zip' + sh 'curl -L -O "https://github.com/status-im/StatusAppFiles/raw/master/StatusIm.app.zip"' + sh 'unzip StatusIm.app.zip' sh 'cp -r assets/share/assets StatusIm.app/Contents/MacOs' sh 'chmod +x StatusIm.app/Contents/MacOs/ubuntu-server' sh 'cp ../desktop/bin/StatusIm StatusIm.app/Contents/MacOs' + sh 'cp -f ../deployment/macos/Info.plist StatusIm.app/Contents' sh """ macdeployqt StatusIm.app -verbose=1 -dmg \\ -qmldir='${workspace}/node_modules/react-native/ReactQt/runtime/src/qml/' diff --git a/deployment/macos/Info.plist b/deployment/macos/Info.plist new file mode 100644 index 0000000000..7a10d3390b --- /dev/null +++ b/deployment/macos/Info.plist @@ -0,0 +1,20 @@ + + + + + CFBundleIconFile + status-icon + NSHighResolutionCapable + True + CFBundleIdentifier + im.status.statusim + CFBundleExecutable + StatusIm + CFBundlePackageType + APPL + NSPrincipalClass + NSApplication + CFBundleInfoDictionaryVersion + 6.0 + +