Improve .livemd icon on macOS (#1932)
|
@ -28,6 +28,16 @@ if [ -d Resources ]; then
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -d Assets.xcassets ]; then
|
||||||
|
actool \
|
||||||
|
--development-region en --errors --notices --warnings \
|
||||||
|
--target-device mac --platform macosx --minimum-deployment-target 11.0 \
|
||||||
|
--app-icon AppIcon \
|
||||||
|
--compile $app_dir/Contents/Resources \
|
||||||
|
--output-partial-info-plist .build/partial-info.plist \
|
||||||
|
Assets.xcassets
|
||||||
|
fi
|
||||||
|
|
||||||
(
|
(
|
||||||
cd $ELIXIRKIT_PROJECT_DIR
|
cd $ELIXIRKIT_PROJECT_DIR
|
||||||
mix release $release_name --overwrite --path=$rel_dir
|
mix release $release_name --overwrite --path=$rel_dir
|
||||||
|
|
After Width: | Height: | Size: 7.3 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 39 KiB |
After Width: | Height: | Size: 39 KiB |
After Width: | Height: | Size: 3.5 KiB |
|
@ -0,0 +1,67 @@
|
||||||
|
{
|
||||||
|
"images" : [
|
||||||
|
{
|
||||||
|
"filename" : "AppIcon-16px.png",
|
||||||
|
"idiom" : "mac",
|
||||||
|
"scale" : "1x",
|
||||||
|
"size" : "16x16"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename" : "AppIcon-32px-1.png",
|
||||||
|
"idiom" : "mac",
|
||||||
|
"scale" : "2x",
|
||||||
|
"size" : "16x16"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename" : "AppIcon-32px.png",
|
||||||
|
"idiom" : "mac",
|
||||||
|
"scale" : "1x",
|
||||||
|
"size" : "32x32"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename" : "AppIcon-64px.png",
|
||||||
|
"idiom" : "mac",
|
||||||
|
"scale" : "2x",
|
||||||
|
"size" : "32x32"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename" : "AppIcon-128px.png",
|
||||||
|
"idiom" : "mac",
|
||||||
|
"scale" : "1x",
|
||||||
|
"size" : "128x128"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename" : "AppIcon-256px-1.png",
|
||||||
|
"idiom" : "mac",
|
||||||
|
"scale" : "2x",
|
||||||
|
"size" : "128x128"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename" : "AppIcon-256px.png",
|
||||||
|
"idiom" : "mac",
|
||||||
|
"scale" : "1x",
|
||||||
|
"size" : "256x256"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename" : "AppIcon-512px-1.png",
|
||||||
|
"idiom" : "mac",
|
||||||
|
"scale" : "2x",
|
||||||
|
"size" : "256x256"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename" : "AppIcon-512px.png",
|
||||||
|
"idiom" : "mac",
|
||||||
|
"scale" : "1x",
|
||||||
|
"size" : "512x512"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "mac",
|
||||||
|
"scale" : "2x",
|
||||||
|
"size" : "512x512"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info" : {
|
||||||
|
"author" : "xcode",
|
||||||
|
"version" : 1
|
||||||
|
}
|
||||||
|
}
|
6
rel/app/macos/Assets.xcassets/Contents.json
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"info" : {
|
||||||
|
"author" : "xcode",
|
||||||
|
"version" : 1
|
||||||
|
}
|
||||||
|
}
|
BIN
rel/app/macos/Assets.xcassets/Icon.iconset/icon_128x128.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
rel/app/macos/Assets.xcassets/Icon.iconset/icon_128x128@2x.png
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
rel/app/macos/Assets.xcassets/Icon.iconset/icon_16x16.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
rel/app/macos/Assets.xcassets/Icon.iconset/icon_16x16@2x.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
rel/app/macos/Assets.xcassets/Icon.iconset/icon_256x256.png
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
rel/app/macos/Assets.xcassets/Icon.iconset/icon_256x256@2x.png
Normal file
After Width: | Height: | Size: 46 KiB |
BIN
rel/app/macos/Assets.xcassets/Icon.iconset/icon_32x32.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
rel/app/macos/Assets.xcassets/Icon.iconset/icon_32x32@2x.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
rel/app/macos/Assets.xcassets/Icon.iconset/icon_512x512.png
Normal file
After Width: | Height: | Size: 46 KiB |
BIN
rel/app/macos/Assets.xcassets/Icon.iconset/icon_512x512@2x.png
Normal file
After Width: | Height: | Size: 109 KiB |
|
@ -34,11 +34,38 @@
|
||||||
<string>LiveMarkdown</string>
|
<string>LiveMarkdown</string>
|
||||||
<key>CFBundleTypeRole</key>
|
<key>CFBundleTypeRole</key>
|
||||||
<string>Editor</string>
|
<string>Editor</string>
|
||||||
<key>CFBundleTypeExtensions</key>
|
<key>LSItemContentTypes</key>
|
||||||
<array>
|
<array>
|
||||||
<string>livemd</string>
|
<string>dev.livebook.livemarkdown</string>
|
||||||
</array>
|
</array>
|
||||||
</dict>
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
|
<key>UTExportedTypeDeclarations</key>
|
||||||
|
<array>
|
||||||
|
<dict>
|
||||||
|
<key>UTTypeConformsTo</key>
|
||||||
|
<array>
|
||||||
|
<string>public.data</string>
|
||||||
|
</array>
|
||||||
|
<key>UTTypeDescription</key>
|
||||||
|
<string>Livebook</string>
|
||||||
|
<key>UTTypeIcons</key>
|
||||||
|
<dict>
|
||||||
|
<key>UTTypeIconBadgeName</key>
|
||||||
|
<string>Icon</string>
|
||||||
|
<key>UTTypeIconText</key>
|
||||||
|
<string>Livebook</string>
|
||||||
|
</dict>
|
||||||
|
<key>UTTypeIdentifier</key>
|
||||||
|
<string>dev.livebook.livemarkdown</string>
|
||||||
|
<key>UTTypeTagSpecification</key>
|
||||||
|
<dict>
|
||||||
|
<key>public.filename-extension</key>
|
||||||
|
<array>
|
||||||
|
<string>livemd</string>
|
||||||
|
</array>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
</array>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
|
@ -58,7 +58,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
||||||
|
|
||||||
statusItem = NSStatusBar.system.statusItem(withLength: NSStatusItem.variableLength)
|
statusItem = NSStatusBar.system.statusItem(withLength: NSStatusItem.variableLength)
|
||||||
let button = statusItem.button!
|
let button = statusItem.button!
|
||||||
let icon = NSImage(named: "LivebookIcon")!
|
let icon = NSImage(named: "Icon")!
|
||||||
let resizedIcon = NSImage(size: NSSize(width: 18, height: 18), flipped: false) { (dstRect) -> Bool in
|
let resizedIcon = NSImage(size: NSSize(width: 18, height: 18), flipped: false) { (dstRect) -> Bool in
|
||||||
icon.draw(in: dstRect)
|
icon.draw(in: dstRect)
|
||||||
return true
|
return true
|
||||||
|
|