Commit bbedc9a0 authored by nanahira's avatar nanahira

try for a full workaround

parent 39b4cce1
Pipeline #3569 failed
#!/bin/bash
set -x
set -o errexit
# ygopro-database
apt update && apt -y install wget git p7zip-fill
git clone --depth=1 https://code.mycard.moe/mycard/ygopro-database
cp -rf ./locales/$TARGET_LOCALE/* .
# ygopro-images
wget -O ygopro-images.zip https://cdn01.moecube.com/images/ygopro-images-${TARGET_LOCALE}.zip
7z x -y -opics ygopro-images.zip
#!/bin/bash
set -x
set -o errexit
# TARGET_LOCALE
apt update && apt -y install tar git
git submodule update --init
mkdir dist
tar -zcf dist/ygopro-$CI_COMMIT_REF_NAME-linux-$TARGET_LOCALE.tar.gz --exclude='.git*' ygopro LICENSE README.md libIrrKlang.so lflist.conf strings.conf system.conf cards.cdb script textures deck single pics replay sound windbot bot bot.conf
#!/bin/bash
set -x
set -o errexit
# TARGET_LOCALE
apt update && apt -y install tar git
git submodule update --init
mkdir dist
tar -zcf dist/ygopro-$CI_COMMIT_REF_NAME-linux-$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
#!/bin/bash
set -x
set -o errexit
# TARGET_LOCALE
apt update && apt -y install tar git
git submodule update --init
mkdir dist
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
stages: stages:
- prepare - prepare
- build - build
- pack
- deploy - deploy
variables: variables:
...@@ -98,7 +99,7 @@ mat_windows: ...@@ -98,7 +99,7 @@ mat_windows:
- sqlite3 - sqlite3
- irrlicht - irrlicht
windows_exec: exec_windows:
stage: build stage: build
tags: tags:
- vs - vs
...@@ -123,7 +124,7 @@ windows_exec: ...@@ -123,7 +124,7 @@ windows_exec:
paths: paths:
- ygopro.exe - ygopro.exe
linux_exec: exec_linux:
stage: build stage: build
tags: tags:
- linux - linux
...@@ -146,3 +147,190 @@ linux_exec: ...@@ -146,3 +147,190 @@ linux_exec:
artifacts: artifacts:
paths: paths:
- ygopro - ygopro
assets:
stage: prepare
tags:
- linux
script:
- apt update; apt -y install tar wget
# starter pack
- wget -O - https://code.mycard.moe/mycard/ygopro-starter-pack/-/archive/master/ygopro-starter-pack-master.tar.gz | tar zfx -
- mv ygopro-starter-pack-master/* .
# sound
- wget -O - https://code.mycard.moe/mycard/ygopro-sounds/-/archive/master/ygopro-sounds-master.tar.gz | tar zfx -
- mv ygopro-sounds-master/sound/* sound
# fonts
- mkdir fonts
- cd fonts
- wget -O - https://cdn01.moecube.com/ygopro-fonts.tar.gz | tar zfx -
- cd ..
artifacts:
paths:
- deck
- single
- sound
- fonts
only:
- tags
- gitlabci
assets_nonwindows:
stage: prepare
tags:
- linux
script:
- apt update; apt -y install tar wget
- wget -O - https://cdn01.moecube.com/windbot-mc/windbot.tar.gz | tar zfx -
artifacts:
paths:
- bot.conf
- windbot
- bot
only:
- tags
- gitlabci
assets_windows:
stage: prepare
tags:
- linux
script:
- apt update; apt -y install wget p7zip-full
- wget https://cdn01.moecube.com/windbot-mc/WindBot.7z
- 7z x -y WindBot.7z
artifacts:
paths:
- bot.conf
- WindBot
- Bot.exe
only:
- tags
- gitlabci
assets_zh-CN:
stage: prepare
tags:
- linux
script: ./ci/assets-locale.sh
variables:
TARGET_LOCALE: zh-CN
artifacts:
paths:
- pics
- cards.cdb
- strings.conf
only:
- tags
- gitlabci
assets_en-US:
stage: prepare
tags:
- linux
script: ./ci/assets-locale.sh
variables:
TARGET_LOCALE: en-US
artifacts:
paths:
- pics
- cards.cdb
- strings.conf
only:
- tags
- gitlabci
pack_windows_zh-CN:
stage: pack
tags:
- linux
dependencies:
- assets
- assets_windows
- exec_windows
- assets_zh-CN
script: ./ci/pack-windows.sh
variables:
TARGET_LOCALE: zh-CN
artifacts:
paths:
- dist
only:
- tags
- gitlabci
pack_windows_zh-CN:
stage: pack
tags:
- linux
dependencies:
- assets
- assets_windows
- exec_windows
- assets_zh-CN
script: ./ci/pack-windows.sh
variables:
TARGET_LOCALE: zh-CN
artifacts:
paths:
- dist
only:
- tags
- gitlabci
pack_windows_en-US:
stage: pack
tags:
- linux
dependencies:
- assets
- assets_windows
- exec_windows
- assets_en-US
script: ./ci/pack-windows.sh
variables:
TARGET_LOCALE: en-US
artifacts:
paths:
- dist
only:
- tags
- gitlabci
pack_linux_zh-CN:
stage: pack
tags:
- linux
dependencies:
- assets
- assets_linux
- exec_linux
- assets_zh-CN
script: ./ci/pack-linux.sh
variables:
TARGET_LOCALE: zh-CN
artifacts:
paths:
- dist
only:
- tags
- gitlabci
pack_linux_en-US:
stage: pack
tags:
- linux
dependencies:
- assets
- assets_linux
- exec_linux
- assets_en-US
script: ./ci/pack-linux.sh
variables:
TARGET_LOCALE: en-US
artifacts:
paths:
- dist
only:
- tags
- gitlabci
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