diff --git a/ci/travis/build.sh b/ci/travis/build.sh index e519047a891ddbcd1357d99723b23169ded2d431..3d806dce0b15887b89c1060fe821f61232cf88b8 100755 --- a/ci/travis/build.sh +++ b/ci/travis/build.sh @@ -33,9 +33,9 @@ if [ $TRAVIS_OS_NAME == "osx" ] then pyinstaller sakia.spec cp -rv dist/sakia/* dist/sakia.app/Contents/MacOS + cp -v res/osx/Info.plist dist/sakia.app/Contents/ rm -rfv dist/sakia elif [ $TRAVIS_OS_NAME == "linux" ] then pyinstaller sakia.spec fi - diff --git a/res/osx/Info.plist b/res/osx/Info.plist new file mode 100644 index 0000000000000000000000000000000000000000..5f927ac5967f33c3d7859f17962275137a6d0b31 --- /dev/null +++ b/res/osx/Info.plist @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict><key>CFBundleIdentifier</key> +<string>sakia</string> +<key>CFBundlePackageType</key> +<string>APPL</string> +<key>CFBundleName</key> +<string>sakia</string> +<key>CFBundleExecutable</key> +<string>MacOS/sakia.bin</string> +<key>CFBundleInfoDictionaryVersion</key> +<string>6.0</string> +<key>CFBundleIconFile</key> +<string>sakia.ico</string> +<key>NSHighResolutionCapable</key> +<string>True</string> +<key>CFBundleDisplayName</key> +<string>sakia</string> +<key>CFBundleShortVersionString</key> +<string>0.0.0</string> +<key>LSBackgroundOnly</key> +<string>False</string> +<key>LSEnvironment</key> +<dict> +<key>LC_ALL</key> +<string>UTF-8</string> +</dict> +</dict> +</plist> diff --git a/sakia.spec b/sakia.spec index 14efea318fee5ae115d4d1cd920b8782385a4980..0e86e2f24c97197dcca2c2c335eb76e6ff8f5fbf 100644 --- a/sakia.spec +++ b/sakia.spec @@ -97,10 +97,4 @@ if is_darwin: app = BUNDLE(exe, name='sakia.app', icon='sakia.ico', - bundle_identifier=None, - info_plist={ - 'NSHighResolutionCapable': 'True', - 'LSBackgroundOnly': 'False' - },) - - + bundle_identifier=None,) # take care, info.plist will be overridden.