Skip to content

Commit f89ea52

Browse files
authored
Merge pull request #6 from mfat/development
updated to v3
2 parents 0af3f8d + 92ba309 commit f89ea52

File tree

5 files changed

+2330
-1463
lines changed

5 files changed

+2330
-1463
lines changed

data/io.github.mfat.systemdpilot.appdata.xml

Lines changed: 40 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -3,48 +3,44 @@
33
<id>io.github.mfat.systemdpilot</id>
44
<metadata_license>CC0-1.0</metadata_license>
55
<project_license>GPL-3.0-or-later</project_license>
6-
<runtime>org.gnome.Platform</runtime>
7-
<runtime-version>46</runtime-version>
8-
<sdk>org.gnome.Sdk</sdk>
9-
<command>systemd-pilot</command>
10-
<finish-args>
11-
<arg>--share=ipc</arg>
12-
<arg>--socket=fallback-x11</arg>
13-
<arg>--socket=wayland</arg>
14-
<arg>--device=dri</arg>
15-
<arg>--system-talk-name=org.freedesktop.systemd1</arg>
16-
<arg>--system-talk-name=org.freedesktop.login1</arg>
17-
<arg>--socket=session-bus</arg>
18-
<arg>--system-talk-name=org.freedesktop.PolicyKit1</arg>
19-
<arg>--socket=system-bus</arg>
20-
<arg>--filesystem=xdg-run/gvfsd</arg>
21-
<arg>--filesystem=xdg-config/gtk-4.0:ro</arg>
22-
<arg>--filesystem=xdg-config/gtk-3.0:ro</arg>
23-
</finish-args>
24-
<modules>
25-
<module>
26-
<name>systemd-pilot</name>
27-
<buildsystem>simple</buildsystem>
28-
<build-commands>
29-
<command>mkdir -p /app/lib/python3/dist-packages/systemd_pilot</command>
30-
<command>cp src/main.py /app/lib/python3/dist-packages/systemd_pilot/</command>
31-
<command>mkdir -p /app/bin</command>
32-
<command>echo '#!/usr/bin/env python3' > /app/bin/systemd-pilot</command>
33-
<command>echo 'import sys' >> /app/bin/systemd-pilot</command>
34-
<command>echo 'sys.path.append(\"/app/lib/python3/dist-packages\")' >> /app/bin/systemd-pilot</command>
35-
<command>echo 'from systemd_pilot.main import app' >> /app/bin/systemd-pilot</command>
36-
<command>echo 'app.run(None)' >> /app/bin/systemd-pilot</command>
37-
<command>chmod +x /app/bin/systemd-pilot</command>
38-
<command>install -Dm644 data/io.github.mfat.systemdpilot.desktop /app/share/applications/${FLATPAK_ID}.desktop</command>
39-
<command>install -Dm644 systemd-pilot.png /app/share/icons/hicolor/128x128/apps/${FLATPAK_ID}.png</command>
40-
</build-commands>
41-
<sources>
42-
<source>
43-
<type>git</type>
44-
<url>https://github.com/mfat/systemd-pilot.git</url>
45-
<branch>main</branch>
46-
</source>
47-
</sources>
48-
</module>
49-
</modules>
6+
<name>systemd Pilot</name>
7+
<summary>A graphical tool for managing systemd services</summary>
8+
9+
<description>
10+
<p>
11+
systemd Pilot is a graphical tool that allows you to manage systemd services both locally and remotely. Features include:
12+
</p>
13+
<ul>
14+
<li>Start, stop, restart, enable and disable services</li>
15+
<li>View service logs and details</li>
16+
<li>Remote service management via SSH</li>
17+
<li>Create new systemd services</li>
18+
<li>Dark/light theme support</li>
19+
</ul>
20+
</description>
21+
22+
<launchable type="desktop-id">io.github.mfat.systemdpilot.desktop</launchable>
23+
24+
<screenshots>
25+
<screenshot type="default">
26+
<caption>Main window showing service list</caption>
27+
<image>https://github.com/mfat/systemd-pilot/raw/main/screenshots/main.png</image>
28+
</screenshot>
29+
</screenshots>
30+
31+
<url type="homepage">https://github.com/mfat/systemd-pilot</url>
32+
33+
<provides>
34+
<binary>systemd-pilot</binary>
35+
</provides>
36+
37+
<releases>
38+
<release version="3.0.0" date="2024-03-14">
39+
<description>
40+
<p>Initial Flatpak release</p>
41+
</description>
42+
</release>
43+
</releases>
44+
45+
<content_rating type="oars-1.1" />
5046
</component>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[Desktop Entry]
22
Name=systemd Pilot
3-
Comment=Manage systemd services
3+
Comment=A graphical tool for managing systemd services locally and remotely
44
Exec=systemd-pilot
55
Icon=io.github.mfat.systemdpilot
66
Terminal=false
77
Type=Application
8-
Categories=System;
9-
StartupNotify=true
8+
Categories=System;Settings;
9+
Keywords=systemd;service;system;

