aboutsummaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
authorRubén Beltrán del Río <jj@r.bdr.sh>2026-01-17 12:27:11 +0100
committerRubén Beltrán del Río <jj@r.bdr.sh>2026-01-17 12:51:31 +0100
commit260a2d079dc500ba50b0f06a43b341fe65fd2d45 (patch)
tree186a19783a0c9562db0475c8386e543e695b5949 /Cargo.toml
parent88d6bf80f5cdbbb90ead197bd41a67eb8c44e50e (diff)
Add distribution logic
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml16
1 files changed, 13 insertions, 3 deletions
diff --git a/Cargo.toml b/Cargo.toml
index df3b9fe..b441a2a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -29,13 +29,23 @@ panic = "abort"
[package.metadata.generate-rpm]
assets = [
{ source = "target/release/map", dest = "/usr/bin/map", mode = "755" },
- # missing all the other files in resources
+ { source = "resources/logo.svg", dest = "/usr/share/icons/hicolor/scalable/apps/systems.tranquil.Map.svg", mode = "644" },
+ { source = "resources/systems.tranquil.Map.desktop", dest = "/usr/share/applications/systems.tranquil.Map.desktop", mode = "644" },
+ { source = "resources/systems.tranquil.Map.metainfo.xml", dest = "/usr/share/metainfo/systems.tranquil.Map.metainfo.xml", mode = "644" },
+ { source = "resources/systems.tranquil.Map.service", dest = "/usr/share/dbus-1/services/systems.tranquil.Map.service", mode = "644" },
+ { source = "resources/wmap.lang", dest = "/usr/share/gtksourceview-5/language-specs/wmap.lang", mode = "644" },
+ { source = "po/en_US/LC_MESSAGES/systems.tranquil.Map.mo", dest = "/usr/share/locale/en_US/LC_MESSAGES/systems.tranquil.Map.mo", mode = "644" },
]
[package.metadata.deb]
assets = [
- ["target/release/map", "/usr/bin/map", "755" ],
- # missing all the other files in resources
+ ["target/release/map", "/usr/bin/map", "755"],
+ ["resources/logo.svg", "/usr/share/icons/hicolor/scalable/apps/systems.tranquil.Map.svg", "644"],
+ ["resources/systems.tranquil.Map.desktop", "/usr/share/applications/systems.tranquil.Map.desktop", "644"],
+ ["resources/systems.tranquil.Map.metainfo.xml", "/usr/share/metainfo/systems.tranquil.Map.metainfo.xml", "644"],
+ ["resources/systems.tranquil.Map.service", "/usr/share/dbus-1/services/systems.tranquil.Map.service", "644"],
+ ["resources/wmap.lang", "/usr/share/gtksourceview-5/language-specs/wmap.lang", "644"],
+ ["po/en_US/LC_MESSAGES/systems.tranquil.Map.mo", "/usr/share/locale/en_US/LC_MESSAGES/systems.tranquil.Map.mo", "644"],
]
[lints.clippy]