Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mijorus committed Dec 25, 2023
0 parents commit cd77f69
Show file tree
Hide file tree
Showing 39 changed files with 1,249 additions and 0 deletions.
Empty file added .flatpak-builder/cache/.lock
Empty file.
4 changes: 4 additions & 0 deletions .flatpak-builder/cache/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[core]
repo_version=1
mode=bare-user-only
min-free-space-percent=0
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[Application]
name=it.mijorus.collector
runtime=org.gnome.Platform/x86_64/45
sdk=org.gnome.Sdk/x86_64/45
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a8afa8ecc2329ec964937db7f174af0d5b609e36dcc0d2e3d9efc6509fd1311d
1 change: 1 addition & 0 deletions .flatpak-builder/ccache/bin/c++
1 change: 1 addition & 0 deletions .flatpak-builder/ccache/bin/cc
1 change: 1 addition & 0 deletions .flatpak-builder/ccache/bin/g++
1 change: 1 addition & 0 deletions .flatpak-builder/ccache/bin/gcc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
957743db59d9fd5bd8d303b2aa4be6b5f44d00ae6727de2869fb34a332c04fef
10 changes: 10 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/*/**": true,
"**/.hg/store/**": true,
".flatpak/**": true,
"_build/**": true
}
}
675 changes: 675 additions & 0 deletions COPYING

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# collector

A description of this project.
130 changes: 130 additions & 0 deletions data/icons/hicolor/scalable/apps/it.mijorus.collector.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions data/icons/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
application_id = 'it.mijorus.collector'

scalable_dir = 'hicolor' / 'scalable' / 'apps'
install_data(
scalable_dir / ('@[email protected]').format(application_id),
install_dir: get_option('datadir') / 'icons' / scalable_dir
)

symbolic_dir = 'hicolor' / 'symbolic' / 'apps'
install_data(
symbolic_dir / ('@[email protected]').format(application_id),
install_dir: get_option('datadir') / 'icons' / symbolic_dir
)
8 changes: 8 additions & 0 deletions data/it.mijorus.collector.desktop.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Desktop Entry]
Name=collector
Exec=collector
Icon=it.mijorus.collector
Terminal=false
Type=Application
Categories=GTK;
StartupNotify=true
5 changes: 5 additions & 0 deletions data/it.mijorus.collector.gschema.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<schemalist gettext-domain="collector">
<schema id="it.mijorus.collector" path="/it/mijorus/collector/">
</schema>
</schemalist>
9 changes: 9 additions & 0 deletions data/it.mijorus.collector.metainfo.xml.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop">
<id>it.mijorus.collector.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0-or-later</project_license>
<description>
<p>No description</p>
</description>
</component>
36 changes: 36 additions & 0 deletions data/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
desktop_file = i18n.merge_file(
input: 'it.mijorus.collector.desktop.in',
output: 'it.mijorus.collector.desktop',
type: 'desktop',
po_dir: '../po',
install: true,
install_dir: get_option('datadir') / 'applications'
)

desktop_utils = find_program('desktop-file-validate', required: false)
if desktop_utils.found()
test('Validate desktop file', desktop_utils, args: [desktop_file])
endif

appstream_file = i18n.merge_file(
input: 'it.mijorus.collector.metainfo.xml.in',
output: 'it.mijorus.collector.metainfo.xml',
po_dir: '../po',
install: true,
install_dir: get_option('datadir') / 'metainfo'
)

appstreamcli = find_program('appstreamcli', required: false, disabler: true)
test('Validate appstream file', appstreamcli,
args: ['validate', '--no-net', '--explain', appstream_file])

install_data('it.mijorus.collector.gschema.xml',
install_dir: get_option('datadir') / 'glib-2.0' / 'schemas'
)

compile_schemas = find_program('glib-compile-schemas', required: false, disabler: true)
test('Validate schema file',
compile_schemas,
args: ['--strict', '--dry-run', meson.current_source_dir()])

subdir('icons')
38 changes: 38 additions & 0 deletions it.mijorus.collector.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"app-id" : "it.mijorus.collector",
"runtime" : "org.gnome.Platform",
"runtime-version" : "45",
"sdk" : "org.gnome.Sdk",
"command" : "collector",
"finish-args" : [
"--share=network",
"--share=ipc",
"--socket=fallback-x11",
"--device=dri",
"--socket=wayland"
],
"cleanup" : [
"/include",
"/lib/pkgconfig",
"/man",
"/share/doc",
"/share/gtk-doc",
"/share/man",
"/share/pkgconfig",
"*.la",
"*.a"
],
"modules" : [
{
"name" : "collector",
"builddir" : true,
"buildsystem" : "meson",
"sources" : [
{
"type" : "git",
"url" : "file:///home/lorenzo/Progetti"
}
]
}
]
}
20 changes: 20 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
project('collector',
version: '0.1.0',
meson_version: '>= 0.62.0',
default_options: [ 'warning_level=2', 'werror=false', ],
)

i18n = import('i18n')
gnome = import('gnome')



subdir('data')
subdir('src')
subdir('po')

gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true,
update_desktop_database: true,
)
Empty file added po/LINGUAS
Empty file.
6 changes: 6 additions & 0 deletions po/POTFILES
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
data/it.mijorus.collector.desktop.in
data/it.mijorus.collector.metainfo.xml.in
data/it.mijorus.collector.gschema.xml
src/main.py
src/window.py
src/window.ui
1 change: 1 addition & 0 deletions po/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
i18n.gettext('collector', preset: 'glib')
Empty file added src/__init__.py
Empty file.
7 changes: 7 additions & 0 deletions src/collector.gresource.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/it/mijorus/collector">
<file preprocess="xml-stripblanks">window.ui</file>
<file preprocess="xml-stripblanks">gtk/help-overlay.ui</file>
</gresource>
</gresources>
Loading

0 comments on commit cd77f69

Please sign in to comment.