Commit 71298865 authored by 神楽坂玲奈's avatar 神楽坂玲奈

icon

parent 6d146364
......@@ -36,15 +36,25 @@ script:
- cd ..
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then mv bin/release/ygopro ./; strip ygopro; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
mkdir -p ygopro.app/Contents/MacOS;
mv bin/release/ygopro ygopro.app/Contents/MacOS;
dylibbundler -od -b -x ./ygopro.app/Contents/MacOS/ygopro -d ./ygopro.app/Contents/Frameworks/;
strip ygopro.app/Contents/MacOS/ygopro;
echo $CERTIFICATE | base64 --decode --output cert.p12;
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;
# app bundle
mkdir -p ygopro.app/Contents/MacOS;
# main execuatable
mv bin/release/ygopro ygopro.app/Contents/MacOS;
dylibbundler -od -b -x ./ygopro.app/Contents/MacOS/ygopro -d ./ygopro.app/Contents/Frameworks/;
strip ygopro.app/Contents/MacOS/ygopro;
# resources
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"
# code sign
echo $CERTIFICATE | base64 --decode --output cert.p12;
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
before_deploy:
- wget https://mycard.moe/ygopro/cards.cdb
......
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