summarylogtreecommitdiffstats
path: root/justfile.patch
blob: d9ae4c6bdb437fd0c645e907a870bf5571b351d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
diff --unified --recursive --text a/justfile b/justfile
--- a/justfile	2025-02-03 09:43:39.477706886 -0700
+++ b/justfile	2025-02-03 10:11:41.955452848 -0700
@@ -1,5 +1,5 @@
 name := 'cosmic-ext-applet-caffeine'
-export APPID := 'net.tropicbliss.CosmicExtAppletCaffeine'
+appid := 'net.tropicbliss.CosmicExtAppletCaffeine'
 
 rootdir := ''
 prefix := '/usr'
@@ -11,10 +11,16 @@
 bin-src := 'target' / 'release' / name
 bin-dst := base-dir / 'bin' / name
 
-desktop := APPID + '.desktop'
+desktop := appid + '.desktop'
 desktop-src := 'res' / desktop
 desktop-dst := clean(rootdir / prefix) / 'share' / 'applications' / desktop
 
+icons-src := 'res'
+icons-dst := clean(rootdir / prefix) / 'share' / 'icons' / 'hicolor'
+
+icon-svg-src := icons-src / appid + '.svg'
+icon-svg-dst := icons-dst / 'scalable' / 'apps' / appid + '.svg'
+
 # Default recipe which runs `just build-release`
 default: build-release
 
@@ -33,7 +39,7 @@
 install:
     install -Dm0755 {{bin-src}} {{bin-dst}}
     install -Dm0644 {{desktop-src}} {{desktop-dst}}
-    sudo cp res/net.tropicbliss.CosmicExtAppletCaffeine.svg /usr/share/icons/hicolor/scalable/apps
+    install -Dm0644 {{icon-svg-src}} {{icon-svg-dst}}
 
 # Uninstalls installed files
 uninstall: