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
nanahira
ygopro
Commits
8f5012e1
Commit
8f5012e1
authored
Aug 26, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
koishipro as dlc for mycard
parent
5b49cd93
Pipeline
#5023
failed
Changes
5
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
199 additions
and
79 deletions
+199
-79
.ci/pack-linux-dlc.sh
.ci/pack-linux-dlc.sh
+14
-0
.ci/pack-macos-dlc.sh
.ci/pack-macos-dlc.sh
+14
-0
.ci/pack-windows-dlc.sh
.ci/pack-windows-dlc.sh
+14
-0
.ci/upload-packager.sh
.ci/upload-packager.sh
+1
-1
.gitlab-ci.yml
.gitlab-ci.yml
+156
-78
No files found.
.ci/pack-linux-dlc.sh
0 → 100755
View file @
8f5012e1
#!/bin/bash
set
-x
set
-o
errexit
ARCHIVE_FILES
=(
ygopro lib cards.cdb locales fonts strings.conf system.conf
)
TARGET_PLATFORM
=
linux
apt update
&&
apt
-y
install tar
zstd
mkdir
dist replay
cp
-rf
locales/
$TARGET_LOCALE
/
*
.
tar
-acf
"dist/KoishiPro-dlc-
$CI_COMMIT_REF_NAME
-
$TARGET_PLATFORM
-
$TARGET_LOCALE
.tar.
$ARCHIVE_SUFFIX
"
--exclude
=
'.git*'
"
${
ARCHIVE_FILES
[@]
}
"
.ci/pack-macos-dlc.sh
0 → 100755
View file @
8f5012e1
#!/bin/bash
set
-x
set
-o
errexit
ARCHIVE_FILES
=(
ygopro.app cards.cdb locales fonts strings.conf system.conf
)
TARGET_PLATFORM
=
darwin
apt update
&&
apt
-y
install tar
zstd
mkdir
dist replay
cp
-rf
locales/
$TARGET_LOCALE
/
*
.
tar
-acf
"dist/KoishiPro-dlc-
$CI_COMMIT_REF_NAME
-
$TARGET_PLATFORM
-
$TARGET_LOCALE
.tar.
$ARCHIVE_SUFFIX
"
--exclude
=
'.git*'
"
${
ARCHIVE_FILES
[@]
}
"
.ci/pack-windows-dlc.sh
0 → 100755
View file @
8f5012e1
#!/bin/bash
set
-x
set
-o
errexit
ARCHIVE_FILES
=(
ygopro.exe cards.cdb locales fonts strings.conf system.conf
)
TARGET_PLATFORM
=
win32
apt update
&&
apt
-y
install tar
zstd
mkdir
dist replay
cp
-rf
locales/
$TARGET_LOCALE
/
*
.
tar
-acf
"dist/KoishiPro-dlc-
$CI_COMMIT_REF_NAME
-
$TARGET_PLATFORM
-
$TARGET_LOCALE
.tar.
$ARCHIVE_SUFFIX
"
--exclude
=
'.git*'
"
${
ARCHIVE_FILES
[@]
}
"
.ci/upload-packager.sh
View file @
8f5012e1
...
@@ -25,7 +25,7 @@ handleErrorMessage() {
...
@@ -25,7 +25,7 @@ handleErrorMessage() {
runForDepot
()
{
runForDepot
()
{
platform
=
$1
platform
=
$1
locale
=
$2
locale
=
$2
archivePath
=
"./dist/KoishiPro-
$appVersion
-
$platform
-
$locale
.tar.zst"
archivePath
=
"./dist/KoishiPro-
dlc-
$appVersion
-
$platform
-
$locale
.tar.zst"
suffix
=
"?platform=
$platform
&locale=
$locale
&arch=generic"
suffix
=
"?platform=
$platform
&locale=
$locale
&arch=generic"
echo
"Uploading
$archivePath
"
echo
"Uploading
$archivePath
"
result
=
$(
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
)
...
...
.gitlab-ci.yml
View file @
8f5012e1
...
@@ -370,6 +370,22 @@ assets_en-US:
...
@@ -370,6 +370,22 @@ assets_en-US:
-
tags
-
tags
-
master
-
master
._pack_format_gz
:
extends
:
._pack
variables
:
ARCHIVE_SUFFIX
:
gz
._pack_format_zst
:
extends
:
._pack
variables
:
ARCHIVE_SUFFIX
:
zst
._pack_dlc
:
extends
:
._pack_format_zst
only
:
-
tags
._pack_script_windows_non7z
:
._pack_script_windows_non7z
:
extends
:
._pack
extends
:
._pack
script
:
./.ci/pack-windows.sh
script
:
./.ci/pack-windows.sh
...
@@ -386,6 +402,18 @@ assets_en-US:
...
@@ -386,6 +402,18 @@ assets_en-US:
extends
:
._pack
extends
:
._pack
script
:
./.ci/pack-macos.sh
script
:
./.ci/pack-macos.sh
._pack_script_windows_dlc
:
extends
:
._pack_dlc
script
:
./.ci/pack-windows-dlc.sh
._pack_script_linux_dlc
:
extends
:
._pack_dlc
script
:
./.ci/pack-linux-dlc.sh
._pack_script_macos_dlc
:
extends
:
._pack_dlc
script
:
./.ci/pack-macos-dlc.sh
._pack_assets_windows_zh-CN
:
._pack_assets_windows_zh-CN
:
extends
:
._pack
extends
:
._pack
dependencies
:
dependencies
:
...
@@ -394,37 +422,37 @@ assets_en-US:
...
@@ -394,37 +422,37 @@ assets_en-US:
-
exec_windows
-
exec_windows
-
assets_zh-CN
-
assets_zh-CN
._pack_assets_
windows_en-US
:
._pack_assets_
linux_zh-CN
:
extends
:
._pack
extends
:
._pack
dependencies
:
dependencies
:
-
assets
-
assets
-
assets_windows
-
assets_
non
windows
-
exec_
windows
-
exec_
linux
-
assets_
en-US
-
assets_
zh-CN
._pack_assets_
linux
_zh-CN
:
._pack_assets_
macos
_zh-CN
:
extends
:
._pack
extends
:
._pack
dependencies
:
dependencies
:
-
assets
-
assets
-
assets_nonwindows
-
assets_nonwindows
-
exec_
linux
-
exec_
macos
-
assets_zh-CN
-
assets_zh-CN
._pack_assets_
linux
_en-US
:
._pack_assets_
windows
_en-US
:
extends
:
._pack
extends
:
._pack
dependencies
:
dependencies
:
-
assets
-
assets
-
assets_
non
windows
-
assets_windows
-
exec_
linux
-
exec_
windows
-
assets_en-US
-
assets_en-US
._pack_assets_
macos_zh-CN
:
._pack_assets_
linux_en-US
:
extends
:
._pack
extends
:
._pack
dependencies
:
dependencies
:
-
assets
-
assets
-
assets_nonwindows
-
assets_nonwindows
-
exec_
macos
-
exec_
linux
-
assets_
zh-CN
-
assets_
en-US
._pack_assets_macos_en-US
:
._pack_assets_macos_en-US
:
extends
:
._pack
extends
:
._pack
...
@@ -434,36 +462,80 @@ assets_en-US:
...
@@ -434,36 +462,80 @@ assets_en-US:
-
exec_macos
-
exec_macos
-
assets_en-US
-
assets_en-US
._pack_
format_gz
:
._pack_
assets_windows_dlc
:
extends
:
._pack
extends
:
._pack
variables
:
dependencies
:
ARCHIVE_SUFFIX
:
gz
-
assets
-
exec_windows
._pack_
format_zst
:
._pack_
assets_linux_dlc
:
extends
:
._pack
extends
:
._pack
variables
:
dependencies
:
ARCHIVE_SUFFIX
:
zst
-
assets
-
exec_linux
pack_windows_zh-CN_7z
:
._pack_assets_macos_dlc
:
extends
:
._pack
dependencies
:
-
assets
-
exec_macos
pack_windows_dlc_zh-CN
:
extends
:
extends
:
-
._pack_assets_windows_
zh-CN
-
._pack_assets_windows_
dlc
-
._pack_script_windows_
7z
-
._pack_script_windows_
dlc
-
._locale_zh-CN
-
._locale_zh-CN
pack_
windows_zh-CN_gz
:
pack_
linux_dlc_zh-CN
:
extends
:
extends
:
-
._pack_assets_windows_zh-CN
-
._pack_assets_linux_dlc
-
._pack_script_windows_non7z
-
._pack_script_linux_dlc
-
._pack_format_gz
-
._locale_zh-CN
pack_macos_dlc_zh-CN
:
extends
:
-
._pack_assets_macos_dlc
-
._pack_script_macos_dlc
-
._locale_zh-CN
-
._locale_zh-CN
pack_windows_zh-CN_zst
:
pack_windows_dlc_en-US
:
extends
:
-
._pack_assets_windows_dlc
-
._pack_script_windows_dlc
-
._locale_en-US
pack_linux_dlc_en-US
:
extends
:
-
._pack_assets_linux_dlc
-
._pack_script_linux_dlc
-
._locale_en-US
pack_macos_dlc_en-US
:
extends
:
-
._pack_assets_macos_dlc
-
._pack_script_macos_dlc
-
._locale_en-US
pack_windows_zh-CN_7z
:
extends
:
extends
:
-
._pack_assets_windows_zh-CN
-
._pack_assets_windows_zh-CN
-
._pack_script_windows_non7z
-
._pack_script_windows_7z
-
._pack_format_zst
-
._locale_zh-CN
-
._locale_zh-CN
#pack_windows_zh-CN_gz:
# extends:
# - ._pack_assets_windows_zh-CN
# - ._pack_script_windows_non7z
# - ._pack_format_gz
# - ._locale_zh-CN
#pack_windows_zh-CN_zst:
# extends:
# - ._pack_assets_windows_zh-CN
# - ._pack_script_windows_non7z
# - ._pack_format_zst
# - ._locale_zh-CN
pack_linux_zh-CN_gz
:
pack_linux_zh-CN_gz
:
extends
:
extends
:
-
._pack_assets_linux_zh-CN
-
._pack_assets_linux_zh-CN
...
@@ -471,12 +543,12 @@ pack_linux_zh-CN_gz:
...
@@ -471,12 +543,12 @@ pack_linux_zh-CN_gz:
-
._pack_format_gz
-
._pack_format_gz
-
._locale_zh-CN
-
._locale_zh-CN
pack_linux_zh-CN_zst
:
#
pack_linux_zh-CN_zst:
extends
:
#
extends:
-
._pack_assets_linux_zh-CN
#
- ._pack_assets_linux_zh-CN
-
._pack_script_linux
#
- ._pack_script_linux
-
._pack_format_zst
#
- ._pack_format_zst
-
._locale_zh-CN
#
- ._locale_zh-CN
pack_macos_zh-CN_gz
:
pack_macos_zh-CN_gz
:
...
@@ -486,12 +558,12 @@ pack_macos_zh-CN_gz:
...
@@ -486,12 +558,12 @@ pack_macos_zh-CN_gz:
-
._pack_format_gz
-
._pack_format_gz
-
._locale_zh-CN
-
._locale_zh-CN
pack_macos_zh-CN_zst
:
#
pack_macos_zh-CN_zst:
extends
:
#
extends:
-
._pack_assets_macos_zh-CN
#
- ._pack_assets_macos_zh-CN
-
._pack_script_macos
#
- ._pack_script_macos
-
._pack_format_zst
#
- ._pack_format_zst
-
._locale_zh-CN
#
- ._locale_zh-CN
pack_windows_en-US_7z
:
pack_windows_en-US_7z
:
extends
:
extends
:
...
@@ -499,19 +571,19 @@ pack_windows_en-US_7z:
...
@@ -499,19 +571,19 @@ pack_windows_en-US_7z:
-
._pack_script_windows_7z
-
._pack_script_windows_7z
-
._locale_en-US
-
._locale_en-US
pack_windows_en-US_gz
:
#
pack_windows_en-US_gz:
extends
:
#
extends:
-
._pack_assets_windows_en-US
#
- ._pack_assets_windows_en-US
-
._pack_script_windows_non7z
#
- ._pack_script_windows_non7z
-
._pack_format_gz
#
- ._pack_format_gz
-
._locale_en-US
#
- ._locale_en-US
pack_windows_en-US_zst
:
#
pack_windows_en-US_zst:
extends
:
#
extends:
-
._pack_assets_windows_en-US
#
- ._pack_assets_windows_en-US
-
._pack_script_windows_non7z
#
- ._pack_script_windows_non7z
-
._pack_format_zst
#
- ._pack_format_zst
-
._locale_en-US
#
- ._locale_en-US
pack_linux_en-US_gz
:
pack_linux_en-US_gz
:
extends
:
extends
:
...
@@ -520,12 +592,12 @@ pack_linux_en-US_gz:
...
@@ -520,12 +592,12 @@ pack_linux_en-US_gz:
-
._pack_format_gz
-
._pack_format_gz
-
._locale_en-US
-
._locale_en-US
pack_linux_en-US_zst
:
#
pack_linux_en-US_zst:
extends
:
#
extends:
-
._pack_assets_linux_en-US
#
- ._pack_assets_linux_en-US
-
._pack_script_linux
#
- ._pack_script_linux
-
._pack_format_zst
#
- ._pack_format_zst
-
._locale_en-US
#
- ._locale_en-US
pack_macos_en-US_gz
:
pack_macos_en-US_gz
:
extends
:
extends
:
...
@@ -534,12 +606,12 @@ pack_macos_en-US_gz:
...
@@ -534,12 +606,12 @@ pack_macos_en-US_gz:
-
._pack_format_gz
-
._pack_format_gz
-
._locale_en-US
-
._locale_en-US
pack_macos_en-US_zst
:
#
pack_macos_en-US_zst:
extends
:
#
extends:
-
._pack_assets_macos_en-US
#
- ._pack_assets_macos_en-US
-
._pack_script_macos
#
- ._pack_script_macos
-
._pack_format_zst
#
- ._pack_format_zst
-
._locale_en-US
#
- ._locale_en-US
upload_contents
:
upload_contents
:
stage
:
deploy
stage
:
deploy
...
@@ -562,19 +634,25 @@ upload_to_minio:
...
@@ -562,19 +634,25 @@ upload_to_minio:
stage
:
deploy
stage
:
deploy
dependencies
:
dependencies
:
-
pack_windows_zh-CN_7z
-
pack_windows_zh-CN_7z
-
pack_windows_zh-CN_gz
#
- pack_windows_zh-CN_gz
-
pack_windows_zh-CN_zst
#
- pack_windows_zh-CN_zst
-
pack_linux_zh-CN_gz
-
pack_linux_zh-CN_gz
-
pack_linux_zh-CN_zst
#
- pack_linux_zh-CN_zst
-
pack_macos_zh-CN_gz
-
pack_macos_zh-CN_gz
-
pack_macos_zh-CN_zst
#
- pack_macos_zh-CN_zst
-
pack_windows_en-US_7z
-
pack_windows_en-US_7z
-
pack_windows_en-US_gz
#
- pack_windows_en-US_gz
-
pack_windows_en-US_zst
#
- pack_windows_en-US_zst
-
pack_linux_en-US_gz
-
pack_linux_en-US_gz
-
pack_linux_en-US_zst
#
- pack_linux_en-US_zst
-
pack_macos_en-US_gz
-
pack_macos_en-US_gz
-
pack_macos_en-US_zst
#- pack_macos_en-US_zst
-
pack_windows_dlc_zh-CN
-
pack_linux_dlc_zh-CN
-
pack_macosx_dlc_zh-CN
-
pack_windows_dlc_en-US
-
pack_linux_dlc_en-US
-
pack_macosx_dlc_en-US
tags
:
tags
:
-
linux
-
linux
script
:
script
:
...
@@ -586,12 +664,12 @@ upload_to_minio:
...
@@ -586,12 +664,12 @@ upload_to_minio:
upload_mycard
:
upload_mycard
:
stage
:
deploy
stage
:
deploy
dependencies
:
dependencies
:
-
pack_windows_
zh-CN_zst
-
pack_windows_
dlc_zh-CN
-
pack_linux_
zh-CN_zst
-
pack_linux_
dlc_zh-CN
-
pack_macos
_zh-CN_zst
-
pack_macos
x_dlc_zh-CN
-
pack_windows_
en-US_zst
-
pack_windows_
dlc_en-US
-
pack_linux_
en-US_zst
-
pack_linux_
dlc_en-US
-
pack_macos
_en-US_zst
-
pack_macos
x_dlc_en-US
tags
:
tags
:
-
linux
-
linux
variables
:
variables
:
...
...
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