Skip to content

Commit fe1f842

Browse files
author
Brendan Gray
committed
ci: resize macOS icon to 512x512 with sips
1 parent a5a734b commit fe1f842

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@ jobs:
8787
run: npm run build:renderer
8888

8989
- name: Convert icon for macOS
90-
run: sips -s format png icon.ico --out build/icon.png || cp icon.ico build/icon.png
90+
run: |
91+
mkdir -p build
92+
sips -s format png icon.ico --out build/icon_src.png 2>/dev/null || cp icon.ico build/icon_src.png
93+
sips -z 512 512 build/icon_src.png --out build/icon.png
9194
9295
- name: Build macOS DMG (x64 + arm64)
9396
run: npx electron-builder --mac --x64 --arm64 --config electron-builder.nosign.json

0 commit comments

Comments
 (0)