diff --git a/.travis.yml b/.travis.yml index 85192a43..b6c71913 100644 --- a/.travis.yml +++ b/.travis.yml @@ -44,6 +44,9 @@ install: - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./scripts/build/linux.sh install x64; fi + - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then + brew install afsctool; + fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./scripts/build/darwin.sh install; fi diff --git a/docs/RUNNING-LOCALLY.md b/docs/RUNNING-LOCALLY.md index 4ecaf0f7..f330f1ca 100644 --- a/docs/RUNNING-LOCALLY.md +++ b/docs/RUNNING-LOCALLY.md @@ -25,6 +25,7 @@ Prerequisites ### OS X - [XCode](https://developer.apple.com/xcode/) +- [afsctool](https://brkirch.wordpress.com/afsctool/) Cloning the project ------------------- diff --git a/scripts/build/darwin.sh b/scripts/build/darwin.sh index a07a3767..4a9746a3 100755 --- a/scripts/build/darwin.sh +++ b/scripts/build/darwin.sh @@ -37,6 +37,11 @@ if ! command -v python 2>/dev/null; then exit 1 fi +if ! command -v afsctool 2>/dev/null; then + echo "Dependency missing: afsctool" 1>&2 + exit 1 +fi + if [ "$#" -ne 1 ]; then echo "Usage: $0 " 1>&2 exit 1 @@ -194,6 +199,9 @@ function installer_dmg { ' | osascript sync + # Apply HFS+ compression + afsctool -ci -9 $volume_app + sign $volume_app # Unmount temporal DMG image.