Commit e97a7a0f authored by nanahira's avatar nanahira

ci

parent fe85057f
...@@ -7,6 +7,31 @@ stages: ...@@ -7,6 +7,31 @@ stages:
- pack - pack
- deploy - deploy
assetbundles:
stage: prepare
tags:
- linux
dependencies: []
script:
- mkdir Platforms
- wget -O - https://cdn02.moecube.com:444/mdpro3-assetbundles/$BUILD_TARGET.tar.zst | tar -I 'zstd -T0' -xf - -C Platforms
artifacts:
paths:
- Platforms
assetbundles_windows:
extends: .assetbundles
variables:
BUILD_TARGET: StandaloneWindows64
assetbundles_linux:
extends: .assetbundles
variables:
BUILD_TARGET: StandaloneLinux64
assetbundles_macos:
extends: .assetbundles
variables:
BUILD_TARGET: StandaloneOSX
dll: dll:
stage: prepare stage: prepare
tags: tags:
...@@ -61,6 +86,9 @@ dll: ...@@ -61,6 +86,9 @@ dll:
StandaloneLinux64: StandaloneLinux64:
extends: .unity extends: .unity
image: unityci/editor:6000.0.24f1-base-3 image: unityci/editor:6000.0.24f1-base-3
dependencies:
- dll
- assetbundles_linux
variables: variables:
BUILD_TARGET: StandaloneLinux64 BUILD_TARGET: StandaloneLinux64
EXEC_NAME: MDPro3 EXEC_NAME: MDPro3
...@@ -68,6 +96,9 @@ StandaloneLinux64: ...@@ -68,6 +96,9 @@ StandaloneLinux64:
StandaloneWindows64: StandaloneWindows64:
extends: .unity extends: .unity
image: unityci/editor:6000.0.24f1-windows-mono-3 image: unityci/editor:6000.0.24f1-windows-mono-3
dependencies:
- dll
- assetbundles_windows
variables: variables:
BUILD_TARGET: StandaloneWindows64 BUILD_TARGET: StandaloneWindows64
EXEC_NAME: MDPro3.exe EXEC_NAME: MDPro3.exe
...@@ -75,48 +106,14 @@ StandaloneWindows64: ...@@ -75,48 +106,14 @@ StandaloneWindows64:
StandaloneOSX: StandaloneOSX:
extends: .unity extends: .unity
image: unityci/editor:6000.0.24f1-mac-mono-3 image: unityci/editor:6000.0.24f1-mac-mono-3
dependencies:
- dll
- assetbundles_macos
variables: variables:
BUILD_TARGET: StandaloneOSX BUILD_TARGET: StandaloneOSX
EXEC_NAME: MDPro3.app EXEC_NAME: MDPro3.app
BUILD_CMD: OSXUniversalPlayer BUILD_CMD: OSXUniversalPlayer
.assetbundles:
stage: build
tags:
- linux
dependencies: []
script:
# standalone
- mkdir -p release/MDPro3_Data
- git clone --depth 1 https://code.moenext.com/sherry_chaos/mdpro3-assetbundles
# Ask sherry for mdpro3-assetbundles path relationship
#- mv mdpro3-assetbundles/StandaloneWindows64 release/MDPro3_Data/StandaloneWindows64
#- mv mdpro3-assetbundles/StandaloneOSX release/MDPro3_Data/StandaloneOSX
#- mv mdpro3-assetbundles/StandaloneLinux64 release/MDPro3_Data/StandaloneLinux64
#- mv mdpro3-assetbundles/iOS release/MDPro3_Data/iOS
- mv mdpro3-assetbundles/$FROM release/MDPro3_Data/$TO
artifacts:
paths:
- release
assetbundles_windows:
extends: .assetbundles
variables:
FROM: StandaloneWindows64
TO: StandaloneWindows64
assetbundles_linux:
extends: .assetbundles
variables:
FROM: StandaloneLinux64
TO: StandaloneLinux64
assetbundles_macos:
extends: .assetbundles
variables:
FROM: StandaloneOSX
TO: StandaloneOSX
resources: resources:
stage: build stage: build
tags: tags:
...@@ -124,16 +121,16 @@ resources: ...@@ -124,16 +121,16 @@ resources:
dependencies: [] dependencies: []
script: script:
# Picture # Picture
- mkdir -p release/Picture - mkdir -p resources/Picture
- git clone --depth 1 https://code.moenext.com/mycard/hd-arts - git clone --depth 1 https://code.moenext.com/mycard/hd-arts
- mv hd-arts/arts release/Picture/Art - mv hd-arts/arts resources/Picture/Art
- git clone --depth 1 https://code.moenext.com/mycard/ygopro2-closeup - git clone --depth 1 https://code.moenext.com/mycard/ygopro2-closeup
- mv ygopro2-closeup/closeup release/Picture/Closeup - mv ygopro2-closeup/closeup resources/Picture/Closeup
# Ask sherry for Picture/DIY and Sound # Ask sherry for Picture/DIY and Sound
# sound is too big, so we don't pack # sound is too big, so we don't pack
- git clone --depth 1 https://code.moenext.com/mycard/mdpro3-other - git clone --depth 1 https://code.moenext.com/mycard/mdpro3-other
- mv mdpro3-other/Picture/* release/Picture/ - mv mdpro3-other/Picture/* resources/Picture/
# - mv mdpro3-other/Sound release/ # - mv mdpro3-other/Sound resources/
# Data # Data
- git clone --depth 1 https://github.com/mycard/ygopro-scripts - git clone --depth 1 https://github.com/mycard/ygopro-scripts
...@@ -146,16 +143,16 @@ resources: ...@@ -146,16 +143,16 @@ resources:
- git clone --depth 1 https://code.moenext.com/mycard/ygopro-database - git clone --depth 1 https://code.moenext.com/mycard/ygopro-database
- cp -rf ygopro-database/locales/* Data/locales - cp -rf ygopro-database/locales/* Data/locales
- mv Data release/ - mv Data resources/
# starter pack # starter pack
- git clone --depth 1 https://code.moenext.com/mycard/ygopro-starter-pack - git clone --depth 1 https://code.moenext.com/mycard/ygopro-starter-pack
- mv ygopro-starter-pack/deck release/Deck - mv ygopro-starter-pack/deck resources/Deck
- mv ygopro-starter-pack/single release/Puzzle - mv ygopro-starter-pack/single resources/Puzzle
artifacts: artifacts:
paths: paths:
- release - resources
.pack: .pack:
stage: pack stage: pack
...@@ -164,13 +161,11 @@ resources: ...@@ -164,13 +161,11 @@ resources:
script: script:
- mkdir -p dist - mkdir -p dist
- cd Builds/$BUILD_TARGET - cd Builds/$BUILD_TARGET
- rm -rf MDPro3_Data/Standalone* - mv ../../resources/Picture .
- mv ../../release/MDPro3_Data/* MDPro3_Data/ - mv ../../resources/Deck .
- mv ../../release/Picture . - mv ../../resources/Puzzle .
- mv ../../release/Deck . # - mv ../../resources/Sound .
- mv ../../release/Puzzle . - rsync -a ../../resources/Data/ ./Data
# - mv ../../release/Sound .
- rsync -a ../../release/Data/ ./Data
- tar --zstd -cf ../../dist/mdpro3-$CI_COMMIT_REF_NAME-$TARGET_PLATFORM.tar.zst . - tar --zstd -cf ../../dist/mdpro3-$CI_COMMIT_REF_NAME-$TARGET_PLATFORM.tar.zst .
- cd ../.. - cd ../..
artifacts: artifacts:
...@@ -184,7 +179,6 @@ pack_windows: ...@@ -184,7 +179,6 @@ pack_windows:
TARGET_PLATFORM: win32 TARGET_PLATFORM: win32
dependencies: dependencies:
- StandaloneWindows64 - StandaloneWindows64
- assetbundles_windows
- resources - resources
pack_linux: pack_linux:
...@@ -194,7 +188,6 @@ pack_linux: ...@@ -194,7 +188,6 @@ pack_linux:
TARGET_PLATFORM: linux TARGET_PLATFORM: linux
dependencies: dependencies:
- StandaloneLinux64 - StandaloneLinux64
- assetbundles_linux
- resources - resources
pack_macos: pack_macos:
...@@ -204,5 +197,4 @@ pack_macos: ...@@ -204,5 +197,4 @@ pack_macos:
TARGET_PLATFORM: darwin TARGET_PLATFORM: darwin
dependencies: dependencies:
- StandaloneOSX - StandaloneOSX
- assetbundles_macos
- resources - resources
...@@ -56,7 +56,7 @@ MonoBehaviour: ...@@ -56,7 +56,7 @@ MonoBehaviour:
m_ContentStateBuildPathProfileVariableName: <default settings path> m_ContentStateBuildPathProfileVariableName: <default settings path>
m_CustomContentStateBuildPath: m_CustomContentStateBuildPath:
m_ContentStateBuildPath: m_ContentStateBuildPath:
m_BuildAddressablesWithPlayerBuild: 2 m_BuildAddressablesWithPlayerBuild: 1
m_overridePlayerVersion: '[UnityEditor.PlayerSettings.bundleVersion]' m_overridePlayerVersion: '[UnityEditor.PlayerSettings.bundleVersion]'
m_GroupAssets: m_GroupAssets:
- {fileID: 11400000, guid: 00d23bf82261d794b8ad80777f3da3ae, type: 2} - {fileID: 11400000, guid: 00d23bf82261d794b8ad80777f3da3ae, type: 2}
......
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