Skip to content

Commit

Permalink
Create icns file
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexProgrammerDE committed Feb 17, 2024
1 parent 4a3e71e commit 65da34e
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion jpackage-mac.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
--mac-package-identifier net.pistonmaster.SoulFire
--icon src/main/resources/icons/icon.png
--icon src/main/resources/icons/icon.icns
9 changes: 9 additions & 0 deletions scripts/create-icons.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
#!/bin/bash

# Create icons for different platforms

# png
convert -version
convert -background transparent -density 1000 \
-resize 120x120 \
src/main/resources/icons/icon.svg \
src/main/resources/icons/icon.png

# ico
convert -background transparent -density 1000 \
-define icon:auto-resize -colors 256 \
src/main/resources/icons/icon.svg \
src/main/resources/icons/icon.ico

# icns
convert -background transparent -density 1000 \
-resize 1024x1024 \
src/main/resources/icons/icon.svg \
src/main/resources/icons/icon.icns
18 changes: 18 additions & 0 deletions src/main/resources/icons/icon.icns
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg width="1024" height="1024">
<g style="fill:black;fill-opacity:1;stroke:none;stroke-width:1;stroke-opacity:1;fill-rule:nonzero;">
<g style="fill:#3289BF;">
<rect x="0" y="0" width="120" height="120"/>
</g>
<g style="">
<g style="font-size:72;font-style:normal;font-weight:normal;font-stretch:normal;font-size:72;font-family:Ubuntu;fill:#ffffff;fill-opacity:1;stroke-width:6;">
<text x="8.16901" y="107.36"> </text>
<g style="stroke-width:6;">
<text x="8.16901" y="107.36">SF</text>
</g>
</g>
</g>
</g>
</svg>
Binary file modified src/main/resources/icons/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 65da34e

Please sign in to comment.