io.github.mfat.systemdpilot.metainfo.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
<p>
1919
Quicly deploy and run a systemd service
2020
</p>
21-
<p>
22-
Filter by running state
23-
</p>
2421
<p>
2522
Start, Stop, Restart services, show status
2623
</p>
@@ -50,4 +47,4 @@
5047
<image>https://raw.githubusercontent.com/mfat/systemd-pilot/main/screenshots/main.png</image>
5148
</screenshot>
5249
</screenshots>
53-
</component>
50+
</component>

io.github.mfat.systemdpilot.yml

Lines changed: 77 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,98 @@
11
app-id: io.github.mfat.systemdpilot
22
runtime: org.gnome.Platform
3-
runtime-version: '46'
3+
runtime-version: '47'
44
sdk: org.gnome.Sdk
55
command: systemd-pilot
66

7-
metadata:
8-
license: GPL-3.0+ # or your chosen license
9-
description: A GTK4 systemd service manager
10-
urls:
11-
homepage: https://github.com/mfat/systemd-pilot
12-
bugtracker: https://github.com/mfat/systemd-pilot/issues
13-
donation: https://github.com/sponsors/mfat # if you have one
14-
157
finish-args:
168
- --share=ipc
179
- --socket=fallback-x11
1810
- --socket=wayland
19-
- --device=dri
20-
- --filesystem=host
2111
- --system-talk-name=org.freedesktop.systemd1
22-
- --system-talk-name=org.freedesktop.login1
23-
- --talk-name=org.freedesktop.systemd1
12+
- --talk-name=org.freedesktop.secrets
2413
- --filesystem=xdg-config/gtk-3.0:ro
25-
- --filesystem=xdg-documents
26-
- --talk-name=org.freedesktop.DBus
27-
- --system-talk-name=org.freedesktop.DBus
28-
- --socket=system-bus
29-
- --socket=session-bus
14+
- --filesystem=home/.ssh:ro
15+
- --filesystem=host
3016

3117
modules:
32-
- name: gnome-logs
33-
buildsystem: meson
34-
config-opts:
35-
- -Dman=false
18+
- name: python3-pycparser
19+
buildsystem: simple
20+
build-commands:
21+
- pip3 install --prefix=/app --no-deps pycparser-2.21.tar.gz
22+
sources:
23+
- type: file
24+
url: https://files.pythonhosted.org/packages/5e/0b/95d387f5f4433cb0f53ff7ad859bd2c6051051cebbb564f139a999ab46de/pycparser-2.21.tar.gz
25+
sha256: e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206
26+
27+
- name: python3-cffi
28+
buildsystem: simple
29+
build-commands:
30+
- pip3 install --prefix=/app --no-deps cffi-1.16.0.tar.gz
31+
sources:
32+
- type: file
33+
url: https://files.pythonhosted.org/packages/68/ce/95b0bae7968c65473e1298efb042e10cafc7bafc14d9e4f154008241c91d/cffi-1.16.0.tar.gz
34+
sha256: bcb3ef43e58665bbda2fb198698fcae6776483e0c4a631aa5647806c25e02cc0
35+
36+
- name: python3-cryptography
37+
buildsystem: simple
38+
build-commands:
39+
- pip3 install --prefix=/app --no-deps cryptography-41.0.7.tar.gz
3640
sources:
37-
- type: archive
38-
url: https://download.gnome.org/sources/gnome-logs/45/gnome-logs-45.0.tar.xz
39-
sha256: b28a06ea5c98bd17f2873b507f085b0ca0de9810136611f4f2eeb098614ece52
41+
- type: file
42+
url: https://files.pythonhosted.org/packages/ce/b3/13a12ea7edb068de0f62bac88a8ffd92cc2901881b391839851846b84a81/cryptography-41.0.7.tar.gz
43+
sha256: 13f93ce9bea8016c253b34afc6bd6a75993e5c40672ed5405a9c832f0d4a00bc
4044

