Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #231 from griff/sign-applescript
Fix build on Catalina and Xcode 11
- Loading branch information
Showing
5 changed files
with
72 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
# sign_applescript.bash | ||
# MetaZ | ||
# | ||
# Created by Brian Olsen on 09/03/2020. | ||
# | ||
#set -o errexit | ||
# set -x | ||
|
||
if [ "$CODE_SIGNING_ALLOWED" == "YES" ]; then | ||
counter=0 | ||
while [ $counter -lt $SCRIPT_INPUT_FILE_COUNT ] | ||
do | ||
eval "export FILE=\$SCRIPT_INPUT_FILE_$counter" | ||
echo "Signing $FILE" | ||
xcrun codesign --force --sign - --preserve-metadata=identifier,entitlements "$FILE" | ||
((counter++)) | ||
done | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,30 @@ | ||
if [[ "$TRAVIS_BRANCH" != "$TRAVIS_TAG" ]]; then | ||
VERSION=$(/usr/libexec/PlistBuddy -c "print :CFBundleShortVersionString" "build/Release/MetaZ.app/Contents/Info.plist") | ||
if [[ "$TRAVIS_BRANCH" != "develop" ]]; then | ||
echo "Skipping tag for $TRAVIS_BRANCH branch." | ||
export SKIP=1 | ||
else | ||
VERSION=$(/usr/libexec/PlistBuddy -c "print :CFBundleShortVersionString" "build/Release/MetaZ.app/Contents/Info.plist") | ||
|
||
git config --global user.email "builds@travis-ci.com" | ||
git config --global user.name "Travis CI" | ||
export GIT_TAG=v${VERSION} | ||
echo git tag $GIT_TAG -a -m "Generated tag from TravisCI for build $TRAVIS_BUILD_NUMBER" | ||
git tag $GIT_TAG -a -m "Generated tag from TravisCI for build $TRAVIS_BUILD_NUMBER" | ||
git push -q https://$GITHUB_TOKEN@github.com/griff/metaz --tags | ||
export RELEASE_NAME="$(echo "$VERSION" | sed -e 's/.beta-/ Beta /')" | ||
git config --global user.email "builds@travis-ci.com" | ||
git config --global user.name "Travis CI" | ||
export GIT_TAG=v${VERSION} | ||
echo git tag $GIT_TAG -a -m "Generated tag from TravisCI for build $TRAVIS_BUILD_NUMBER" | ||
git tag $GIT_TAG -a -m "Generated tag from TravisCI for build $TRAVIS_BUILD_NUMBER" | ||
git push -q https://$GITHUB_TOKEN@github.com/griff/metaz --tags | ||
export RELEASE_NAME="$(echo "$VERSION" | sed -e 's/.beta-/ Beta /')" | ||
fi | ||
else | ||
echo "Build is a tag" | ||
export RELEASE_NAME=$(/usr/libexec/PlistBuddy -c "print :CFBundleShortVersionString" "build/Release/MetaZ.app/Contents/Info.plist") | ||
export GIT_TAG="$TRAVIS_TAG" | ||
git fetch --tags | ||
fi | ||
Scripts/release-notes.rb | ||
Scripts/release-notes.rb > build/Release/Release-notes.md | ||
bundle exec Scripts/github_release.rb \ | ||
--secret "$GITHUB_TOKEN" \ | ||
--repo-slug griff/metaz \ | ||
--changelog-file build/Release/Release-notes.md \ | ||
--tag $GIT_TAG | ||
if [ -z "$SKIP" ]; then | ||
Scripts/release-notes.rb | ||
Scripts/release-notes.rb > build/Release/Release-notes.md | ||
bundle exec Scripts/github_release.rb \ | ||
--secret "$GITHUB_TOKEN" \ | ||
--repo-slug griff/metaz \ | ||
--changelog-file build/Release/Release-notes.md \ | ||
--tag $GIT_TAG | ||
fi |