mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-03-26 10:04:32 +08:00
use current-branch in carthage build
This commit is contained in:
@@ -2,6 +2,6 @@
|
||||
<Workspace
|
||||
version = "1.0">
|
||||
<FileRef
|
||||
location = "self:AsyncDisplayKit.xcodeproj">
|
||||
location = "self:">
|
||||
</FileRef>
|
||||
</Workspace>
|
||||
|
||||
3
build.sh
3
build.sh
@@ -49,9 +49,10 @@ if [ "$MODE" = "examples" ]; then
|
||||
elif [ -f "${example}/Cartfile" ]; then
|
||||
echo "Using Carthage"
|
||||
local_repo=`pwd`
|
||||
current_branch=`git rev-parse --abbrev-ref HEAD`
|
||||
cd $example
|
||||
|
||||
echo "git \"file://${local_repo}\" \"master\"" > "Cartfile"
|
||||
echo "git \"file://${local_repo}\" \"${current_branch}\"" > "Cartfile"
|
||||
carthage update --platform iOS
|
||||
|
||||
xctool \
|
||||
|
||||
Reference in New Issue
Block a user