Commit 8f5012e1 authored by nanahira's avatar nanahira

koishipro as dlc for mycard

parent 5b49cd93
Pipeline #5023 failed
#!/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[@]}"
#!/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[@]}"
#!/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[@]}"
......@@ -25,7 +25,7 @@ handleErrorMessage() {
runForDepot() {
platform=$1
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"
echo "Uploading $archivePath"
result=$(curl -H "$header" -X POST "$apiRoot/release/api/build/$appName/${appVersion}${suffix}" -F file=@$archivePath)
......
......@@ -370,6 +370,22 @@ assets_en-US:
- tags
- 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:
extends: ._pack
script: ./.ci/pack-windows.sh
......@@ -386,6 +402,18 @@ assets_en-US:
extends: ._pack
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:
extends: ._pack
dependencies:
......@@ -394,37 +422,37 @@ assets_en-US:
- exec_windows
- assets_zh-CN
._pack_assets_windows_en-US:
._pack_assets_linux_zh-CN:
extends: ._pack
dependencies:
- assets
- assets_windows
- exec_windows
- assets_en-US
- assets_nonwindows
- exec_linux
- assets_zh-CN
._pack_assets_linux_zh-CN:
._pack_assets_macos_zh-CN:
extends: ._pack
dependencies:
- assets
- assets_nonwindows
- exec_linux
- exec_macos
- assets_zh-CN
._pack_assets_linux_en-US:
._pack_assets_windows_en-US:
extends: ._pack
dependencies:
- assets
- assets_nonwindows
- exec_linux
- assets_windows
- exec_windows
- assets_en-US
._pack_assets_macos_zh-CN:
._pack_assets_linux_en-US:
extends: ._pack
dependencies:
- assets
- assets_nonwindows
- exec_macos
- assets_zh-CN
- exec_linux
- assets_en-US
._pack_assets_macos_en-US:
extends: ._pack
......@@ -434,36 +462,80 @@ assets_en-US:
- exec_macos
- assets_en-US
._pack_format_gz:
._pack_assets_windows_dlc:
extends: ._pack
variables:
ARCHIVE_SUFFIX: gz
dependencies:
- assets
- exec_windows
._pack_format_zst:
._pack_assets_linux_dlc:
extends: ._pack
variables:
ARCHIVE_SUFFIX: zst
dependencies:
- assets
- exec_linux
pack_windows_zh-CN_7z:
._pack_assets_macos_dlc:
extends: ._pack
dependencies:
- assets
- exec_macos
pack_windows_dlc_zh-CN:
extends:
- ._pack_assets_windows_zh-CN
- ._pack_script_windows_7z
- ._pack_assets_windows_dlc
- ._pack_script_windows_dlc
- ._locale_zh-CN
pack_windows_zh-CN_gz:
pack_linux_dlc_zh-CN:
extends:
- ._pack_assets_windows_zh-CN
- ._pack_script_windows_non7z
- ._pack_format_gz
- ._pack_assets_linux_dlc
- ._pack_script_linux_dlc
- ._locale_zh-CN
pack_macos_dlc_zh-CN:
extends:
- ._pack_assets_macos_dlc
- ._pack_script_macos_dlc
- ._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:
- ._pack_assets_windows_zh-CN
- ._pack_script_windows_non7z
- ._pack_format_zst
- ._pack_script_windows_7z
- ._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:
extends:
- ._pack_assets_linux_zh-CN
......@@ -471,12 +543,12 @@ pack_linux_zh-CN_gz:
- ._pack_format_gz
- ._locale_zh-CN
pack_linux_zh-CN_zst:
extends:
- ._pack_assets_linux_zh-CN
- ._pack_script_linux
- ._pack_format_zst
- ._locale_zh-CN
#pack_linux_zh-CN_zst:
# extends:
# - ._pack_assets_linux_zh-CN
# - ._pack_script_linux
# - ._pack_format_zst
# - ._locale_zh-CN
pack_macos_zh-CN_gz:
......@@ -486,12 +558,12 @@ pack_macos_zh-CN_gz:
- ._pack_format_gz
- ._locale_zh-CN
pack_macos_zh-CN_zst:
extends:
- ._pack_assets_macos_zh-CN
- ._pack_script_macos
- ._pack_format_zst
- ._locale_zh-CN
#pack_macos_zh-CN_zst:
# extends:
# - ._pack_assets_macos_zh-CN
# - ._pack_script_macos
# - ._pack_format_zst
# - ._locale_zh-CN
pack_windows_en-US_7z:
extends:
......@@ -499,19 +571,19 @@ pack_windows_en-US_7z:
- ._pack_script_windows_7z
- ._locale_en-US
pack_windows_en-US_gz:
extends:
- ._pack_assets_windows_en-US
- ._pack_script_windows_non7z
- ._pack_format_gz
- ._locale_en-US
#pack_windows_en-US_gz:
# extends:
# - ._pack_assets_windows_en-US
# - ._pack_script_windows_non7z
# - ._pack_format_gz
# - ._locale_en-US
pack_windows_en-US_zst:
extends:
- ._pack_assets_windows_en-US
- ._pack_script_windows_non7z
- ._pack_format_zst
- ._locale_en-US
#pack_windows_en-US_zst:
# extends:
# - ._pack_assets_windows_en-US
# - ._pack_script_windows_non7z
# - ._pack_format_zst
# - ._locale_en-US
pack_linux_en-US_gz:
extends:
......@@ -520,12 +592,12 @@ pack_linux_en-US_gz:
- ._pack_format_gz
- ._locale_en-US
pack_linux_en-US_zst:
extends:
- ._pack_assets_linux_en-US
- ._pack_script_linux
- ._pack_format_zst
- ._locale_en-US
#pack_linux_en-US_zst:
# extends:
# - ._pack_assets_linux_en-US
# - ._pack_script_linux
# - ._pack_format_zst
# - ._locale_en-US
pack_macos_en-US_gz:
extends:
......@@ -534,12 +606,12 @@ pack_macos_en-US_gz:
- ._pack_format_gz
- ._locale_en-US
pack_macos_en-US_zst:
extends:
- ._pack_assets_macos_en-US
- ._pack_script_macos
- ._pack_format_zst
- ._locale_en-US
#pack_macos_en-US_zst:
# extends:
# - ._pack_assets_macos_en-US
# - ._pack_script_macos
# - ._pack_format_zst
# - ._locale_en-US
upload_contents:
stage: deploy
......@@ -562,19 +634,25 @@ upload_to_minio:
stage: deploy
dependencies:
- pack_windows_zh-CN_7z
- pack_windows_zh-CN_gz
- pack_windows_zh-CN_zst
#- pack_windows_zh-CN_gz
#- pack_windows_zh-CN_zst
- pack_linux_zh-CN_gz
- pack_linux_zh-CN_zst
#- pack_linux_zh-CN_zst
- pack_macos_zh-CN_gz
- pack_macos_zh-CN_zst
#- pack_macos_zh-CN_zst
- pack_windows_en-US_7z
- pack_windows_en-US_gz
- pack_windows_en-US_zst
#- pack_windows_en-US_gz
#- pack_windows_en-US_zst
- pack_linux_en-US_gz
- pack_linux_en-US_zst
#- pack_linux_en-US_zst
- 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:
- linux
script:
......@@ -586,12 +664,12 @@ upload_to_minio:
upload_mycard:
stage: deploy
dependencies:
- pack_windows_zh-CN_zst
- pack_linux_zh-CN_zst
- pack_macos_zh-CN_zst
- pack_windows_en-US_zst
- pack_linux_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:
- linux
variables:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment