Commit 3661b9c0 authored by nanahira's avatar nanahira

finish

parent 983c2d64
......@@ -14,8 +14,16 @@
## 如何使用
### 打包
```bash
./pack.sh <APP 名称> <APP 路径> <APP 版本号>
```
### 删除版本
```bash
./pack.sh <APP 名称> <APP 路径>
./delete-build.sh <APP 名称> <APP 版本号>
```
## 变量
......
......@@ -6,7 +6,10 @@ source ./src/prefix.sh
makeBuild() {
appName="$1"
appPath="$2"
echo "Packaging $appName"
echo "Packaging $appName from $appPath"
if [[ -z "$appVersion" ]]; then
appVersion="$3"
fi
if [[ -z "$appVersion" ]]; then
if [[ -z "$appVersionPlatform" ]]; then
appVersionPlatform=win32
......@@ -26,6 +29,7 @@ deleteBuild() {
if [[ -z "$appVersion" ]]; then
appVersion="$2"
fi
echo "Removing build $appName"
echo "Version: $appVersion"
curl -sL -H "$header" -X DELETE "$apiRoot/release/api/build/$appName/${appVersion}${suffix}"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment