Commit 3661b9c0 authored by nanahira's avatar nanahira

finish

parent 983c2d64
...@@ -14,8 +14,16 @@ ...@@ -14,8 +14,16 @@
## 如何使用 ## 如何使用
### 打包
```bash
./pack.sh <APP 名称> <APP 路径> <APP 版本号>
```
### 删除版本
```bash ```bash
./pack.sh <APP 名称> <APP 路径> ./delete-build.sh <APP 名称> <APP 版本号>
``` ```
## 变量 ## 变量
......
...@@ -6,7 +6,10 @@ source ./src/prefix.sh ...@@ -6,7 +6,10 @@ source ./src/prefix.sh
makeBuild() { makeBuild() {
appName="$1" appName="$1"
appPath="$2" appPath="$2"
echo "Packaging $appName" echo "Packaging $appName from $appPath"
if [[ -z "$appVersion" ]]; then
appVersion="$3"
fi
if [[ -z "$appVersion" ]]; then if [[ -z "$appVersion" ]]; then
if [[ -z "$appVersionPlatform" ]]; then if [[ -z "$appVersionPlatform" ]]; then
appVersionPlatform=win32 appVersionPlatform=win32
...@@ -26,6 +29,7 @@ deleteBuild() { ...@@ -26,6 +29,7 @@ deleteBuild() {
if [[ -z "$appVersion" ]]; then if [[ -z "$appVersion" ]]; then
appVersion="$2" appVersion="$2"
fi fi
echo "Removing build $appName"
echo "Version: $appVersion" echo "Version: $appVersion"
curl -sL -H "$header" -X DELETE "$apiRoot/release/api/build/$appName/${appVersion}${suffix}" 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