Added icon for macOS

This commit is contained in:
RigoLigo 2022-05-28 19:34:36 +08:00
parent 6cb2fb15eb
commit ed03d6850f
3 changed files with 22 additions and 1 deletions

View File

@ -19,6 +19,8 @@ macos: {
/opt/homebrew/opt/icu4c/include
QT += gui-private
ICON = images/RedPandaIDE.icns
}
win32: VERSION = $${APP_VERSION}.0
@ -38,7 +40,7 @@ gcc {
}
msvc {
DEFINES += NOMINMAX
DEFINES += NOMINMAX
}
# You can make your code fail to compile if it uses deprecated APIs.

Binary file not shown.

View File

@ -0,0 +1,19 @@
#!/bin/bash
input_icon="devcpp.png"
output_dir="RedPandaIDE.iconset"
mkdir $output_dir
sips -z 16 16 $input_icon --out "${output_dir}/icon_16x16.png"
sips -z 32 32 $input_icon --out "${output_dir}/icon_16x16@2x.png"
sips -z 32 32 $input_icon --out "${output_dir}/icon_32x32.png"
sips -z 64 64 $input_icon --out "${output_dir}/icon_32x32@2x.png"
sips -z 128 128 $input_icon --out "${output_dir}/icon_128x128.png"
sips -z 256 256 $input_icon --out "${output_dir}/icon_128x128@2x.png"
sips -z 256 256 $input_icon --out "${output_dir}/icon_256x256.png"
sips -z 512 512 $input_icon --out "${output_dir}/icon_256x256@2x.png"
iconutil -c icns $output_dir
rm -R $output_dir