summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--snap/godot_profile.py34
-rw-r--r--snap/snapcraft.yaml78
3 files changed, 72 insertions, 41 deletions
diff --git a/.gitignore b/.gitignore
index d294450..c6c12f2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
*.snap
+/*.txt
diff --git a/snap/godot_profile.py b/snap/godot_profile.py
new file mode 100644
index 0000000..de971b7
--- /dev/null
+++ b/snap/godot_profile.py
@@ -0,0 +1,34 @@
+builtin_freetype = "yes"
+builtin_graphite = "yes"
+builtin_harfbuzz = "yes"
+builtin_libogg = "yes"
+builtin_libpng = "yes"
+builtin_libtheora = "yes"
+builtin_libvorbis = "yes"
+builtin_libvpx = "yes"
+builtin_libwebp = "yes"
+builtin_zlib = "yes"
+minizip = "no"
+module_bmp_enabled = "no"
+module_camera_enabled = "no"
+module_csg_enabled = "no"
+module_dds_enabled = "no"
+module_enet_enabled = "no"
+module_gltf_enabled = "no"
+module_gridmap_enabled = "no"
+module_jsonrpc_enabled = "no"
+module_ktx_enabled = "no"
+module_minimp3_enabled = "no"
+module_mobile_vr_enabled = "no"
+module_msdfgen_enabled = "no"
+module_multiplayer_enabled = "no"
+module_navigation_enabled = "no"
+module_openxr_enabled = "no"
+module_upnp_enabled = "no"
+module_vhacd_enabled = "no"
+module_webrtc_enabled = "no"
+module_webxr_enabled = "no"
+module_zip_enabled = "no"
+platform = "linuxbsd"
+production = "yes"
+udev = "no"
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
index 7974f9f..3cac6aa 100644
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -8,9 +8,9 @@ issues: https://codeberg.org/hurrycurry/hurrycurry/issues
source-code: https://codeberg.org/hurrycurry/hurrycurry
title: Hurry Curry!
description: |
- Hurry Curry! is a multiplayer game about cooking. Your goal is to run
- a restaurant and gain points by serving meals you've cooked.
- The game is completely free software, licenced AGPL 3.0 only.
+ Hurry Curry! is a multiplayer game about cooking. Your goal is to run
+ a restaurant and gain points by serving meals you've cooked.
+ The game is completely free software, licenced AGPL 3.0 only.
grade: devel
confinement: strict
@@ -20,8 +20,9 @@ layout:
bind: $SNAP/usr/share/libdrm
apps:
- # bash:
- # command: bin/bash
+ bash:
+ command: bin/bash
+
server:
command: bin/hurrycurry-server --data-dir $SNAP/usr/share/hurrycurry/data
plugs:
@@ -43,50 +44,53 @@ apps:
- x11
parts:
- # godot-editor:
- # plugin: nil
- # source: https://github.com/godotengine/godot/releases/download/4.3-stable/godot-4.3-stable.tar.xz
- # build-packages:
- # - build-essential
- # - libasound2-dev
- # - libgl1-mesa-dev
- # - libglu1-mesa-dev
- # - libpulse-dev
- # - libudev-dev
- # - libx11-dev
- # - libxcursor-dev
- # - libxi-dev
- # - libxinerama-dev
- # - libxrandr-dev
- # - pkg-config
- # - scons
- # override-build: |
- # scons platform=x11 use_lto=yes target=editor
- # organize:
- # bin/godot.*: bin/godot
- # stage:
- # - bin/godot
+ bash:
+ plugin: nil
+ override-build: |
+ cp /usr/bin/bash $CRAFT_PART_INSTALL/bash
+ organize: { bash: bin/bash }
+ prime: [bin/bash]
- godot-runtime:
+ godot-build-profile:
+ plugin: dump
+ source: .
+ source-type: local
+ organize: { "snap/godot_profile.py": godot_profile.py }
+
+ godot:
plugin: nil
+ after: [godot-build-profile]
source: https://github.com/godotengine/godot/releases/download/4.3-stable/godot-4.3-stable.tar.xz
build-packages:
- build-essential
- libasound2-dev
+ # - libfreetype-dev
- libgl1-mesa-dev
- libglu1-mesa-dev
+ # - libharfbuzz-dev
+ # - libogg-dev
- libpulse-dev
+ # - libtheora-dev
- libudev-dev
+ # - libvorbis-dev
+ # - libvpx-dev
+ # - libwebp-dev
- libx11-dev
- libxcursor-dev
- libxi-dev
- libxinerama-dev
- libxrandr-dev
+ # - libgraphite2-dev
+ # - zlib1g-dev
- pkg-config
- scons
override-build: |
- scons platform=linuxbsd use_lto=yes target=template_release
- organize: { "bin/godot.*": bin/godot }
+ scons profile=$CRAFT_STAGE/godot_profile.py target=editor
+ scons profile=$CRAFT_STAGE/godot_profile.py target=template_release
+ organize:
+ "bin/godot.linuxbsd.template_release.*": bin/godot
+ "bin/godot.linuxbsd.editor.*": bin/godot-editor
+ stage: [bin/godot, bin/godot-editor]
prime: [bin/godot]
# godot-editor:
@@ -122,15 +126,14 @@ parts:
client:
plugin: nil
- # after: [godot-editor]
+ after: [godot]
source: https://codeberg.org/hurrycurry/hurrycurry.git
stage-packages:
- libglu1-mesa
- build-snaps: [godot-4]
build-packages: [rustup]
override-build: |
make client
- GODOT_SILENCE_ROOT_WARNING=true godot-4 --headless --export-pack wasm32-unknown-unknown $CRAFT_PART_INSTALL/client.pck client/project.godot
+ GODOT_SILENCE_ROOT_WARNING=true $CRAFT_STAGE/bin/godot-editor --headless --export-pack wasm32-unknown-unknown $CRAFT_PART_INSTALL/client.pck client/project.godot
organize: { "client.pck": usr/share/hurrycurry/client.pck }
prime: [usr/share/hurrycurry/client.pck]
@@ -154,10 +157,3 @@ parts:
cp -vr data/maps/*.yaml $CRAFT_PART_INSTALL/data/maps
organize: { "data": usr/share/hurrycurry/data }
prime: [usr/share/hurrycurry/data]
-
- # bash:
- # plugin: nil
- # override-build: |
- # cp /usr/bin/bash $CRAFT_PART_INSTALL/bash
- # organize: { bash: bin/bash }
- # prime: [bin/bash]