diff options
author | metamuffin <metamuffin@disroot.org> | 2024-09-22 14:55:12 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-09-22 14:55:12 +0200 |
commit | f6348d0b9a06a33cf062c0b1e8f75711474a25a3 (patch) | |
tree | 2570f83e0f3d78096f902d5ee8afd3662c048689 | |
parent | 2c34798c1d40c5037a138c901000d04dff212ad5 (diff) | |
download | hurrycurry-snap-f6348d0b9a06a33cf062c0b1e8f75711474a25a3.tar hurrycurry-snap-f6348d0b9a06a33cf062c0b1e8f75711474a25a3.tar.bz2 hurrycurry-snap-f6348d0b9a06a33cf062c0b1e8f75711474a25a3.tar.zst |
stuff
-rw-r--r-- | snap/snapcraft.yaml | 133 |
1 files changed, 106 insertions, 27 deletions
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index b14fe8e..0a38ca8 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -2,6 +2,11 @@ name: hurrycurry base: core24 version: "2.0.0" summary: Multiplayer co-op cooking game +license: AGPL-3.0-only +website: https://hurrycurry.metamuffin.org/ +issues: https://codeberg.org/hurrycurry/hurrycurry/issues +source-code: https://codeberg.org/hurrycurry/hurrycurry +title: Hurry Curry! description: | This is my-snap's description. You have a paragraph or two to tell the most important story about your snap. Keep it under 100 words though, @@ -12,44 +17,118 @@ grade: devel # must be 'stable' to release into candidate/stable channels confinement: devmode # use 'strict' once you have the right plugs and slots apps: - hurrycurry-server: - command: bin/hurrycurry-server + bash: + command: bin/bash + server: + command: bin/hurrycurry-server --data-dir $SNAP/usr/share/hurrycurry/data + plugs: + - network + - network-bind + hurrycurry: + command: bin/godot --main-pack $SNAP/usr/share/hurrycurry/client.pck + plugs: + - audio-playback + - desktop + - desktop-legacy + - joystick + - network + - opengl + - vulkan + - pulseaudio + - screen-inhibit-control + - wayland + - 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 + godot-editor: + plugin: dump + source: https://github.com/godotengine/godot/releases/download/4.3-stable/Godot_v4.3-stable_linux.x86_64.zip + organize: { "Godot_*": bin/godot } + stage: [bin/godot] + + godot-runtime: 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 - + stage-packages: + - libpulse0 + - libudev1 + - libx11-6 + - libxcursor1 + - libxi6 + - libxkbcommon0 + - libxinerama1 + - libxrandr2 + - libgl1-mesa-dri + - libfontconfig1 + - libwayland-client0 + - libwayland-cursor0 + metainfo: - plugin: nil + plugin: dump source: https://codeberg.org/hurrycurry/hurrycurry-dist-extra.git source-tag: v2.0.0 parse-info: [org.godotengine.Godot.metainfo.xml] - override-prime: | - cp org.metamuffin.hurrycurry.client.desktop $CRAFT_PART_INSTALL/ + prime: [org.metamuffin.hurrycurry.client.desktop] + + client: + plugin: nil + after: [godot-editor] + source: https://codeberg.org/hurrycurry/hurrycurry.git + 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 + organize: { "client.pck": usr/share/hurrycurry/client.pck } + prime: [usr/share/hurrycurry/client.pck] server: plugin: rust source: https://codeberg.org/hurrycurry/hurrycurry.git source-tag: v2.0.0 rust-path: [server] + + data: + plugin: dump + source: https://codeberg.org/hurrycurry/hurrycurry.git + source-tag: v2.0.0 + build-packages: [rustup] + build-snaps: [deno] + override-build: | + make data + mkdir -p $CRAFT_PART_INSTALL/data/{maps,recipes} + cp -v data/index.yaml $CRAFT_PART_INSTALL/data/index.yaml + cp -vr data/recipes/*.yaml $CRAFT_PART_INSTALL/data/recipes + 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] |