Skip to content

armgit / bento

Public Imported from GitHub
0

Bento, the office suite that fits in a file

tray: ship the app icon

nyblnetee2899acc578
diff --git a/tray/assets/tray-icon.svg b/tray/assets/tray-icon.svg
index 883a2742..7f030141 100644
--- a/tray/assets/tray-icon.svg
+++ b/tray/assets/tray-icon.svg
@@ -9,7 +9,13 @@
edge while staying fat at the corners, which reads as a mistake rather than a
frame. 4.2 survives masking as an even rim down to the 40px notification size.
- Export at 1024x1024 for App Store Connect (opaque, no alpha).
+ This is the SOURCE. The build consumes a 1024x1024 PNG export of it at
+ ../ios/Assets.xcassets/AppIcon.appiconset/icon-1024.png — one copy, kept
+ where the asset catalog needs it, and the same file App Store Connect wants
+ (opaque, no alpha). After editing this file, re-export:
+
+ chrome --headless --screenshot=<dest> --window-size=1024,1024 \
+ --default-background-color=00000000 tray-icon.svg
-->
<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 32 32"
role="img" aria-label="Bento Tray">
diff --git a/tray/ios/Assets.xcassets/AppIcon.appiconset/Contents.json b/tray/ios/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 00000000..27a4f381
--- /dev/null
+++ b/tray/ios/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,14 @@
+{
+ "images" : [
+ {
+ "filename" : "icon-1024.png",
+ "idiom" : "universal",
+ "platform" : "ios",
+ "size" : "1024x1024"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/tray/assets/tray-icon-1024.png b/tray/ios/Assets.xcassets/AppIcon.appiconset/icon-1024.png
similarity index 100%
rename from tray/assets/tray-icon-1024.png
rename to tray/ios/Assets.xcassets/AppIcon.appiconset/icon-1024.png
diff --git a/tray/ios/Assets.xcassets/Contents.json b/tray/ios/Assets.xcassets/Contents.json
new file mode 100644
index 00000000..73c00596
--- /dev/null
+++ b/tray/ios/Assets.xcassets/Contents.json
@@ -0,0 +1,6 @@
+{
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/tray/ios/project.yml b/tray/ios/project.yml
index f1dddd82..d041d326 100644
--- a/tray/ios/project.yml
+++ b/tray/ios/project.yml
@@ -33,3 +33,7 @@ targets:
PRODUCT_BUNDLE_IDENTIFIER: page.bento.tray
TARGETED_DEVICE_FAMILY: "1,2" # iPhone and iPad
SWIFT_VERSION: "5.0"
+ # Assets.xcassets is picked up by the source glob above; this names the
+ # icon set inside it. Without it the catalog still compiles and the app
+ # still ships — with no icon at all, silently.
+ ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon