3 Star 1 Fork 1

Gitee 极速下载/GitUp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/git-up/GitUp
克隆/下载
continuous-build.sh 1.29 KB
一键复制 编辑 原始数据 按行查看 历史
#!/bin/sh -ex
CHANNEL="continuous"
PRODUCT_NAME="GitUp"
APPCAST_NAME="appcast.xml"
MAX_VERSION=`git tag -l "b*" | sed 's/b//g' | sort -nr | head -n 1`
VERSION=$((MAX_VERSION + 1))
##### Archive and export app
rm -rf "build"
pushd "GitUp"
xcodebuild archive -scheme "Application" -archivePath "../build/$PRODUCT_NAME.xcarchive" "BUNDLE_VERSION=$VERSION"
xcodebuild -exportArchive -exportOptionsPlist "Export-Options.plist" -archivePath "../build/$PRODUCT_NAME.xcarchive" -exportPath "../build/$PRODUCT_NAME"
popd
FULL_PRODUCT_NAME="$PRODUCT_NAME.app"
PRODUCT_PATH="`pwd`/build/$PRODUCT_NAME/$FULL_PRODUCT_NAME" # Must be absolute path
ARCHIVE_NAME="$PRODUCT_NAME.zip"
ARCHIVE_PATH="build/$ARCHIVE_NAME"
##### Notarize zip file
ditto -c -k --keepParent "$PRODUCT_PATH" "$ARCHIVE_PATH"
# "PersonalNotary" is the profile name assigned from `notarytool store-credentials`
xcrun notarytool submit $ARCHIVE_PATH --keychain-profile "PersonalNotary" --wait
echo "Notarization has completed"
##### Staple app and regenerate zip
xcrun stapler staple "$PRODUCT_PATH"
ditto -c -k --keepParent "$PRODUCT_PATH" "$ARCHIVE_PATH"
##### Tag build
git tag -f "b$VERSION"
git push -f origin "b$VERSION"
osascript -e 'display notification "Successfully completed continuous build" with title "GitUp Script" sound name "Hero"'
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C/C++
1
https://gitee.com/mirrors/GitUp.git
git@gitee.com:mirrors/GitUp.git
mirrors
GitUp
GitUp
master

搜索帮助