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
a0b9c39f
Commit
a0b9c39f
authored
Jul 16, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
the m1mac
parent
a4537fed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
87 additions
and
15 deletions
+87
-15
.ci/exec-macos-platform.sh
.ci/exec-macos-platform.sh
+19
-0
.gitlab-ci.yml
.gitlab-ci.yml
+68
-15
No files found.
.ci/exec-macos-platform.sh
0 → 100755
View file @
a0b9c39f
#!/bin/bash
set
-x
set
-o
errexit
TARGET_YGOPRO_BINARY_PATH
=
./ygopro-platforms/ygopro-platform-
$TARGET_PATFORM
export
YGOPRO_LIBEVENT_STATIC_PATH
=
$PWD
/libevent-stable
git submodule update
--init
./premake5 gmake
--cc
=
clang
cd
build
make
config
=
release
-j4
cd
..
mkdir
ygopro-platforms
mv
bin/release/ygopro.app
$TARGET_YGOPRO_BINARY_PATH
install_name_tool
-change
/usr/local/lib/libirrklang.dylib @executable_path/../Frameworks/libirrklang.dylib
$TARGET_YGOPRO_BINARY_PATH
strip
$TARGET_YGOPRO_BINARY_PATH
.gitlab-ci.yml
View file @
a0b9c39f
stages
:
-
prepare
-
build
-
sign
-
combine
-
pack
-
deploy
variables
:
GIT_DEPTH
:
"
1"
USE_IRRKLANG
:
"
1"
mat_common
:
stage
:
prepare
...
...
@@ -61,7 +60,7 @@ mat_linux:
-
irrlicht_linux
-
libevent-stable
mat_macos_
libevent
:
mat_macos_
platform_x86
:
stage
:
prepare
tags
:
-
macos
...
...
@@ -72,6 +71,28 @@ mat_macos_libevent:
paths
:
-
libevent-stable
mat_macos_platform_m1
:
stage
:
prepare
tags
:
-
linux
script
:
-
wget -O - https://cdn01.moecube.com/ygopro-build-materials/libevent-m1mac.tar.gz | tar zfx -
artifacts
:
paths
:
-
libevent-stable
mat_macos_irrklang_patched
:
stage
:
build
tags
:
-
linux
dependencies
:
[]
script
:
-
wget -O - https://cdn01.moecube.com/ygopro-build-materials/libirrklang-patched-dylib.tar.gz | tar zfx -
artifacts
:
paths
:
-
libirrklang-patched.dylib
mat_macos
:
stage
:
prepare
tags
:
...
...
@@ -124,6 +145,7 @@ exec_windows:
-
mat_windows
variables
:
irrklang_pro
:
'
1'
USE_IRRKLANG
:
"
1"
cache
:
paths
:
-
bin/
...
...
@@ -145,6 +167,7 @@ exec_linux:
-
linux
variables
:
YGOPRO_BUILD_ALL
:
'
1'
USE_IRRKLANG
:
"
1"
dependencies
:
-
mat_common
-
mat_irrklang
...
...
@@ -169,7 +192,7 @@ exec_linux:
-
ygopro
-
lib
exec_macos
:
exec_macos
_platform_x86
:
stage
:
build
tags
:
-
macos
...
...
@@ -177,26 +200,56 @@ exec_macos:
-
mat_irrklang
-
mat_macos
-
mat_common
-
mat_macos_libevent
-
mat_macos_platform_x86
variables
:
USE_IRRKLANG
:
"
1"
TARGET_PATFORM
:
x86
cache
:
paths
:
-
bin/
-
obj/
script
:
-
git submodule update --init
-
brew install dylibbundler
-
sudo cp -rf irrklang/bin/macosx-gcc/libirrklang.dylib /usr/local/lib/
#- sudo cp -rf irrklang/include /usr/local/include/irrklang
-
env YGOPRO_LIBEVENT_STATIC_PATH=$PWD/libevent-stable ./premake5 gmake --cc=clang
-
cd build
-
make config=release -j4
-
cd ..
-
./.ci/exec-macos-platform.sh
-
install_name_tool -change /usr/local/lib/libirrklang.dylib @executable_path/../Frameworks/libirrklang.dylib ./ygopro-platforms/ygopro-platform-$TARGET_PATFORM
artifacts
:
paths
:
-
ygopro-platforms
exec_macos_platform_m1
:
stage
:
build
tags
:
-
macos
dependencies
:
-
mat_macos
-
mat_common
-
mat_macos_platform_m1
variables
:
TARGET_PATFORM
:
m1
YGOPRO_TARGET_ARM
:
'
1'
cache
:
paths
:
-
bin/
-
obj/
script
:
./.ci/exec-macos-platform.sh
artifacts
:
paths
:
-
ygopro-platforms
exec_macos
:
stage
:
combine
tags
:
-
macos
dependencies
:
-
exec_macos_platform_x86
-
exec_macos_platform_m1
-
mat_macos_irrklang_patched
script
:
-
mkdir -p ygopro.app/Contents/MacOS ygopro.app/Contents/Frameworks;
-
mv bin/release/ygopro.app ygopro.app/Contents/MacOS/ygopro;
# do some special things for irrklang
-
mv ./libirrklang-patched.dylib ygopro.app/Contents/Frameworks/libirrklang.dylib
-
install_name_tool -change /usr/local/lib/libirrklang.dylib @executable_path/../Frameworks/libirrklang.dylib ygopro.app/Contents/MacOS/ygopro
-
dylibbundler -x ygopro.app/Contents/MacOS/ygopro -b -d ygopro.app/Contents/Frameworks/ -p @executable_path/../Frameworks/ -cd -i @executable_path/../Frameworks;
#
- install_name_tool -change /usr/local/lib/libirrklang.dylib @executable_path/../Frameworks/libirrklang.dylib ygopro.app/Contents/MacOS/ygopro
#
- dylibbundler -x ygopro.app/Contents/MacOS/ygopro -b -d ygopro.app/Contents/Frameworks/ -p @executable_path/../Frameworks/ -cd -i @executable_path/../Frameworks;
-
strip ygopro.app/Contents/MacOS/ygopro;
-
mkdir ygopro.app/Contents/Resources;
-
mv premake/gframe/ygopro.icns ygopro.app/Contents/Resources/Icon.icns;
...
...
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