Skip to content

Commit

Permalink
Update debian packaging (#75)
Browse files Browse the repository at this point in the history
- Update gschema and desktop files
- Update gitignore
  • Loading branch information
hsbasu authored Feb 5, 2024
1 parent 018dd7b commit 1dbb94c
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ usr/*
debian/theme-manager/*
debian/*debhelper*
*.mo

# snap packaging
*.snap
13 changes: 13 additions & 0 deletions data/schema/org.mamolinux.theme-manager.gschema.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<schemalist>
<schema id="org.mamolinux.theme-manager" path="/org/mamolinux/theme-manager/">
<child name="theme-settings" schema="org.mamolinux.theme-manager.ThemeSettings"/>
</schema>
<schema id="org.mamolinux.theme-manager.ThemeSettings" path="/org/mamolinux/theme-manager/theme-settings/">
<key name="last-changed" type="i">
<default>0</default>
<summary>Theme update time</summary>
<description>Last time when the theme was updated.</description>
</key>
</schema>
</schemalist>
1 change: 1 addition & 0 deletions data/theme-manager-autostart.desktop.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[Desktop Entry]
Name=Theme Manager Indicator
Comment=Start indicator for Theme Manager.
GenericName=Indicator to change theme automatically.
Exec=theme-manager --indicator
Icon=theme-manager
Terminal=false
Expand Down
1 change: 1 addition & 0 deletions data/theme-manager.desktop.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[Desktop Entry]
Name=Theme Manager
Comment=Very simple Python3-based GUI application to randomly choose and set different theme variants on linux.
GenericName=Change theme automatically.
Exec=theme-manager
Icon=theme-manager
Terminal=false
Expand Down
3 changes: 1 addition & 2 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ override_dh_install:
dh_install -O--buildsystem=pybuild
rm -rf debian/theme-manager/usr/lib/python*/dist-packages/ThemeManager/__pycache__
install -D -m 0644 debian/theme-manager.1 debian/theme-manager/usr/share/man/man1/theme-manager.1
install -D -m 0644 data/org.mamolinux.theme-manager.gschema.xml.in debian/theme-manager/usr/share/glib-2.0/schemas/org.mamolinux.theme-manager.gschema.xml
install -D -m 0644 data/theme-manager-autostart.desktop.in debian/theme-manager/etc/xdg/autostart/theme-manager-autostart.desktop
rm -f debian/theme-manager/usr/share/glib-2.0/schemas/gschemas.compiled

override_dh_auto_install:
dh_auto_install --destdir=$(CURDIR)/$(DEB_SOURCE)
dh_auto_install --destdir=$(CURDIR)/$(DEB_SOURCE) -O--buildsystem=pybuild

0 comments on commit 1dbb94c

Please sign in to comment.