Skip to content
Permalink
Browse files

Bundle macOS app and upload via ci

  • Loading branch information...
DamirPorobic committed Mar 13, 2019
1 parent bfb6324 commit 16b69e17ce8f4a8fc30cdc5aa8ac05f1690bae4a
Showing with 12 additions and 2 deletions.
  1. +3 −0 .gitignore
  2. +7 −2 ci/scripts/build.sh
  3. +2 −0 ci/scripts/upload.sh
@@ -66,3 +66,6 @@ perf.data*

# clion
*.idea

# macos
.DS_Store
@@ -22,6 +22,11 @@ elif [[ "${BUILD_TYPE}" == "exe" ]]; then
elif [[ "${BUILD_TYPE}" == "app" ]]; then
mkdir build && cd build
cmake .. -DVERSION_SUFIX=$VERSION_SUFFIX -DBUILD_NUMBER=$BUILD_NUMBER -DCMAKE_BUILD_TYPE=Release
make
cd ../..
make && make install
cd ..

echo "--> Package MacOS"
mkdir packageDir
mv build/src/ksnip*.app packageDir/ksnip.app
hdiutil create -volname ksnip -srcfolder packageDir/ -ov format UDZO ksnip-$VERSION-x86_64.dmg
fi
@@ -11,4 +11,6 @@ elif [[ "${BUILD_TYPE}" == "rpm" ]]; then
bash upload.sh ksnip-*.rpm
elif [[ "${BUILD_TYPE}" == "exe" ]]; then
bash upload.sh ksnip-*.zip
elif [[ "${BUILD_TYPE}" == "app" ]]; then
bash upload.sh ksnip-*.dmg
fi

0 comments on commit 16b69e1

Please sign in to comment.
You can’t perform that action at this time.