Redid makefile. Added icon

This commit is contained in:
2023-01-08 20:16:00 -08:00
parent e7ea766dda
commit 8573a4628a
3 changed files with 93 additions and 5 deletions

View File

@@ -1,6 +1,16 @@
PREFIX ?= /usr
make:
nim -d:ssl -d:release c toolbox.nim
install:
cp toolbox /usr/local/bin/
cp toolbox.desktop /usr/share/applications/
install -D -m 0755 ./toolbox $(PREFIX)/bin/toolbox
install -D -m 0644 ./toolbox.desktop $(PREFIX)/share/applications/toolbox.desktop
install -D -m 0644 resources/space.quietfeathers.toolbox.svg $(PREFIX)/share/icons/hicolor/scalable/apps/space.quietfeathers.toolbox.svg
gtk-update-icon-cache /usr/share/icons/hicolor
uninstall:
rm -f $(PREFIX)/local/bin/toolbox
rm -f $(PREFIX)/share/applications/toolbox.desktop
rm -f $(PREFIX)/share/icons/hicolor/scalable/apps/space.quietfeathers.toolbox.svg
gtk-update-icon-cache /usr/share/icons/hicolor

View File

@@ -0,0 +1,78 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="34.17503mm"
height="34.107254mm"
viewBox="0 0 34.17503 34.107254"
version="1.1"
id="svg5"
xml:space="preserve"
inkscape:export-filename="icon.svg"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"><sodipodi:namedview
id="namedview7"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
showgrid="false"
inkscape:zoom="3.659624"
inkscape:cx="-51.371398"
inkscape:cy="74.871079"
inkscape:window-width="3440"
inkscape:window-height="1371"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" /><defs
id="defs2"><linearGradient
inkscape:collect="always"
id="linearGradient2947"><stop
style="stop-color:#9822dd;stop-opacity:1;"
offset="0"
id="stop2943" /><stop
style="stop-color:#00c867;stop-opacity:1;"
offset="0.95645684"
id="stop2945" /></linearGradient><linearGradient
inkscape:collect="always"
xlink:href="#linearGradient2947"
id="linearGradient2949"
x1="20.2885"
y1="27.815269"
x2="31.770872"
y2="27.815269"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(0.02129986)" /></defs><g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-8.963471,-8.6948953)"><rect
style="fill:none;fill-opacity:1;stroke:#15181e;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
id="rect1301"
width="7.5842838"
height="5.5052404"
x="22.258844"
y="18.423426"
rx="0.88512045"
ry="1.0122524" /><rect
style="fill:#14171e;fill-opacity:1;stroke:none;stroke-width:1.4;stroke-opacity:1"
id="rect417"
width="21.052032"
height="13.563405"
x="15.52497"
y="21.385445"
rx="1"
ry="1" /><path
id="rect1192"
style="fill:url(#linearGradient2949);fill-opacity:1;stroke:none;stroke-width:0.5;stroke-linecap:round;stroke-linejoin:bevel;stroke-dasharray:none;stroke-opacity:1"
d="m 20.476721,27.65115 c -0.310878,0.525731 -0.17516,1.177141 0.304322,1.46067 l 1.017504,0.601675 c 0.479481,0.283529 1.115676,0.08857 1.426554,-0.437162 l 0.557129,-0.942172 6.794914,4.017997 1.215029,-2.054759 -6.794914,-4.017997 0.47811,-0.80854 c 0.310876,-0.52573 0.17516,-1.177141 -0.304321,-1.46067 l -1.017504,-0.601674 c -0.479481,-0.28353 -1.115679,-0.08857 -1.426555,0.43716 z" /></g></svg>

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

@@ -12,9 +12,6 @@ Name=toolbox
# A comment which can/will be used as a tooltip
Comment=A collection of useful tools
# The path to the folder in which the executable is run
Path=/usr/local/bin/toolbox
# The executable of the application, possibly with arguments.
Exec=toolbox
@@ -23,3 +20,6 @@ Terminal=false
# Describes the categories in which this entry should be shown
Categories=Utility;
# Icon
Icon=space.quietfeathers.toolbox