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
8b08cc47
Commit
8b08cc47
authored
Aug 25, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
300e9cb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/pack-utility.sh
src/pack-utility.sh
+3
-3
No files found.
src/pack-utility.sh
View file @
8b08cc47
...
@@ -38,7 +38,7 @@ makeBuild() {
...
@@ -38,7 +38,7 @@ makeBuild() {
cd
"
$appPath
"
cd
"
$appPath
"
result
=
$(
tar
--zstd
-cvf
-
*
| curl
-sL
-H
"
$header
"
-X
POST
"
$apiRoot
/release/api/build/
$appName
/
${
appVersion
}${
suffix
}
"
-F
file
=
@-
)
result
=
$(
tar
--zstd
-cvf
-
*
| curl
-sL
-H
"
$header
"
-X
POST
"
$apiRoot
/release/api/build/
$appName
/
${
appVersion
}${
suffix
}
"
-F
file
=
@-
)
handleErrorMessage
"
$result
"
handleErrorMessage
"
$result
"
echo
"
$result
"
| jq
echo
"
$result
"
| jq
.
}
}
deleteBuild
()
{
deleteBuild
()
{
...
@@ -50,7 +50,7 @@ deleteBuild() {
...
@@ -50,7 +50,7 @@ deleteBuild() {
echo
"Version:
$appVersion
"
echo
"Version:
$appVersion
"
result
=
$(
curl
-sL
-H
"
$header
"
-X
DELETE
"
$apiRoot
/release/api/build/
$appName
/
${
appVersion
}${
suffix
}
"
)
result
=
$(
curl
-sL
-H
"
$header
"
-X
DELETE
"
$apiRoot
/release/api/build/
$appName
/
${
appVersion
}${
suffix
}
"
)
handleErrorMessage
"
$result
"
handleErrorMessage
"
$result
"
echo
"
$result
"
| jq
echo
"
$result
"
| jq
.
}
}
getAppInfoRaw
()
{
getAppInfoRaw
()
{
...
@@ -78,7 +78,7 @@ uploadAppsJson() {
...
@@ -78,7 +78,7 @@ uploadAppsJson() {
echo
"Updating
$appName
with info from
$jsonPath
."
echo
"Updating
$appName
with info from
$jsonPath
."
result
=
$(
curl
-sL
-H
"
$header
"
-H
"Content-Type: application/json"
-d
"@
$jsonPath
"
-X
POST
"
$apiRoot
/release/api/app"
)
result
=
$(
curl
-sL
-H
"
$header
"
-H
"Content-Type: application/json"
-d
"@
$jsonPath
"
-X
POST
"
$apiRoot
/release/api/app"
)
handleErrorMessage
"
$result
"
handleErrorMessage
"
$result
"
echo
"
$result
"
| jq
echo
"
$result
"
| jq
.
}
}
help
()
{
help
()
{
...
...
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