1 Star 0 Fork 0

OpenFDE/remote-desktop-clients

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
buildUpload.sh 1.25 KB
一键复制 编辑 原始数据 按行查看 历史
胡扬 提交于 2024-01-03 11:00 . Build: buildUpload.sh
#!/bin/bash
VERSION_NAME=""
while [[ "$#" -gt 0 ]]; do
case $1 in
-versionname) VERSION_NAME="$2"; shift ;;
*) echo "Unknown parameter passed: $1"; exit 1 ;;
esac
shift
done
if [ -z "$VERSION_NAME" ]; then
echo "Please provide a version name using like \"-versionname v6.0.1\""
exit 1
fi
echo "Starting Gradle build...........................$VERSION_NAME"
./gradlew :bVNC-app:clean
./gradlew :bVNC-app:assembleRelease -PVersionName="$VERSION_NAME"
if [ $? -eq 0 ]; then
echo "Gradle build completed successfully."
else
echo "Error: Gradle build failed."
exit 1
fi
COMMIT_HASH=$(git rev-parse HEAD)
UPLOAD_TIME=$(date +"%Y-%m-%d %T")
UPLOAD_URL="YOUR_UPLOAD_URL"
# upload
#curl -F "file=@$APK_FILE" -F "version=$VERSION_NAME" -F "commit=$COMMIT_HASH" -F "upload_time=$UPLOAD_TIME" $UPLOAD_URL
if [ $? -eq 0 ]; then
echo "APK upload completed successfully."
else
echo "Error: Failed to upload APK."
exit 1
fi
INFO_FILE="build_info.txt"
echo "Version: $VERSION_NAME" > $INFO_FILE
echo "Commit: $COMMIT_HASH" >> $INFO_FILE
echo "Upload Time: $UPLOAD_TIME" >> $INFO_FILE
echo "Version: $VERSION_NAME"
echo "Commit: $COMMIT_HASH"
echo "Upload Time: $UPLOAD_TIME"
echo "All tasks completed successfully."
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openfde/remote-desktop-clients.git
git@gitee.com:openfde/remote-desktop-clients.git
openfde
remote-desktop-clients
remote-desktop-clients
fde_w

搜索帮助