From 1177196ce8c041d38a08b3abb0b1c0e6fde8569a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Czeka=C5=84ski?= Date: Fri, 5 Jun 2020 00:26:54 +0200 Subject: [PATCH] macos: added manifest and app icon --- .travis/linux/build.sh | 2 +- .travis/macos/build.sh | 8 +++++++ .../ic_launcher-web.png => misc/avocado.png | Bin misc/macos/Info.plist | 22 ++++++++++++++++++ 4 files changed, 31 insertions(+), 1 deletion(-) rename android/app/src/main/ic_launcher-web.png => misc/avocado.png (100%) create mode 100644 misc/macos/Info.plist diff --git a/.travis/linux/build.sh b/.travis/linux/build.sh index ced6309..64a2f42 100755 --- a/.travis/linux/build.sh +++ b/.travis/linux/build.sh @@ -43,7 +43,7 @@ wget -ncv https://gist.github.com/JaCzekanski/d7a6e06295729a3f81bd9bd488e9d37d/r mkdir -p $ARTIFACT mkdir -p $ARTIFACT/usr/share/avocado cp -r data $ARTIFACT/usr/share/avocado/ -cp android/app/src/main/ic_launcher-web.png $ARTIFACT/avocado.png +cp misc/avocado.png $ARTIFACT/avocado.png # Remove .gitignore find $ARTIFACT -type f -name .gitignore -exec rm {} \; diff --git a/.travis/macos/build.sh b/.travis/macos/build.sh index dfadcc3..ff72839 100755 --- a/.travis/macos/build.sh +++ b/.travis/macos/build.sh @@ -22,6 +22,14 @@ mkdir -p $ARTIFACT cp -r build/release_x64/avocado.app $ARTIFACT/avocado.app mkdir -p $ARTIFACT/avocado.app/Contents/Resources cp -r data $ARTIFACT/avocado.app/Contents/Resources +cp misc/macos/Info.plist $ARTIFACT/avocado.app/Contents + +# Create icon +wget -ncv https://raw.githubusercontent.com/jamf/icns-Creator/master/icns_creator.sh +chmod +x icns_creator.sh +./icns_creator.sh misc/avocado.png avocado +rm -rf avocado.iconset +mv avocado.icns $ARTIFACT/avocado.app/Contents/Resources/ # Remove .gitignore find $ARTIFACT -type f -name .gitignore -exec rm {} \; diff --git a/android/app/src/main/ic_launcher-web.png b/misc/avocado.png similarity index 100% rename from android/app/src/main/ic_launcher-web.png rename to misc/avocado.png diff --git a/misc/macos/Info.plist b/misc/macos/Info.plist new file mode 100644 index 0000000..9c3cb93 --- /dev/null +++ b/misc/macos/Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + en-US + CFBundleExecutable + avocado + CFBundleIconFile + avocado.icns + CFBundleIdentifier + info.czekanski.avocado + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + Avocado + CFBundlePackageType + APPL + NSHighResolutionCapable + + +