Skip to content

Commit b5ce9ae

Browse files
authored
Merge pull request #6 from se2crid/Master-GitHub-bad
Refactors macOS icon generation
2 parents 86a860f + 6d84978 commit b5ce9ae

File tree

4 files changed

+4
-15
lines changed

4 files changed

+4
-15
lines changed

.github/workflows/rust.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -211,24 +211,13 @@ jobs:
211211
<key>CFBundleExecutable</key><string>${{ env.APP_NAME }}</string>
212212
<key>CFBundlePackageType</key><string>APPL</string>
213213
<key>CFBundleIconFile</key><string>icon.icns</string>
214+
<key>CFBundleIconName</key><string>icon</string>
214215
</dict></plist>
215216
EOF
216217
217-
# 3) Generate .icns from PNG
218-
ICONSET_DIR="icons.iconset"
219-
mkdir -p "$ICONSET_DIR"
220-
sips -z 16 16 "${{ env.ICON_PNG }}" --out "$ICONSET_DIR/icon_16x16.png"
221-
sips -z 32 32 "${{ env.ICON_PNG }}" --out "$ICONSET_DIR/[email protected]"
222-
sips -z 32 32 "${{ env.ICON_PNG }}" --out "$ICONSET_DIR/icon_32x32.png"
223-
sips -z 64 64 "${{ env.ICON_PNG }}" --out "$ICONSET_DIR/[email protected]"
224-
sips -z 128 128 "${{ env.ICON_PNG }}" --out "$ICONSET_DIR/icon_128x128.png"
225-
sips -z 256 256 "${{ env.ICON_PNG }}" --out "$ICONSET_DIR/[email protected]"
226-
sips -z 256 256 "${{ env.ICON_PNG }}" --out "$ICONSET_DIR/icon_256x256.png"
227-
sips -z 512 512 "${{ env.ICON_PNG }}" --out "$ICONSET_DIR/[email protected]"
228-
sips -z 512 512 "${{ env.ICON_PNG }}" --out "$ICONSET_DIR/icon_512x512.png"
229-
sips -z 1024 1024 "${{ env.ICON_PNG }}" --out "$ICONSET_DIR/[email protected]"
230-
iconutil -c icns "$ICONSET_DIR" -o "$APP/Contents/Resources/icon.icns"
231-
rm -rf "$ICONSET_DIR"
218+
# 3) Copy icon files to Resources
219+
cp icon.icns "$APP/Contents/Resources/"
220+
cp Assets.car "$APP/Contents/Resources/"
232221
233222
# 4) Clean any stray xattrs
234223
xattr -rc "$APP"

Assets.car

2.31 MB
Binary file not shown.

icon.icns

891 KB
Binary file not shown.

icon.png

217 KB
Loading

0 commit comments

Comments
 (0)