diff --git a/.gitignore b/.gitignore index 22cd06e..ebdddc6 100644 --- a/.gitignore +++ b/.gitignore @@ -44,4 +44,5 @@ DerivedData # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control # Pods/ +Podfile.lock diff --git a/.travis.yml b/.travis.yml index 577f793..f48713e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,21 @@ language: objective-c - -before_install: - - gem install cocoapods -v '0.39.0' - +rvm: + - 2.2 xcode_workspace: Thor.xcworkspace xcode_scheme: Thor +before_install: +- gem install cocoapods -v '0.39.0' +script: +- ./build.sh +before_deploy: +- git fetch --tags +deploy: + provider: releases + api_key: + secure: MFSmLIndNlnimU6/KG8Q0JfFttFGi5MvJG6N6OXSeEEaGyA3BwrGuQVePXrX6wyA8um2v1c9SuOkXn0rvTAyo6+0oRxDZt1ybvMDxQLIB6crydjwfaaJYi7JgNUFU/9Uyoj4gQ8AELt8UAQUN8n/cAeDqTY87cb7nzF6+XO2p0LfOzWpR1XFZjEaJQql7Mi92OBUl5iaoGOaHa1hN64/+xnk9APxv6BqXoXoseLGN8H9pAG0sxI720eao0NsSVMg8DB4NcGnyjYUDk/aGeNfipQr7XvaXw7lc4O3i91dTX4Z620NGwjP66JgF60xS8CHR2zSVg4fbg5fPwcHigSwSIS6GKTC9sC7TtNUM65QWH4Nfh/t9YxaHmKdUZDRstWhe0jmea7oRKuMQlCgA7NxQETXEMYQzMXuF+a9eshYpOxsVpRA9WN3YG1uaRfZ5LWkEl+9OdMeD7Jn/djhU/5AZQE60A99fltIV7ktOP9IgTbY/nI+JYDFve9ijv94ypCzv1Ov2lK3eSUym+NROhHEbo53GITyeUpaJ5WccYuoDecxeJktRcOsk0B/5txOyLKVGMCYXXC/dTv5HWtMDEru+hyIuAqH+t4kOuVTE0aLotcNN2Hli0xPlv6pQaL7EERRfMy4XN3SZoMR9SbZyNh0Ds9awe9OKpw6WbM0ruUwsQs= + file: Thor + clean_up: false + skip_cleanup: true + on: + repo: gbammc/Thor + tags: true diff --git a/Podfile.lock b/Podfile.lock deleted file mode 100644 index 56590b5..0000000 --- a/Podfile.lock +++ /dev/null @@ -1,16 +0,0 @@ -PODS: - - MASShortcut (2.3.3) - - Sparkle (1.14.0) - - SwiftyUserDefaults (2.1.3) - -DEPENDENCIES: - - MASShortcut - - Sparkle - - SwiftyUserDefaults - -SPEC CHECKSUMS: - MASShortcut: 38a76c9ea927de770c0a97ae28b15d18d6268b24 - Sparkle: ccd95233b12a3e3d4eeb55ff01dd4c8bb8188b07 - SwiftyUserDefaults: bd394a09247e3f00e17e402aa535c047c5d12b07 - -COCOAPODS: 0.39.0 diff --git a/Releases/Thor_1.0.1.zip b/Releases/Thor_1.0.1.zip new file mode 100644 index 0000000..1571a27 Binary files /dev/null and b/Releases/Thor_1.0.1.zip differ diff --git a/Thor.zip b/Thor.zip new file mode 100644 index 0000000..1571a27 Binary files /dev/null and b/Thor.zip differ diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..257b4cf --- /dev/null +++ b/build.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +APP_NAME="Thor" + +xcodebuild -workspace "$APP_NAME.xcworkspace" -scheme "$APP_NAME" -archivePath "$APP_NAME" archive + +xcodebuild -exportArchive -exportFormat APP -archivePath "$APP_NAME".xcarchive -exportPath "$APP_NAME" + +VERSION=`mdls -name kMDItemVersion "$APP_NAME".app | grep -o '\d\.\d\.\d'` + +zip -r Releases/"$APP_NAME"_"$VERSION".zip "$APP_NAME".app + +cp -f Releases/"$APP_NAME"_"$VERSION".zip "$APP_NAME".zip + +rm -rf "$APP_NAME".app "$APP_NAME".xcarchive