Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
YGOPRO-520DIY
ygopro
Commits
b382b081
Commit
b382b081
authored
Aug 25, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update upload-packager.sh
parent
67f6ea7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
.ci/upload-packager.sh
.ci/upload-packager.sh
+15
-1
No files found.
.ci/upload-packager.sh
View file @
b382b081
...
...
@@ -12,13 +12,27 @@ echo "Login succeeded."
appName
=
"ygopro"
handleErrorMessage
()
{
rawJsonInput
=
"
$1
"
successInfo
=
$(
echo
"
$rawJsonInput
"
| jq
'.success'
)
statusCode
=
$(
echo
"
$rawJsonInput
"
| jq
'.statusCode'
)
if
[[
"
$successInfo
"
!=
"true"
]]
;
then
failMessage
=
$(
echo
"
$rawJsonInput
"
| jq
'.success'
)
echo
"
$rawJsonInput
"
exit
1
fi
}
runForDepot
()
{
platform
=
$1
locale
=
$2
archivePath
=
"./dist/ygopro-
$appVersion
-
$platform
-
$locale
.tar.zst"
suffix
=
"?platform=
$platform
&locale=
$locale
&arch=generic"
echo
"Uploading
$archivePath
"
curl
-H
"
$header
"
-X
POST
"
$apiRoot
/release/api/build/
$appName
/
${
appVersion
}${
suffix
}
"
-F
file
=
@
$archivePath
result
=
$(
curl
-H
"
$header
"
-X
POST
"
$apiRoot
/release/api/build/
$appName
/
${
appVersion
}${
suffix
}
"
-F
file
=
@
$archivePath
)
handleErrorMessage
"
$result
"
echo
"
$result
"
| jq
.
}
runForDepot win32 zh-CN
...
...
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