Skip to content

Commit

Permalink
TODOs about snap
Browse files Browse the repository at this point in the history
  • Loading branch information
michaliskambi committed Feb 10, 2025
1 parent bd7a073 commit d2eead4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pack/snap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)):
Expand Down
7 changes: 7 additions & 0 deletions pack/snap/snapcraft.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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

0 comments on commit d2eead4

Please sign in to comment.