Commit 68761f0f authored by nanahira's avatar nanahira

more

parent 3661b9c0
...@@ -14,6 +14,12 @@ ...@@ -14,6 +14,12 @@
## 如何使用 ## 如何使用
### 查看包信息
```bash
./get-builds.sh <APP 名称>
```
### 打包 ### 打包
```bash ```bash
......
#!/bin/bash
# set -o errexit
source ./src/pack-utility.sh
getAppBuilds "$@"
apiRoot=https://api.moecube.com apiRoot=https://sapi.moecube.com:444
loginInfo=$(curl -sL -X POST $apiRoot/accounts/signin -d account=$username -d password=$password) loginInfo=$(curl -sL -X POST $apiRoot/accounts/signin -d account=$username -d password=$password)
token=$(echo $loginInfo | jq '.token' | sed 's/"//g') token=$(echo $loginInfo | jq '.token' | sed 's/"//g')
......
apiRoot=https://api.moecube.com apiRoot=https://sapi.moecube.com:444
source ./src/login.sh source ./src/login.sh
source ./src/prefix.sh source ./src/prefix.sh
...@@ -33,3 +33,8 @@ deleteBuild() { ...@@ -33,3 +33,8 @@ deleteBuild() {
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}"
} }
getAppBuilds() {
appName="$1"
curl -sL -H "$header" "$apiRoot/release/api/app?id=$appName" | jq ".data[0].depots"
}
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