Created
April 3, 2019 20:17
-
-
Save popey/bd9c30e81676d0853fffe8cf4532f39f to your computer and use it in GitHub Desktop.
Template snapcraft.yaml for Unity3D games.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: unitygame | |
version: "1.0" | |
summary: Unity Game | |
description: | | |
A simple game made in Unity. | |
base: core18 | |
confinement: strict | |
parts: | |
unity-game: | |
after: [desktop-gtk2] | |
plugin: dump | |
source: snap/local/gamefiles | |
stage-packages: | |
- libgl1-mesa-dri | |
- libglu1-mesa | |
- libgl1-mesa-glx | |
- libgles2-mesa | |
- libflac8 | |
- libxcursor1 | |
- libxi6 | |
- libxinerama1 | |
- libxrandr2 | |
- libxrender1 | |
- libasound2 | |
- libasyncns0 | |
- libogg0 | |
- libpulse0 | |
- libsndfile1 | |
- libtheora0 | |
- libvorbis0a | |
- libvorbisenc2 | |
- libvorbisfile3 | |
- libwebp6 | |
desktop-gtk2: | |
build-packages: | |
- build-essential | |
- libgtk2.0-dev | |
make-parameters: | |
- FLAVOR=gtk2 | |
plugin: make | |
source: https://github.com/ubuntu/snapcraft-desktop-helpers.git | |
source-subdir: gtk | |
stage-packages: | |
- libxkbcommon0 | |
- ttf-ubuntu-font-family | |
- dmz-cursor-theme | |
- light-themes | |
- adwaita-icon-theme | |
- gnome-themes-standard | |
- shared-mime-info | |
- libgtk2.0-0 | |
- libgdk-pixbuf2.0-0 | |
- libglib2.0-bin | |
- libgtk2.0-bin | |
- unity-gtk2-module | |
- locales-all | |
- libappindicator1 | |
- xdg-user-dirs | |
- ibus-gtk | |
- libibus-1.0-5 | |
apps: | |
mygame: | |
command: desktop-launch $SNAP/MyGame.x86_64 | |
environment: | |
LD_LIBRARY_PATH: "$SNAP/MyGame_Data/Plugins/x86_64:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio:$LD_LIBRARY_PATH" | |
plugs: | |
- x11 | |
- opengl | |
- network | |
- network-bind | |
- desktop | |
- desktop-legacy | |
- pulseaudio | |
- joystick |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment