Commit 8a673dfd authored by nanahira's avatar nanahira

it should work this time..

parent fbb2eb3f
...@@ -58,12 +58,14 @@ mat_macos: ...@@ -58,12 +58,14 @@ mat_macos:
script: script:
- apt update; apt -y install wget tar - apt update; apt -y install wget tar
- wget -O - https://cdn01.moecube.com/ygopro-build-materials/premake-5.0.0-alpha14-macosx.tar.gz | tar zfx - - wget -O - https://cdn01.moecube.com/ygopro-build-materials/premake-5.0.0-alpha14-macosx.tar.gz | tar zfx -
- wget -O - https://cdn01.moecube.com/ygopro-build-materials/libirrklang-patched-dylib.tar.gz | tar zfx -
- mkdir irrlicht - mkdir irrlicht
- cd irrlicht - cd irrlicht
- wget -O - https://cdn01.moecube.com/ygopro-build-materials/irrlicht-mycard-mac.tar.gz | tar zfx - - wget -O - https://cdn01.moecube.com/ygopro-build-materials/irrlicht-mycard-mac.tar.gz | tar zfx -
- cd .. - cd ..
artifacts: artifacts:
paths: paths:
- libirrklang-patched.dylib
- premake5 - premake5
- irrlicht - irrlicht
...@@ -167,15 +169,19 @@ exec_macos: ...@@ -167,15 +169,19 @@ exec_macos:
- git submodule update --init - git submodule update --init
- brew install freetype libevent sqlite dylibbundler - brew install freetype libevent sqlite dylibbundler
- sudo cp -rf irrklang/bin/macosx-gcc/libirrklang.dylib /usr/local/lib/ - sudo cp -rf irrklang/bin/macosx-gcc/libirrklang.dylib /usr/local/lib/
- sudo cp -rf irrklang/include /usr/local/include/irrklang #- sudo cp -rf irrklang/include /usr/local/include/irrklang
- ./premake5 gmake --cc=clang - ./premake5 gmake --cc=clang
- cd build - cd build
- make config=release -j4 - make config=release -j4
- cd .. - cd ..
- mkdir -p ygopro.app/Contents/MacOS; - mkdir -p ygopro.app/Contents/MacOS;
- mv bin/release/ygopro.app ygopro.app/Contents/MacOS/ygopro; - mv bin/release/ygopro.app ygopro.app/Contents/MacOS/ygopro;
- dylibbundler -x ygopro.app/Contents/MacOS/ygopro -b -d ygopro.app/Contents/Frameworks/ -p @executable_path/../Frameworks/ -cd; - dylibbundler -x ygopro.app/Contents/MacOS/ygopro -b -d ygopro.app/Contents/Frameworks/ -p @executable_path/../Frameworks/ -cd -i /usr/local/lib/libirrklang.dylib;
- strip ygopro.app/Contents/MacOS/ygopro; mkdir ygopro.app/Contents/Resources; # do some special things for irrklang
- mv ./libirrklang-patched.dylib ygopro.app/Contents/Frameworks/
- install_name_tool -change /usr/local/lib/libirrklang.dylib @executable_path/../Frameworks/libirrklang.dylib ygopro.app/Contents/MacOS/ygopro
- strip ygopro.app/Contents/MacOS/ygopro;
- mkdir ygopro.app/Contents/Resources;
- mv premake/gframe/ygopro.icns ygopro.app/Contents/Resources/Icon.icns; - 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" "CFBundleIconFile" "Icon.icns";
- defaults write "$PWD/ygopro.app/Contents/Info.plist" "CFBundleIdentifier" "moe.mycard.ygopro"; - defaults write "$PWD/ygopro.app/Contents/Info.plist" "CFBundleIdentifier" "moe.mycard.ygopro";
......
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