Skip to content

Commit 2ec2c34

Browse files
committed
Enhance Flatpak manifest by adding cleanup options and x-checker-data for SSH-Studio. Update installation process for ssh-studio script in meson.build to ensure proper permissions and path configuration.
1 parent 6d2ba94 commit 2ec2c34

File tree

3 files changed

+30
-6
lines changed

3 files changed

+30
-6
lines changed

data/ssh-studio.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env bash
2+
exec python3 -m ssh_studio.main "$@"

io.github.BuddySirJava.SSH-Studio.json

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,33 @@
2020
"config-opts": [
2121
"--prefix=/app"
2222
],
23+
"cleanup": [
24+
"/include",
25+
"/lib/pkgconfig",
26+
"/share/man",
27+
"/share/pkgconfig",
28+
"/share/gtk-doc",
29+
"/share/doc",
30+
"/share/devhelp",
31+
"*.la",
32+
"*.a"
33+
],
2334
"sources": [
2435
{
2536
"type": "git",
2637
"url": "https://gitlab.gnome.org/jwestman/blueprint-compiler.git",
2738
"tag": "v0.18.0"
2839
}
29-
]
40+
],
41+
"x-checker-data": {
42+
"type": "git",
43+
"url": "https://gitlab.gnome.org/jwestman/blueprint-compiler.git",
44+
"tag-pattern": "^v([\\d.]+)$"
45+
}
3046
},
3147
{
3248
"name": "ssh-studio",
3349
"buildsystem": "meson",
34-
"post-install": [
35-
"printf '#!/usr/bin/env bash\\nexec python3 -m ssh_studio.main \"$@\"\\n' > /app/bin/ssh-studio",
36-
"chmod +x /app/bin/ssh-studio"
37-
],
3850
"sources": [
3951
{
4052
"type": "git",
@@ -52,7 +64,12 @@
5264
"/share/devhelp",
5365
"*.la",
5466
"*.a"
55-
]
67+
],
68+
"x-checker-data": {
69+
"type": "git",
70+
"url": "https://github.com/BuddySirJava/SSH-Studio.git",
71+
"tag-pattern": "^v([\\d.]+)$"
72+
}
5673
}
5774
]
5875
}

meson.build

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ subdir('data')
2323
install_data(join_paths(meson.current_source_dir(), 'data', application_id + '.desktop'),
2424
install_dir: join_paths(get_option('datadir'), 'applications'))
2525

26+
install_data(join_paths(meson.current_source_dir(), 'data', 'ssh-studio.in'),
27+
rename: 'ssh-studio',
28+
install_mode: 'rwxr-xr-x',
29+
install_dir: join_paths(get_option('bindir')))
30+
2631
install_data(join_paths(meson.current_source_dir(), 'data', 'media', 'icon_256.png'),
2732
rename: application_id + '.png',
2833
install_dir: join_paths(get_option('datadir'), 'icons', 'hicolor', '256x256', 'apps'))

0 commit comments

Comments
 (0)