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() { ...@@ -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)
......
...@@ -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_nonwindows
- 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_nonwindows - 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_macosx_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_macosx_dlc_en-US
tags: tags:
- linux - linux
variables: 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