From d2eead4911987d366b9c2d7d13b5da884a93dfe5 Mon Sep 17 00:00:00 2001 From: Michalis Kamburelis Date: Mon, 10 Feb 2025 03:59:01 +0100 Subject: [PATCH] TODOs about snap --- pack/snap/README.md | 5 +++++ pack/snap/snapcraft.yaml.template | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/pack/snap/README.md b/pack/snap/README.md index 6c81817..7ee16f5 100644 --- a/pack/snap/README.md +++ b/pack/snap/README.md @@ -4,6 +4,11 @@ TODO: The Snap packaging of Castle Model Viewer is in-progress. We plan to release castle-model-viewer and castle-model-converter, 2 separate Snap packages. The packages will be available on the Snap Store. +TODO: +- read https://snapcraft.io/docs/desktop-applications . +- how to make a desktop file , register MIME types outside of snap -- see what our install.sh does inside the snap. +- read https://snapcraft.io/docs/gpu-support + ## Building and testing Do this once (more information: [Snapcraft overview](https://snapcraft.io/docs/snapcraft-overview)): diff --git a/pack/snap/snapcraft.yaml.template b/pack/snap/snapcraft.yaml.template index 6a78250..5c58714 100644 --- a/pack/snap/snapcraft.yaml.template +++ b/pack/snap/snapcraft.yaml.template @@ -10,7 +10,10 @@ name: castle-model-viewer # it has FPC 3.2.2 we need ( https://packages.ubuntu.com/jammy/fpc ). base: core22 +# TODO: can we use "adopt" to do this "the Snap way"? +# https://snapcraft.io/docs/snapcraft-intermediate-example version: '${SNAP_VERSION}' + summary: Viewer for 3D and 2D models - glTF, X3D, VRML, IFC, Spine JSON and more # 79 char long summary description: | Viewer for all 3D and 2D models suported by Castle Game Engine: @@ -35,6 +38,7 @@ confinement: devmode # use 'strict' once you have the right plugs and slots # TODO: are freedesktop stuff (icons, mime types and assignments) set up by this? # test on clean system. +# TODO: gtk2 default theme is ugly. apps: castle-model-viewer: @@ -155,3 +159,6 @@ parts: - libgtk2.0-0 # TODO: test openal - libopenal1 + # Changes the default GTK2 theme to look more modern. + # TODO: didn't help. + - yaru-theme-gtk