Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hex
ygopro2
Commits
17edb59b
Commit
17edb59b
authored
Jun 14, 2025
by
hex
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip gitlab-ci execution
parent
216a90d5
Pipeline
#37606
failed
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
138 additions
and
138 deletions
+138
-138
.gitlab-ci.bat
.gitlab-ci.bat
+8
-8
.gitlab-ci.yml
.gitlab-ci.yml
+130
-130
No files found.
.gitlab-ci.bat
View file @
17edb59b
@echo
off
@
REM @
echo
off
set
UNITY_PATH
=
"C:\Program Files\Unity\Editor\Unity.exe"
@REM
set
UNITY_PATH
=
"C:\Program Files\Unity\Editor\Unity.exe"
mkdir
output
@REM
mkdir
output
mkdir
dist
@REM
mkdir
dist
%UNITY_PATH%
-batchmode -nographics -silent-crashes -projectPath
%cd%
-logFile
dist
/build
.log
-executeMethod
BuildHelper
.Build
-quit
@REM
%UNITY_PATH%
-batchmode -nographics -silent-crashes -projectPath
%cd%
-logFile
dist
/build
.log
-executeMethod
BuildHelper
.Build
-quit
if
%errorlevel%
neq
0
exit
/b
%errorlevel%
@REM
if
%errorlevel%
neq
0
exit
/b
%errorlevel%
cat
dist
/build
.log
@REM
cat
dist
/build
.log
mv
output
dist
/src
@REM
mv
output
dist
/src
.gitlab-ci.yml
View file @
17edb59b
stages
:
#
stages:
-
prepare1
#
- prepare1
-
prepare2
#
- prepare2
-
build
#
- build
-
patch
#
- patch
-
pack
#
- pack
-
deploy
#
- deploy
variables
:
#
variables:
GIT_DEPTH
:
"
1"
#
GIT_DEPTH: "1"
cache
:
#
cache:
paths
:
#
paths:
-
Library/
#
- Library/
-
Temp/
#
- Temp/
get_data
:
#
get_data:
stage
:
prepare1
#
stage: prepare1
tags
:
#
tags:
-
linux
#
- linux
dependencies
:
[]
#
dependencies: []
artifacts
:
#
artifacts:
paths
:
#
paths:
-
ygopro2-data/cdb
#
- ygopro2-data/cdb
-
ygopro2-data/deck
#
- ygopro2-data/deck
-
ygopro2-data/pack
#
- ygopro2-data/pack
# - ygopro2-data/picture
#
# - ygopro2-data/picture
script
:
#
script:
-
mkdir -p ygopro2-data/cdb ygopro2-data/pack
# ygopro2-data/picture
#
- mkdir -p ygopro2-data/cdb ygopro2-data/pack # ygopro2-data/picture
-
wget -O ygopro2-data/cdb/cards.cdb https://cdn02.moecube.com:444/koishipro/ygopro-database/zh-CN/cards.cdb
#
- wget -O ygopro2-data/cdb/cards.cdb https://cdn02.moecube.com:444/koishipro/ygopro-database/zh-CN/cards.cdb
-
wget -O ygopro2-data/cdb/lflist.conf https://cdn02.moecube.com:444/koishipro/contents/lflist.conf
#
- wget -O ygopro2-data/cdb/lflist.conf https://cdn02.moecube.com:444/koishipro/contents/lflist.conf
-
wget -O ygopro2-data/cdb/strings.conf https://cdn02.moecube.com:444/koishipro/ygopro-database/zh-CN/strings.conf
#
- wget -O ygopro2-data/cdb/strings.conf https://cdn02.moecube.com:444/koishipro/ygopro-database/zh-CN/strings.conf
-
git clone --depth=1 https://code.mycard.moe/mycard/ygopro-starter-pack
#
- git clone --depth=1 https://code.mycard.moe/mycard/ygopro-starter-pack
-
mv ygopro-starter-pack/deck ygopro2-data/
#
- mv ygopro-starter-pack/deck ygopro2-data/
-
wget -O ygopro2-data/pack/pack.db https://cdn02.moecube.com:444/ygopro-card-list/pack.db
#
- wget -O ygopro2-data/pack/pack.db https://cdn02.moecube.com:444/ygopro-card-list/pack.db
#- wget -O images.zip https://cdn02.moecube.com:444/images/ygopro-images-zh-CN.zip
#
#- wget -O images.zip https://cdn02.moecube.com:444/images/ygopro-images-zh-CN.zip
# - 7z x -y -oygopro2-data/picture/card images.zip
#
# - 7z x -y -oygopro2-data/picture/card images.zip
make_data_archive
:
#
make_data_archive:
stage
:
prepare2
#
stage: prepare2
tags
:
#
tags:
-
macos
#
- macos
dependencies
:
#
dependencies:
-
get_data
#
- get_data
artifacts
:
#
artifacts:
paths
:
#
paths:
-
Assets/StreamingAssets/ygopro2-data.zip
#
- Assets/StreamingAssets/ygopro2-data.zip
script
:
#
script:
-
cd ygopro2-data
#
- cd ygopro2-data
-
mkdir replay
#
- mkdir replay
-
zip -r ../Assets/StreamingAssets/ygopro2-data.zip *
#
- zip -r ../Assets/StreamingAssets/ygopro2-data.zip *
-
cd ..
#
- cd ..
unity
:
#
unity:
stage
:
build
#
stage: build
script
:
cmd /C .gitlab-ci.bat
#
script: cmd /C .gitlab-ci.bat
dependencies
:
#
dependencies:
-
make_data_archive
#
- make_data_archive
artifacts
:
#
artifacts:
paths
:
#
paths:
-
dist/
#
- dist/
tags
:
#
tags:
-
unity
#
- unity
patch-header
:
#
patch-header:
stage
:
patch
#
stage: patch
dependencies
:
#
dependencies:
-
unity
#
- unity
script
:
#
script:
-
apt update; apt -y install tar patch
#
- apt update; apt -y install tar patch
-
mv dist/src ./unity-src
#
- mv dist/src ./unity-src
-
cd unity-src
#
- cd unity-src
-
chmod +x *.sh
#
- chmod +x *.sh
-
sed -i 's/ENABLE_BITCODE = YES;/ENABLE_BITCODE = NO;/g' Unity-iPhone.xcodeproj/project.pbxproj
#
- sed -i 's/ENABLE_BITCODE = YES;/ENABLE_BITCODE = NO;/g' Unity-iPhone.xcodeproj/project.pbxproj
-
sed -i -e '/>UIStatusBarStyle</i\ <key>UIFileSharingEnabled</key>\n <true />\n <key>LSSupportsOpeningDocumentsInPlace</key>\n <true />' -e '/>UIApplicationExitsOnSuspend</,+1d' ./Info.plist
#
- sed -i -e '/>UIStatusBarStyle</i\ <key>UIFileSharingEnabled</key>\n <true />\n <key>LSSupportsOpeningDocumentsInPlace</key>\n <true />' -e '/>UIApplicationExitsOnSuspend</,+1d' ./Info.plist
-
patch -p1 < ../misc/patches/iPhone_Sensors.mm.patch
#
- patch -p1 < ../misc/patches/iPhone_Sensors.mm.patch
-
echo '#define UNITY_USES_LOCATION 0' >> ./Classes/Preprocessor.h
#
- echo '#define UNITY_USES_LOCATION 0' >> ./Classes/Preprocessor.h
-
sed -i 's/^#define UNITY_USES_REMOTE_NOTIFICATIONS 1/#define UNITY_USES_REMOTE_NOTIFICATIONS 0/g' ./Classes/Preprocessor.h
#
- sed -i 's/^#define UNITY_USES_REMOTE_NOTIFICATIONS 1/#define UNITY_USES_REMOTE_NOTIFICATIONS 0/g' ./Classes/Preprocessor.h
-
rm -rf Libraries
#
- rm -rf Libraries
-
cd ..
#
- cd ..
artifacts
:
#
artifacts:
paths
:
#
paths:
-
unity-src/
#
- unity-src/
tags
:
#
tags:
-
linux
#
- linux
patch-lib
:
#
patch-lib:
stage
:
patch
#
stage: patch
dependencies
:
#
dependencies:
-
unity
#
- unity
script
:
#
script:
-
mkdir unity-src
#
- mkdir unity-src
-
cd unity-src
#
- cd unity-src
-
mv ../dist/src/Libraries .
#
- mv ../dist/src/Libraries .
-
env MISC_PATH="../misc" ../patches.sh
#
- env MISC_PATH="../misc" ../patches.sh
-
cd ..
#
- cd ..
artifacts
:
#
artifacts:
paths
:
#
paths:
-
unity-src/
#
- unity-src/
tags
:
#
tags:
-
macos
#
- macos
pack
:
#
pack:
stage
:
pack
#
stage: pack
dependencies
:
#
dependencies:
-
patch-header
#
- patch-header
-
patch-lib
#
- patch-lib
script
:
#
script:
-
mkdir dist
#
- mkdir dist
-
cd unity-src
#
- cd unity-src
-
tar zcvf ../dist/KoishiPro2-src.tar.gz *
#
- tar zcvf ../dist/KoishiPro2-src.tar.gz *
-
cd ..
#
- cd ..
artifacts
:
#
artifacts:
paths
:
#
paths:
-
dist/
#
- dist/
tags
:
#
tags:
-
linux
#
- linux
upload_to_minio_latest
:
#
upload_to_minio_latest:
stage
:
deploy
#
stage: deploy
dependencies
:
#
dependencies:
-
pack
#
- pack
tags
:
#
tags:
-
linux
#
- linux
script
:
#
script:
-
aws s3 --endpoint=https://minio.mycard.moe:9000 sync --delete dist/ s3://mycard/koishipro2/latest
#
- aws s3 --endpoint=https://minio.mycard.moe:9000 sync --delete dist/ s3://mycard/koishipro2/latest
only
:
#
only:
-
Android
#
- Android
#- tags
#
#- tags
upload_to_minio_tag
:
#
upload_to_minio_tag:
stage
:
deploy
#
stage: deploy
dependencies
:
#
dependencies:
-
pack
#
- pack
tags
:
#
tags:
-
linux
#
- linux
script
:
#
script:
-
aws s3 --endpoint=https://minio.mycard.moe:9000 sync --delete dist/ s3://mycard/koishipro2/$CI_COMMIT_TAG
#
- aws s3 --endpoint=https://minio.mycard.moe:9000 sync --delete dist/ s3://mycard/koishipro2/$CI_COMMIT_TAG
only
:
#
only:
-
tags
#
- tags
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment