Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
mycard-package-script
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
mycard-package-script
Commits
68761f0f
Commit
68761f0f
authored
Aug 24, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more
parent
3661b9c0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
2 deletions
+18
-2
README.md
README.md
+6
-0
get-builds.sh
get-builds.sh
+5
-0
src/login.sh
src/login.sh
+1
-1
src/pack-utility.sh
src/pack-utility.sh
+6
-1
No files found.
README.md
View file @
68761f0f
...
@@ -14,6 +14,12 @@
...
@@ -14,6 +14,12 @@
## 如何使用
## 如何使用
### 查看包信息
```
bash
./get-builds.sh <APP 名称>
```
### 打包
### 打包
```
bash
```
bash
...
...
get-builds.sh
0 → 100755
View file @
68761f0f
#!/bin/bash
# set -o errexit
source
./src/pack-utility.sh
getAppBuilds
"
$@
"
src/login.sh
View file @
68761f0f
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'
)
...
...
src/pack-utility.sh
View file @
68761f0f
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"
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment