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
aa3f111f
Commit
aa3f111f
authored
Aug 21, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci for new packager
parent
ef565cb6
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
41 additions
and
30 deletions
+41
-30
.ci/pack-linux.sh
.ci/pack-linux.sh
+2
-2
.ci/pack-macos.sh
.ci/pack-macos.sh
+2
-2
.ci/pack-windows.sh
.ci/pack-windows.sh
+2
-2
.ci/upload-packager.sh
.ci/upload-packager.sh
+29
-0
.gitlab-ci.yml
.gitlab-ci.yml
+4
-22
ocgcore
ocgcore
+1
-1
script
script
+1
-1
No files found.
.ci/pack-linux.sh
View file @
aa3f111f
...
...
@@ -3,7 +3,7 @@ set -x
set
-o
errexit
# TARGET_LOCALE
apt update
&&
apt
-y
install tar
git
apt update
&&
apt
-y
install tar
git
zstd
git submodule update
--init
mkdir
dist replay
tar
-
zcf
dist/ygopro-
$CI_COMMIT_REF_NAME
-linux-
$TARGET_LOCALE
.tar.gz
--exclude
=
'.git*'
ygopro LICENSE README.md lib lflist.conf strings.conf system.conf cards.cdb script textures deck single pics replay sound windbot bot bot.conf
tar
-
-zstd
-cf
dist/ygopro-
$CI_COMMIT_REF_NAME
-linux-
$TARGET_LOCALE
.tar.zst
--exclude
=
'.git*'
ygopro LICENSE README.md lib lflist.conf strings.conf system.conf cards.cdb script textures deck single pics replay sound windbot bot bot.conf
.ci/pack-macos.sh
View file @
aa3f111f
...
...
@@ -3,7 +3,7 @@ set -x
set
-o
errexit
# TARGET_LOCALE
apt update
&&
apt
-y
install tar
git
apt update
&&
apt
-y
install tar
git
zstd
git submodule update
--init
mkdir
dist replay
tar
-
zcf
dist/ygopro-
$CI_COMMIT_REF_NAME
-osx-
$TARGET_LOCALE
.tar.gz
--exclude
=
'.git*'
ygopro.app LICENSE README.md lflist.conf strings.conf system.conf cards.cdb script textures deck single pics replay sound windbot bot bot.conf
tar
-
-zstd
-cf
dist/ygopro-
$CI_COMMIT_REF_NAME
-darwin-
$TARGET_LOCALE
.tar.zst
--exclude
=
'.git*'
ygopro.app LICENSE README.md lflist.conf strings.conf system.conf cards.cdb script textures deck single pics replay sound windbot bot bot.conf
.ci/pack-windows.sh
View file @
aa3f111f
...
...
@@ -3,7 +3,7 @@ set -x
set
-o
errexit
# TARGET_LOCALE
apt update
&&
apt
-y
install tar
git
apt update
&&
apt
-y
install tar
git
zstd
git submodule update
--init
mkdir
dist replay
tar
-
zcf
dist/ygopro-
$CI_COMMIT_REF_NAME
-win32-
$TARGET_LOCALE
.tar.gz
--exclude
=
'.git*'
ygopro.exe LICENSE README.md lflist.conf strings.conf system.conf cards.cdb script textures deck single pics replay sound bot.conf Bot.exe WindBot
tar
-
-zstd
-cf
dist/ygopro-
$CI_COMMIT_REF_NAME
-win32-
$TARGET_LOCALE
.tar.zst
--exclude
=
'.git*'
ygopro.exe LICENSE README.md lflist.conf strings.conf system.conf cards.cdb script textures deck single pics replay sound bot.conf Bot.exe WindBot
.ci/upload-packager.sh
0 → 100755
View file @
aa3f111f
#!/bin/bash
set
-o
errexit
apt update
;
apt
-y
install
curl jq
apiRoot
=
https://api.moecube.com
loginInfo
=
$(
curl
-sL
-X
POST
$apiRoot
/accounts/signin
-d
account
=
$MYCARD_USERNAME
-d
password
=
$MYCARD_PASSWORD
)
token
=
$(
echo
$loginInfo
| jq
'.token'
|
sed
's/"//g'
)
header
=
"Authorization:
$token
"
echo
"Login succeeded."
appName
=
"ygopro"
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
}
runForDepot win32 zh-CN
runForDepot linux zh-CN
runForDepot darwin zh-CN
runForDepot win32 en-US
runForDepot linux en-US
runForDepot darwin en-US
.gitlab-ci.yml
View file @
aa3f111f
...
...
@@ -504,7 +504,7 @@ pack_macos_en-US:
-
tags
-
gitlabci
upload
_to_minio
:
upload
:
stage
:
deploy
dependencies
:
-
pack_windows_zh-CN
...
...
@@ -515,26 +515,8 @@ upload_to_minio:
-
pack_macos_en-US
tags
:
-
linux
script
:
-
aws s3 --endpoint=https://minio.mycard.moe:9000 sync dist/ s3://mycard/mcpro
-
cd dist
-
ls -1 > ../dist-files.txt
-
cd ..
artifacts
:
paths
:
-
dist-files.txt
only
:
-
tags
-
gitlabci
trigger
:
stage
:
notify
dependencies
:
-
upload_to_minio
tags
:
-
linux
script
:
-
apt update; apt -y install curl
-
'
curl
-X
POST
https://api.mycard.moe/ygopro/release-helper/release
-H
"Authorization:
$RELEASE_HELPER_TOKEN"
-F
"name=$CI_COMMIT_TAG"
-F
"file=@./dist-files.txt"'
variables
:
appVersion
:
$CI_COMMIT_TAG
script
:
./.ci/update-packager.sh
only
:
-
tags
ocgcore
@
735ec9cc
Subproject commit
8b5b9b7793dfd8ad77c75fe4a27477ca2b4e6c96
Subproject commit
735ec9cc8191a9a5bb0670d9ada8653a2dfac05f
script
@
8b82a865
Subproject commit
c8919a9349d0de9fa177af2c352ee3c753f57c02
Subproject commit
8b82a865db02c71e7910555cfd06eb388a6fc387
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