fix: macos icon generation (#1457)

This commit is contained in:
NovaliX 2023-04-02 22:09:32 +00:00 committed by GitHub
parent 974619f5d8
commit 38ba585382
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -38,6 +38,10 @@
- imagemagick (for AppImage)
### <a id="dependencies-macos"></a>MacOS
- imagemagick
- png2icns (`npm install png2icns -g`)
- librsvg
### <a id="dependencies-windows"></a>Windows

View file

@ -33,8 +33,8 @@ VSCODE_PREFIX=""
build_darwin_main() { # {{{
if [ ! -f "${SRC_PREFIX}src/${QUALITY}/resources/darwin/code.icns" ]; then
rsvg-convert -w 700 -h 700 "icons/${QUALITY}/codium.svg" -o "code_logo.png"
composite "code_logo.png" -geometry +165+190 "icons/template_macos.png" "code_1024.png"
rsvg-convert -w 655 -h 655 "icons/${QUALITY}/codium.svg" -o "code_logo.png"
composite "code_logo.png" -gravity center "icons/template_macos.png" "code_1024.png"
convert "code_1024.png" -resize 512x512 code_512.png
convert "code_1024.png" -resize 256x256 code_256.png
convert "code_1024.png" -resize 128x128 code_128.png