Skip to content

Instantly share code, notes, and snippets.

@popey
Created April 3, 2019 20:17
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save popey/77ea8ae4ee2b595377e125c1c70a9c65 to your computer and use it in GitHub Desktop.
Save popey/77ea8ae4ee2b595377e125c1c70a9c65 to your computer and use it in GitHub Desktop.
Template snapcraft.yaml for Godot Engine games
name: godot-game
base: core18
version: '1.0'
summary: Godot Game
description: |
A simple game made in Godot
grade: stable
confinement: strict
parts:
godot-game:
plugin: dump
source: snap/local/gamefiles/
after: [desktop-glib-only]
stage-packages:
- libgl1-mesa-dri
- libglu1-mesa
- libgl1-mesa-glx
- libpulse0
- libxcursor1
- libxinerama1
- libxrandr2
- libxi6
- libasound2
desktop-glib-only:
build-packages:
- libglib2.0-dev
plugin: make
source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
source-subdir: glib-only
stage-packages:
- libglib2.0-bin
apps:
godot-game:
command: desktop-launch "$SNAP/GodotGame.x86_64"
environment:
LD_LIBRARY_PATH: "$LD_LIBRARY_PATH:/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio"
plugs:
- opengl
- network
- network-bind
- pulseaudio
- x11
- desktop
- joystick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment