Skip to content

Commit

Permalink
macos: added manifest and app icon
Browse files Browse the repository at this point in the history
  • Loading branch information
JaCzekanski committed Jun 4, 2020
1 parent 9e18a68 commit 1177196
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis/linux/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 {} \;
Expand Down
8 changes: 8 additions & 0 deletions .travis/macos/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 {} \;
Expand Down
File renamed without changes
22 changes: 22 additions & 0 deletions misc/macos/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?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>CFBundleDevelopmentRegion</key>
<string>en-US</string>
<key>CFBundleExecutable</key>
<string>avocado</string>
<key>CFBundleIconFile</key>
<string>avocado.icns</string>
<key>CFBundleIdentifier</key>
<string>info.czekanski.avocado</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Avocado</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>NSHighResolutionCapable</key>
<true/>
</dict>
</plist>

0 comments on commit 1177196

Please sign in to comment.