Commit 81a4b8f4 authored by nanahira's avatar nanahira

ci

parent 64238568
Pipeline #38924 canceled with stages
in 88 minutes and 34 seconds
...@@ -4,6 +4,8 @@ variables: ...@@ -4,6 +4,8 @@ variables:
stages: stages:
- prepare - prepare
- build - build
- pack
- deploy
dll: dll:
stage: prepare stage: prepare
...@@ -11,9 +13,12 @@ dll: ...@@ -11,9 +13,12 @@ dll:
- linux - linux
dependencies: [] dependencies: []
script: | script: |
set -x
set -o errexit
download_thing() { download_thing() {
wget -O Assets/Plugins/$3/$2 https://cdn02.moecube.com:444/$1/$2 wget -O Assets/Plugins/$3/$2 https://cdn02.moecube.com:444/$1/$2
} }
download_thing libocgcore-koishi/x64 ocgcore.dll Windows download_thing libocgcore-koishi/x64 ocgcore.dll Windows
download_thing libocgcore-koishi/x64 sqlite3.dll Windows download_thing libocgcore-koishi/x64 sqlite3.dll Windows
download_thing koishipro/server/windows ygoserver.dll Windows download_thing koishipro/server/windows ygoserver.dll Windows
...@@ -71,3 +76,89 @@ StandaloneOSX: ...@@ -71,3 +76,89 @@ StandaloneOSX:
variables: variables:
BUILD_TARGET: StandaloneOSX BUILD_TARGET: StandaloneOSX
EXEC_NAME: MDPro3.app EXEC_NAME: MDPro3.app
resources:
stage: build
tags:
- linux
dependencies: []
script:
# Picture
- mkdir -p release/Picture
- git clone --depth 1 https://code.moenext.com/mycard/hd-arts
- mv hd-arts/arts release/Picture/Art
- git clone --depth 1 https://code.moenext.com/mycard/ygopro2-closeup
- mv ygopro2-closeup/closeup release/Picture/Closeup
# Ask sherry for Picture/DIY and Sound
- mkdir -p release/Picture/DIY release/Sound
# standalone
- mkdir -p release/Platforms
- git clone --depth 1 https://code.moenext.com/sherry_chaos/mdpro3-assetbundles
# Ask sherry for mdpro3-assetbundles path relationship
- mv mdpro3-assetbundles/StandaloneWindows64 release/Platforms/StandaloneWindows64
- mv mdpro3-assetbundles/StandaloneOSX release/Platforms/StandaloneOSX
- mv mdpro3-assetbundles/StandaloneLinux64 release/Platforms/StandaloneLinux64
- mv mdpro3-assetbundles/iOS release/Platforms/iOS
# Data
- git clone --depth 1 https://github.com/mycard/ygopro-scripts
- rm Data/script.zip
- cd ygopro-scripts
- 7z a -mx0 ../Data/script.zip *.lua
- cd ..
- wget -O Data/lflist.conf 'https://code.moenext.com/mycard/ygopro/-/raw/master/lflist.conf?inline=false'
- wget -O Data/pack/pack.db https://cdn02.moecube.com:444/ygopro-card-list/pack.db
- git clone --depth 1 https://code.moenext.com/mycard/ygopro-database
- cp -rf ygopro-database/locales/* Data/locales
- mv Data release/
artifacts:
paths:
- release
.pack:
stage: pack
tags:
- linux
script:
- mkdir -p dist
- cd Builds/$BUILD_TARGET
- mv ../../release/Picture .
- mv ../../release/Platforms .
- mv ../../release/Sound .
- rsync -a ../../release/Data/ ./Data
- tar --zstd -cf ../../dist/mdpro3-$CI_COMMIT_REF_NAME-$TARGET_PLATFORM.tar.zst .
- cd ../..
artifacts:
paths:
- dist
pack_windows:
extends: .pack
variables:
BUILD_TARGET: StandaloneWindows64
TARGET_PLATFORM: win32
dependencies:
- StandaloneWindows64
- resources
pack_linux:
extends: .pack
variables:
BUILD_TARGET: StandaloneLinux64
TARGET_PLATFORM: linux
dependencies:
- StandaloneLinux64
- resources
pack_macos:
extends: .pack
variables:
BUILD_TARGET: StandaloneOSX
TARGET_PLATFORM: darwin
dependencies:
- StandaloneOSX
- resources
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