From 63034431b9fb8ec1c3198729a30786a5cd33b13b Mon Sep 17 00:00:00 2001 From: Conzer Date: Tue, 3 Dec 2024 13:36:11 -0500 Subject: [PATCH] Create the basic boilerplate for the Meson build --- README.md | 12 ++++++++++- data/app.hackclub.conzie.Jot.appdata.xml | 20 ++++++++++++++++++ data/app.hackclub.conzie.Jot.desktop | 11 ++++++++++ jot.flatpak.json | 27 ++++++++++++++++++++++++ meson.build | 14 ++++++++++++ 5 files changed, 83 insertions(+), 1 deletion(-) create mode 100644 data/app.hackclub.conzie.Jot.appdata.xml create mode 100644 data/app.hackclub.conzie.Jot.desktop create mode 100644 jot.flatpak.json create mode 100644 meson.build diff --git a/README.md b/README.md index 5124202..20e07ee 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,13 @@ # jot -Intuitive note taking for the elementary Desktop \ No newline at end of file +Intuitive note taking for the elementary Desktop + +# Building +Make sure you have the `elementary-sdk` package installed! +Get it done dirty with the normal Meson build commands: +`meson setup build` and +`meson compile -C build`, Or package with flatpak: +`flatpak-builder --user --install build-dir jot.flatpak.json` + +# The license is the GNU GPL V3. I forgor to put it in so ill do it later hehe + diff --git a/data/app.hackclub.conzie.Jot.appdata.xml b/data/app.hackclub.conzie.Jot.appdata.xml new file mode 100644 index 0000000..47b4f84 --- /dev/null +++ b/data/app.hackclub.conzie.Jot.appdata.xml @@ -0,0 +1,20 @@ + + + app.hackclub.conzie.Jot + Jot + An elegant notes application + +

+ Jot is a lightweight and elegant notes application. +

+

+ Features include: +

    +
  • Basic Text editing
  • +
  • Markdown support
  • +
  • Search and organization
  • +
+

+
+ app.hackclub.conzie.Jot.desktop +
\ No newline at end of file diff --git a/data/app.hackclub.conzie.Jot.desktop b/data/app.hackclub.conzie.Jot.desktop new file mode 100644 index 0000000..c8bcb15 --- /dev/null +++ b/data/app.hackclub.conzie.Jot.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=Jot +GenericName=Notes +Comment=Simple and elegant notes Application +Exec=Jot +Icon=app.hackclub.conzie.Jot +Terminal=false +Categories=Utility; +StartupNotify=true \ No newline at end of file diff --git a/jot.flatpak.json b/jot.flatpak.json new file mode 100644 index 0000000..478a40e --- /dev/null +++ b/jot.flatpak.json @@ -0,0 +1,27 @@ +{ + "id": "app.hackclub.conzie.Jot", + "runtime": "org.gnome.Platform", + "runtime-version": "44", + "sdk": "org.gnome.Sdk", + "command": "jot", + "finish-args": [ + "--share=network", + "--share=ipc", + "--filesystem=home" + ], + "modules": [ + { + "name": "jot", + "buildsystem": "meson", + "config-opts": ["-Dprefix=/app"], + "sources": [ + { + "type": "git", + "url": "https://git.hackclub.app/conzer12/jot.git", + "branch": "main" + } + ] + } + ] + +} \ No newline at end of file diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..ce8e7d7 --- /dev/null +++ b/meson.build @@ -0,0 +1,14 @@ +project('jot', 'vala', version: '0.1') + +gtk_dep = dependency('gtk4') +granite_dep = dependency('granite') + +executable( + 'jot', + ['src/jot.vala', 'src/note_manager.vala'], + dependencies: [gtk_dep, granite_dep], + install: true +) + +install_data('data/app.hackclub.conzie.Jot.desktop', install_dir: join_paths(datadir, 'applications')) +install_data('data/app.hackclub.conzie.Jot.appdata.xml', install_dir: join_paths(datadir, 'metainfo')) \ No newline at end of file