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
baichixing
ygopro
Commits
1b392326
Commit
1b392326
authored
Jun 12, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test macos
parent
3fbf6a87
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
92 additions
and
5 deletions
+92
-5
.gitlab-ci.yml
.gitlab-ci.yml
+89
-4
.travis.yml
.travis.yml
+1
-1
gframe/premake4.lua
gframe/premake4.lua
+2
-0
No files found.
.gitlab-ci.yml
View file @
1b392326
stages
:
-
prepare
-
build
-
sign
-
pack
-
deploy
...
...
@@ -50,21 +51,21 @@ mat_linux:
-
premake5
-
irrlicht_linux
mat_mac
:
mat_mac
os
:
stage
:
prepare
tags
:
-
linux
script
:
-
apt update; apt -y install wget tar
-
wget -O - https://cdn01.moecube.com/ygopro-build-materials/premake-5.0.0-alpha12-macosx.tar.gz | tar zfx -
-
mkdir irrlicht
_mac
-
cd irrlicht
_mac
-
mkdir irrlicht
-
cd irrlicht
-
wget -O - https://cdn01.moecube.com/ygopro-build-materials/irrlicht-mycard-mac.tar.gz | tar zfx -
-
cd ..
artifacts
:
paths
:
-
premake5
-
irrlicht
_mac
-
irrlicht
mat_windows
:
stage
:
prepare
...
...
@@ -150,6 +151,50 @@ exec_linux:
-
ygopro
-
libIrrKlang.so
exec_macos
:
stage
:
build
tags
:
-
macos
dependencies
:
-
mat_irrklang
-
mat_macos
cache
:
paths
:
-
bin/
-
obj/
script
:
-
brew install freetype libevent sqlite dylibbundler
-
./premake5 gmake --cc=clang
-
cd build
-
make config=release -j4
-
cd ..
-
mkdir -p ygopro.app/Contents/MacOS;
-
mv bin/release/ygopro ygopro.app/Contents/MacOS;
-
dylibbundler -x ygopro.app/Contents/MacOS/ygopro -b -d ygopro.app/Contents/Frameworks/ -p @executable_path/../Frameworks/ -cd;
-
strip ygopro.app/Contents/MacOS/ygopro; mkdir ygopro.app/Contents/Resources;
-
mv premake/gframe/ygopro.icns ygopro.app/Contents/Resources/Icon.icns;
-
defaults write "$PWD/ygopro.app/Contents/Info.plist" "CFBundleIconFile" "Icon.icns";
-
defaults write "$PWD/ygopro.app/Contents/Info.plist" "CFBundleIdentifier" "moe.mycard.ygopro";
artifacts
:
paths
:
-
ygopro.app
exec_macos_sign
:
stage
:
sign
tags
:
-
macos
dependencies
:
-
exec_macos
script
:
-
codesign --deep --sign "$(security find-identity -v -p codesigning $MACOS_KEYCHAIN_NAME | head -1 | grep -o '".*"' | tr -d '"')" ygopro.app
artifacts
:
paths
:
-
ygopro.app
only
:
-
tags
-
gitlabci
assets
:
stage
:
prepare
tags
:
...
...
@@ -337,13 +382,53 @@ pack_linux_en-US:
-
tags
-
gitlabci
pack_macos_zh-CN
:
stage
:
pack
tags
:
-
linux
dependencies
:
-
assets
-
assets_nonwindows
-
exec_macos_sign
-
assets_zh-CN
script
:
./.ci/pack-macos.sh
variables
:
TARGET_LOCALE
:
zh-CN
artifacts
:
paths
:
-
dist
only
:
-
tags
-
gitlabci
pack_macos_en-US
:
stage
:
pack
tags
:
-
linux
dependencies
:
-
assets
-
assets_nonwindows
-
exec_macos_sign
-
assets_en-US
script
:
./.ci/pack-macos.sh
variables
:
TARGET_LOCALE
:
en-US
artifacts
:
paths
:
-
dist
only
:
-
tags
-
gitlabci
upload_to_minio
:
stage
:
deploy
dependencies
:
-
pack_windows_zh-CN
-
pack_linux_zh-CN
-
pack_macos_zh-CN
-
pack_windows_en-US
-
pack_linux_en-US
-
pack_macos_en-US
tags
:
-
linux
image
:
python
...
...
.travis.yml
View file @
1b392326
...
...
@@ -46,7 +46,7 @@ before_install:
cp premake/lua/premake4.lua lua/;
fi
-
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then mkdir irrlicht ; cd irrlicht ; curl --retry 5 --location https://github.com/moecube/irrlicht/releases/download/test/irrlicht-mycard-mac.tar.gz | tar zfx - ; c
p libIrrlicht.a /usr/local/lib/ ; sudo cp -r include /usr/local/include/irrlicht ; c
d .. ; fi
-
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then mkdir irrlicht ; cd irrlicht ; curl --retry 5 --location https://github.com/moecube/irrlicht/releases/download/test/irrlicht-mycard-mac.tar.gz | tar zfx - ; cd .. ; fi
-
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then curl --retry 5 --location https://github.com/premake/premake-core/releases/download/v5.0.0-alpha12/premake-5.0.0-alpha12-macosx.tar.gz | tar zfx -; fi
-
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then curl --retry 5 --location https://github.com/premake/premake-core/releases/download/v5.0.0-alpha12/premake-5.0.0-alpha12-linux.tar.gz | tar zfx - ; fi
...
...
gframe/premake4.lua
View file @
1b392326
...
...
@@ -55,6 +55,8 @@ project "ygopro"
end
configuration
"macosx"
links
{
"lua"
}
includedirs
{
"../irrlicht/include"
}
libdirs
{
"../irrlicht"
}
if
USE_IRRKLANG
then
links
{
"irrklang"
}
libdirs
{
"../irrklang/bin/macosx-gcc"
}
...
...
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