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
3661b9c0
Commit
3661b9c0
authored
Aug 24, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
finish
parent
983c2d64
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
README.md
README.md
+9
-1
src/pack-utility.sh
src/pack-utility.sh
+5
-1
No files found.
README.md
View file @
3661b9c0
...
...
@@ -14,8 +14,16 @@
## 如何使用
### 打包
```
bash
./pack.sh <APP 名称> <APP 路径> <APP 版本号>
```
### 删除版本
```
bash
./
pack.sh <APP 名称> <APP 路径
>
./
delete-build.sh <APP 名称> <APP 版本号
>
```
## 变量
...
...
src/pack-utility.sh
View file @
3661b9c0
...
...
@@ -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
}
"
}
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