Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
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
YGOPRO-520DIY
ygopro
Commits
84294177
Commit
84294177
authored
Aug 25, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into server
parents
da8b0733
ff7c4784
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
100 additions
and
25 deletions
+100
-25
.ci/exec-macos-platform.sh
.ci/exec-macos-platform.sh
+1
-1
.ci/pack-linux.sh
.ci/pack-linux.sh
+8
-2
.ci/pack-macos.sh
.ci/pack-macos.sh
+8
-2
.ci/pack-windows-7z.sh
.ci/pack-windows-7z.sh
+18
-0
.ci/pack-windows.sh
.ci/pack-windows.sh
+10
-7
.ci/upload-packager.sh
.ci/upload-packager.sh
+43
-0
.gitlab-ci.yml
.gitlab-ci.yml
+12
-13
No files found.
.ci/exec-macos-platform.sh
View file @
84294177
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
set
-x
set
-x
set
-o
errexit
set
-o
errexit
TARGET_YGOPRO_BINARY_PATH
=
./ygopro-platforms/ygopro-platform-
$TARGET_
PATFORM
TARGET_YGOPRO_BINARY_PATH
=
./ygopro-platforms/ygopro-platform-
$TARGET_
ARCH
export
YGOPRO_LIBEVENT_STATIC_PATH
=
$PWD
/libevent-stable
export
YGOPRO_LIBEVENT_STATIC_PATH
=
$PWD
/libevent-stable
git submodule update
--init
git submodule update
--init
...
...
.ci/pack-linux.sh
View file @
84294177
#!/bin/bash
#!/bin/bash
set
-x
set
-x
set
-o
errexit
set
-o
errexit
ARCHIVE_FILES
=(
ygopro LICENSE README.md lib lflist.conf strings.conf system.conf cards.cdb script textures deck single pics replay sound windbot bot bot.conf locales fonts
)
# TARGET_LOCALE
# TARGET_LOCALE
# ARCHIVE_SUFFIX
TARGET_PLATFORM
=
linux
apt update
&&
apt
-y
install tar
git
apt update
&&
apt
-y
install tar
git
zstd
git submodule update
--init
git submodule update
--init
mkdir
dist replay
mkdir
dist replay
tar
-zcf
dist/KoishiPro-
$CI_COMMIT_REF_NAME
-linux-
$TARGET_LOCALE
.tar.gz
--exclude
=
'.git*'
ygopro LICENSE README.md lib lflist.conf strings.conf system.conf cards.cdb script textures deck single pics replay sound windbot bot bot.conf locales fonts
tar
-acf
"dist/KoishiPro-
$CI_COMMIT_REF_NAME
-
$TARGET_PLATFORM
-
$TARGET_LOCALE
.tar.
$ARCHIVE_SUFFIX
"
--exclude
=
'.git*'
"
${
ARCHIVE_FILES
[@]
}
"
.ci/pack-macos.sh
View file @
84294177
#!/bin/bash
#!/bin/bash
set
-x
set
-x
set
-o
errexit
set
-o
errexit
ARCHIVE_FILES
=(
ygopro.app LICENSE README.md lflist.conf strings.conf system.conf cards.cdb script textures deck single pics replay sound windbot bot bot.conf locales fonts
)
# TARGET_LOCALE
# TARGET_LOCALE
# ARCHIVE_SUFFIX
TARGET_PLATFORM
=
osx
apt update
&&
apt
-y
install tar
git
apt update
&&
apt
-y
install tar
git
zstd
git submodule update
--init
git submodule update
--init
mkdir
dist replay
mkdir
dist replay
tar
-zcf
dist/KoishiPro-
$CI_COMMIT_REF_NAME
-osx-
$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 locales fonts
tar
-acf
"dist/KoishiPro-
$CI_COMMIT_REF_NAME
-
$TARGET_PLATFORM
-
$TARGET_LOCALE
.tar.
$ARCHIVE_SUFFIX
"
--exclude
=
'.git*'
"
${
ARCHIVE_FILES
[@]
}
"
.ci/pack-windows-7z.sh
0 → 100755
View file @
84294177
#!/bin/bash
set
-x
set
-o
errexit
ARCHIVE_FILES
=(
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 locales fonts
)
if
[[
"
$TARGET_LOCALE
"
==
"zh-CN"
]]
;
then
ARCHIVE_FILES
=(
"
${
ARCHIVE_FILES
[@]
}
"
update-koishipro
)
fi
# TARGET_LOCALE
TARGET_PLATFORM
=
win32
apt update
&&
apt
-y
install
p7zip-full git
git submodule update
--init
mkdir
dist replay
7z a
-mx9
-xr
!
.git
*
dist/KoishiPro-
$CI_COMMIT_REF_NAME
-win32-
$TARGET_LOCALE
.7z
"
${
ARCHIVE_FILES
[@]
}
"
.ci/pack-windows.sh
View file @
84294177
#!/bin/bash
#!/bin/bash
set
-x
set
-x
set
-o
errexit
set
-o
errexit
# TARGET_LOCALE
apt update
&&
apt
-y
install
p7zip-full git
git submodule update
--init
mkdir
dist replay
ARCHIVE_FILES
=(
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 locales fonts
)
ARCHIVE_FILES
=(
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 locales fonts
)
if
[[
"
$TARGET_LOCALE
"
==
"zh-CN"
]]
;
then
if
[[
"
$TARGET_LOCALE
"
==
"zh-CN"
&&
ARCHIVE_SUFFIX
!=
"zst"
]]
;
then
ARCHIVE_FILES
=(
"
${
ARCHIVE_FILES
[@]
}
"
update-koishipro
)
ARCHIVE_FILES
=(
"
${
ARCHIVE_FILES
[@]
}
"
update-koishipro
)
fi
fi
7z a
-mx9
-xr
!
.git
*
dist/KoishiPro-
$CI_COMMIT_REF_NAME
-win32-
$TARGET_LOCALE
.7z
"
${
ARCHIVE_FILES
[@]
}
"
# TARGET_LOCALE
# ARCHIVE_SUFFIX
TARGET_PLATFORM
=
win32
apt update
&&
apt
-y
install tar
git zstd
git submodule update
--init
mkdir
dist replay
tar
-acf
"dist/KoishiPro-
$CI_COMMIT_REF_NAME
-
$TARGET_PLATFORM
-
$TARGET_LOCALE
.tar.
$ARCHIVE_SUFFIX
"
--exclude
=
'.git*'
"
${
ARCHIVE_FILES
[@]
}
"
.ci/upload-packager.sh
0 → 100755
View file @
84294177
#!/bin/bash
set
-o
errexit
apt update
;
apt
-y
install
curl jq
apiRoot
=
https://api.moecube.com
loginInfo
=
$(
curl
-sL
-X
POST
$apiRoot
/accounts/signin
-d
account
=
$MYCARD_USERNAME
-d
password
=
$MYCARD_PASSWORD
)
token
=
$(
echo
$loginInfo
| jq
'.token'
|
sed
's/"//g'
)
header
=
"Authorization:
$token
"
echo
"Login succeeded."
appName
=
"koishipro"
handleErrorMessage
()
{
rawJsonInput
=
"
$1
"
successInfo
=
$(
echo
"
$rawJsonInput
"
| jq
'.success'
)
statusCode
=
$(
echo
"
$rawJsonInput
"
| jq
'.statusCode'
)
if
[[
"
$successInfo
"
!=
"true"
]]
;
then
failMessage
=
$(
echo
"
$rawJsonInput
"
| jq
'.success'
)
echo
"
$rawJsonInput
"
exit
1
fi
}
runForDepot
()
{
platform
=
$1
locale
=
$2
archivePath
=
"./dist/KoishiPro-
$appVersion
-
$platform
-
$locale
.tar.zst"
suffix
=
"?platform=
$platform
&locale=
$locale
&arch=generic"
echo
"Uploading
$archivePath
"
result
=
$(
curl
-H
"
$header
"
-X
POST
"
$apiRoot
/release/api/build/
$appName
/
${
appVersion
}${
suffix
}
"
-F
file
=
@
$archivePath
)
handleErrorMessage
"
$result
"
echo
"
$result
"
| jq
.
}
runForDepot win32 zh-CN
runForDepot linux zh-CN
runForDepot darwin zh-CN
runForDepot win32 en-US
runForDepot linux en-US
runForDepot darwin en-US
.gitlab-ci.yml
View file @
84294177
...
@@ -62,8 +62,16 @@ mat_windows:
...
@@ -62,8 +62,16 @@ mat_windows:
-
premake5.exe
-
premake5.exe
-
event
-
event
exec_windows
:
._exec_build
:
stage
:
build
stage
:
build
cache
:
key
:
"
$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
paths
:
-
bin/
-
obj/
exec_windows
:
extends
:
._exec_build
tags
:
tags
:
-
vs
-
vs
dependencies
:
dependencies
:
...
@@ -71,11 +79,7 @@ exec_windows:
...
@@ -71,11 +79,7 @@ exec_windows:
-
mat_windows
-
mat_windows
#variables:
#variables:
# irrklang_pro: '1'
# irrklang_pro: '1'
cache
:
# USE_IRRKLANG: "1"
key
:
"
$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
paths
:
-
bin/
-
obj/
script
:
script
:
-
git submodule update --init
-
git submodule update --init
-
bash -c 'cp -rf premake/* .'
-
bash -c 'cp -rf premake/* .'
...
@@ -88,21 +92,16 @@ exec_windows:
...
@@ -88,21 +92,16 @@ exec_windows:
-
ygopro.exe
-
ygopro.exe
exec_linux
:
exec_linux
:
stage
:
build
extends
:
._exec_
build
tags
:
tags
:
-
linux
-
linux
variables
:
variables
:
YGOPRO_BUILD_ALL
:
'
1'
YGOPRO_BUILD_ALL
:
'
1'
USE_IRRKLANG
:
"
1"
#
USE_IRRKLANG: "1"
dependencies
:
dependencies
:
-
mat_common
-
mat_common
#- mat_irrklang
#- mat_irrklang
-
mat_linux
-
mat_linux
cache
:
key
:
"
$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
paths
:
-
bin/
-
obj/
script
:
script
:
-
apt update; apt -y install git build-essential
-
apt update; apt -y install git build-essential
-
git submodule update --init
-
git submodule update --init
...
...
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