41-
- name: gtksourceview5
42-
buildsystem: meson
43-
config-opts:
44-
- -Dgtk_doc=false
45-
- -Dvapi=false
45+
- name: python3-bcrypt
46+
buildsystem: simple
47+
build-commands:
48+
- pip3 install --prefix=/app --no-deps bcrypt-4.0.1.tar.gz
49+
sources:
50+
- type: file
51+
url: https://files.pythonhosted.org/packages/8c/ae/3af7d006aacf513975fd1948a6b4d6f8b4a307f8a244e1a3d3774b297aad/bcrypt-4.0.1.tar.gz
52+
sha256: 27d375903ac8261cfe4047f6709d16f7d18d39b1ec92aaf72af989552a650ebd
53+
54+
- name: python3-pynacl
55+
buildsystem: simple
56+
build-commands:
57+
- pip3 install --prefix=/app --no-deps PyNaCl-1.5.0.tar.gz
58+
sources:
59+
- type: file
60+
url: https://files.pythonhosted.org/packages/a7/22/27582568be639dfe22ddb3902225f91f2f17ceff88ce80e4db396c8986da/PyNaCl-1.5.0.tar.gz
61+
sha256: 8ac7448f09ab85811607bdd21ec2464495ac8b7c66d146bf545b0f08fb9220ba
62+
63+
- name: python3-paramiko
64+
buildsystem: simple
65+
build-commands:
66+
- pip3 install --prefix=/app --no-deps paramiko-2.12.0.tar.gz
67+
sources:
68+
- type: file
69+
url: https://files.pythonhosted.org/packages/1d/08/645bb57b1fd1954c0202c61c657d352bce24d36d565f35a8c5749b02f118/paramiko-2.12.0.tar.gz
70+
sha256: 376885c05c5d6aa6e1f4608aac2a6b5b0548b1add40274477324605903d9cd49
71+
72+
- name: python3-keyring
73+
buildsystem: simple
74+
build-commands:
75+
- pip3 install --prefix=/app --no-deps keyring-24.3.1.tar.gz
76+
sources:
77+
- type: file
78+
url: https://files.pythonhosted.org/packages/69/cd/889c6569a7e5e9524bc1e423fd2badd967c4a5dcd670c04c2eff92a9d397/keyring-24.3.1.tar.gz
79+
sha256: c3327b6ffafc0e8befbdb597cacdb4928465140a3c0c5f44e03b2b39a335933a
80+
81+
- name: python3-rich
82+
buildsystem: simple
83+
build-commands:
84+
- pip3 install --prefix=/app --no-deps rich-13.7.1.tar.gz
4685
sources:
47-
- type: archive
48-
url: https://download.gnome.org/sources/gtksourceview/5.8/gtksourceview-5.8.0.tar.xz
49-
sha256: 110dd4c20def21886fbf777298fe0ef8cc2ad6023b8f36c7424411a414818933
86+
- type: file
87+
url: https://files.pythonhosted.org/packages/a7/ec/4a7d80728bd429f7c0d4d51245287158a1516315cadbb146012439403a9d/rich-13.7.1.tar.gz
88+
sha256: 9be308cb1fe2f1f57d67ce99e95af38a1e2bc71ad9813b0e247cf7ffbcc3a432
5089

5190
- name: systemd-pilot
5291
buildsystem: simple
5392
build-commands:
54-
- mkdir -p /app/lib/python3/dist-packages/systemd_pilot
55-
- cp src/main.py /app/lib/python3/dist-packages/systemd_pilot/
56-
- mkdir -p /app/bin
57-
- echo '#!/usr/bin/env python3' > /app/bin/systemd-pilot
58-
- echo 'import sys' >> /app/bin/systemd-pilot
59-
- echo 'sys.path.append("/app/lib/python3/dist-packages")' >> /app/bin/systemd-pilot
60-
- echo 'from systemd_pilot.main import app' >> /app/bin/systemd-pilot
61-
- echo 'app.run(None)' >> /app/bin/systemd-pilot
62-
- chmod +x /app/bin/systemd-pilot
63-
- install -Dm644 data/io.github.mfat.systemdpilot.desktop /app/share/applications/${FLATPAK_ID}.desktop
64-
- install -Dm644 systemd-pilot.png /app/share/icons/hicolor/128x128/apps/${FLATPAK_ID}.png
65-
- install -Dm644 io.github.mfat.systemdpilot.metainfo.xml /app/share/metainfo/${FLATPAK_ID}.metainfo.xml
93+
- install -D src/main.py /app/bin/systemd-pilot
94+
- install -D data/io.github.mfat.systemdpilot.desktop /app/share/applications/io.github.mfat.systemdpilot.desktop
95+
- install -D data/io.github.mfat.systemdpilot.appdata.xml /app/share/metainfo/io.github.mfat.systemdpilot.appdata.xml
6696
sources:
67-
- type: git
68-
url: https://github.com/mfat/systemd-pilot.git
69-
branch: main
97+
- type: dir
98+
path: .

0 commit comments

Comments
 (0)