Commit 8705e6b4 authored by zhykzhykzhyk's avatar zhykzhykzhyk Committed by mercury233

More fix to the IME on MacOS (#4)

parent 1f42671e
...@@ -39,16 +39,20 @@ script: ...@@ -39,16 +39,20 @@ script:
- cd .. - cd ..
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then mv bin/release/ygopro ./; strip ygopro; - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then mv bin/release/ygopro ./; strip ygopro;
fi fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then mkdir -p ygopro.app/Contents/MacOS; mv - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
bin/release/ygopro ygopro.app/Contents/MacOS; dylibbundler -x ygopro.app/Contents/MacOS/ygopro mkdir -p ygopro.app/Contents/MacOS;
-b -d ygopro.app/Contents/Frameworks/ -p @executable_path/../Frameworks/ -cd; strip mv bin/release/ygopro ygopro.app/Contents/MacOS;
ygopro.app/Contents/MacOS/ygopro; mkdir ygopro.app/Contents/Resources; mv premake/gframe/ygopro.icns dylibbundler -x ygopro.app/Contents/MacOS/ygopro -b -d ygopro.app/Contents/Frameworks/ -p @executable_path/../Frameworks/ -cd;
ygopro.app/Contents/Resources/Icon.icns; defaults write "$PWD/ygopro.app/Contents/Info.plist" strip ygopro.app/Contents/MacOS/ygopro; mkdir ygopro.app/Contents/Resources;
"CFBundleIconFile" "Icon.icns"; echo $CERTIFICATE | base64 --decode --output cert.p12; mv premake/gframe/ygopro.icns ygopro.app/Contents/Resources/Icon.icns;
security create-keychain -p "" build.keychain; security unlock-keychain -p "" build.keychain; defaults write "$PWD/ygopro.app/Contents/Info.plist" "CFBundleIconFile" "Icon.icns";
security import cert.p12 -k build.keychain -P "$CERTIFICATE_PASSWORD" -T /usr/bin/codesign; if [[ "$TRAVIS_PULL_REQUEST" == "false" ]]; then
codesign --deep --keychain build.keychain --sign "$(security find-identity -v -p echo $CERTIFICATE | base64 --decode --output cert.p12;
codesigning build.keychain | head -1 | grep -o '".*"' | tr -d '"')" ygopro.app; security create-keychain -p "" build.keychain; security unlock-keychain -p "" build.keychain;
security import cert.p12 -k build.keychain -P "$CERTIFICATE_PASSWORD" -T /usr/bin/codesign;
codesign --deep --keychain build.keychain --sign "$(security find-identity -v -p
codesigning build.keychain | head -1 | grep -o '".*"' | tr -d '"')" ygopro.app;
fi
fi fi
before_deploy: before_deploy:
- curl --location --retry 5 'https://github.com/moecube/ygopro-database/archive/master.tar.gz' - curl --location --retry 5 'https://github.com/moecube/ygopro-database/archive/master.tar.gz'
......
include "lzma" include "lzma/."
project "ygopro" project "ygopro"
kind "WindowedApp" kind "WindowedApp"
......
This diff is collapsed.
...@@ -15,7 +15,7 @@ solution "ygo" ...@@ -15,7 +15,7 @@ solution "ygo"
configuration "macosx" configuration "macosx"
defines { "LUA_USE_MACOSX" } defines { "LUA_USE_MACOSX" }
includedirs { "/usr/local/include/*" } includedirs { "/usr/local/include/", "/usr/local/include/irrlicht", "/usr/local/include/freetype2" }
libdirs { "/usr/local/lib", "/usr/X11/lib" } libdirs { "/usr/local/lib", "/usr/X11/lib" }
buildoptions { "-stdlib=libc++" } buildoptions { "-stdlib=libc++" }
links { "OpenGL.framework", "Cocoa.framework", "IOKit.framework" } links { "OpenGL.framework", "Cocoa.framework", "IOKit.framework" }
......
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