Skip to content

Commit 1df59da

Browse files
First commit
0 parents  commit 1df59da

22 files changed

+1357
-0
lines changed

COPYING

+675
Large diffs are not rendered by default.
Loading
Loading

data/icons/meson.build

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
application_id = 'moe.nyarchlinux.scripts'
2+
3+
scalable_dir = join_paths('hicolor', 'scalable', 'apps')
4+
install_data(
5+
join_paths(scalable_dir, ('@0@.svg').format(application_id)),
6+
install_dir: join_paths(get_option('datadir'), 'icons', scalable_dir)
7+
)
8+
9+
symbolic_dir = join_paths('hicolor', 'symbolic', 'apps')
10+
install_data(
11+
join_paths(symbolic_dir, ('@0@-symbolic.svg').format(application_id)),
12+
install_dir: join_paths(get_option('datadir'), 'icons', symbolic_dir)
13+
)

data/meson.build

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
desktop_file = i18n.merge_file(
2+
input: 'moe.nyarchlinux.scripts.desktop.in',
3+
output: 'moe.nyarchlinux.scripts.desktop',
4+
type: 'desktop',
5+
po_dir: '../po',
6+
install: true,
7+
install_dir: join_paths(get_option('datadir'), 'applications')
8+
)
9+
10+
desktop_utils = find_program('desktop-file-validate', required: false)
11+
if desktop_utils.found()
12+
test('Validate desktop file', desktop_utils, args: [desktop_file])
13+
endif
14+
15+
appstream_file = i18n.merge_file(
16+
input: 'moe.nyarchlinux.scripts.appdata.xml.in',
17+
output: 'moe.nyarchlinux.scripts.appdata.xml',
18+
po_dir: '../po',
19+
install: true,
20+
install_dir: join_paths(get_option('datadir'), 'appdata')
21+
)
22+
23+
appstream_util = find_program('appstream-util', required: false)
24+
if appstream_util.found()
25+
test('Validate appstream file', appstream_util, args: ['validate', appstream_file])
26+
endif
27+
28+
install_data('moe.nyarchlinux.scripts.gschema.xml',
29+
install_dir: join_paths(get_option('datadir'), 'glib-2.0/schemas')
30+
)
31+
32+
compile_schemas = find_program('glib-compile-schemas', required: false)
33+
if compile_schemas.found()
34+
test('Validate schema file',
35+
compile_schemas,
36+
args: ['--strict', '--dry-run', meson.current_source_dir()])
37+
endif
38+
39+
subdir('icons')
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<component type="desktop">
3+
<id>moe.nyarchlinux.scripts.desktop</id>
4+
<metadata_license>CC0-1.0</metadata_license>
5+
<project_license>GPL-3.0-or-later</project_license>
6+
<description>
7+
<p>No description</p>
8+
</description>
9+
</component>
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[Desktop Entry]
2+
Name=nyarchscript
3+
Exec=nyarchscript
4+
Icon=moe.nyarchlinux.scripts
5+
Terminal=false
6+
Type=Application
7+
Categories=GTK;
8+
StartupNotify=true
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<schemalist gettext-domain="nyarchscript">
3+
<schema id="moe.nyarchlinux.scripts" path="/moe/nyarchlinux/scripts/">
4+
</schema>
5+
</schemalist>

meson.build

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
project('nyarchscript',
2+
version: '0.1.0',
3+
meson_version: '>= 0.59.0',
4+
default_options: [ 'warning_level=2', 'werror=false', ],
5+
)
6+
7+
i18n = import('i18n')
8+
gnome = import('gnome')
9+
10+
11+
12+
subdir('data')
13+
subdir('src')
14+
subdir('po')
15+
16+
gnome.post_install(
17+
glib_compile_schemas: true,
18+
gtk_update_icon_cache: true,
19+
update_desktop_database: true,
20+
)

moe.nyarchlinux.scripts.json

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"app-id" : "moe.nyarchlinux.scripts",
3+
"runtime" : "org.gnome.Platform",
4+
"runtime-version" : "43",
5+
"sdk" : "org.gnome.Sdk",
6+
"command" : "nyarchscript",
7+
"finish-args" : [
8+
"--share=network",
9+
"--share=ipc",
10+
"--socket=fallback-x11",
11+
"--device=dri",
12+
"--socket=wayland",
13+
"--talk-name=org.freedesktop.Flatpak"
14+
],
15+
"cleanup" : [
16+
"/include",
17+
"/lib/pkgconfig",
18+
"/man",
19+
"/share/doc",
20+
"/share/gtk-doc",
21+
"/share/man",
22+
"/share/pkgconfig",
23+
"*.la",
24+
"*.a"
25+
],
26+
"modules" : [
27+
{
28+
"name" : "nyarchscript",
29+
"builddir" : true,
30+
"buildsystem" : "meson",
31+
"sources" : [
32+
{
33+
"type" : "git",
34+
"url" : "file:///home/francesco/Progetti"
35+
}
36+
]
37+
}
38+
]
39+
}

po/LINGUAS

Whitespace-only changes.

po/POTFILES

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
data/moe.nyarchlinux.scripts.desktop.in
2+
data/moe.nyarchlinux.scripts.appdata.xml.in
3+
data/moe.nyarchlinux.scripts.gschema.xml
4+
src/main.py
5+
src/window.py
6+
src/window.ui

po/meson.build

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
i18n.gettext('nyarchscript', preset: 'glib')

src/__init__.py

Whitespace-only changes.

src/gtk/help-overlay.ui

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<interface>
3+
<object class="GtkShortcutsWindow" id="help_overlay">
4+
<property name="modal">True</property>
5+
<child>
6+
<object class="GtkShortcutsSection">
7+
<property name="section-name">shortcuts</property>
8+
<property name="max-height">10</property>
9+
<child>
10+
<object class="GtkShortcutsGroup">
11+
<property name="title" translatable="yes" context="shortcut window">General</property>
12+
<child>
13+
<object class="GtkShortcutsShortcut">
14+
<property name="title" translatable="yes" context="shortcut window">Show Shortcuts</property>
15+
<property name="action-name">win.show-help-overlay</property>
16+
</object>
17+
</child>
18+
<child>
19+
<object class="GtkShortcutsShortcut">
20+
<property name="title" translatable="yes" context="shortcut window">Quit</property>
21+
<property name="action-name">app.quit</property>
22+
</object>
23+
</child>
24+
</object>
25+
</child>
26+
</object>
27+
</child>
28+
</object>
29+
</interface>

0 commit comments

Comments
 (0)