diff --git a/README.md b/README.md index 055cc4c..d52e982 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,31 @@ To install all pending updates run `mas upgrade`. ==> Downloading iFlicks ==> Installed iFlicks +## Build from source + +`mas` currently requires the [bundler](http://bundler.io/) RubyGem in order to +bootstrap and build the project. There are a number ways to install bundler but +if you have never used it before then installing it with `gem` should be enough. + +``` +$ gem install bundler +``` + +You can now bootstrap the project by executing the `bootstrap` script +from the mas sources script directory: + +``` +$ script/bootstrap +``` + +You can now build from Xcode by opening `mas-cli.xcodeproj`, or from the Terminal: + +``` +$ script/build +``` + +Build output can be found in the `build/` directory within the project. + ## License Code is under the MIT license. diff --git a/mas-cli.xcodeproj/project.pbxproj b/mas-cli.xcodeproj/project.pbxproj index 6b40171..20d9f17 100644 --- a/mas-cli.xcodeproj/project.pbxproj +++ b/mas-cli.xcodeproj/project.pbxproj @@ -426,6 +426,7 @@ ED031A811B5127C00097692E /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + CONFIGURATION_BUILD_DIR = "$(PROJECT_DIR)/build"; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks", diff --git a/script/build b/script/build index 24725d1..2e6cac9 100755 --- a/script/build +++ b/script/build @@ -4,14 +4,14 @@ main() { script/clean build - # If this is a tagged build we are going to relase + # If this is a tagged build we are going to release if [[ ! -z $TRAVIS_TAG ]]; then archive fi } build() { - xcodebuild -project "mas-cli.xcodeproj" -scheme mas-cli clean build | xcpretty -c + xcodebuild -project "mas-cli.xcodeproj" -scheme mas-cli -configuration Release clean build | xcpretty -c } archive() {