-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #151 from Lin-Buo-Ren/implement-snap-packaging
Implement snap packaging, snaps are universal linux packages (#150)
- Loading branch information
Showing
5 changed files
with
134 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
# Snap packaging specific rules | ||
/snap/.snapcraft/ | ||
/parts/ | ||
/stage/ | ||
/prime/ | ||
|
||
/*.snap | ||
/*_source.tar.bz2 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Refer the Desktop Entry Specification on how to write this file: | ||
# https://specifications.freedesktop.org/desktop-entry-spec | ||
[Desktop Entry] | ||
Version=1.0 | ||
Type=Application | ||
Name=Mari0: Community Edition | ||
Comment=The open-source, community-driven counterpart to Alesan's Entities | ||
Exec=mari0-ce | ||
Icon=${SNAP}/meta/gui/icon.256px.scaled.png | ||
Categories=Game;ActionGame |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
# This is the maintainence launcher for the snap, make necessary runtime environment changes to make the snap work here. You may also insert security confinement/deprecation/obsoletion notice of the snap here. | ||
|
||
set \ | ||
-o errexit \ | ||
-o errtrace \ | ||
-o nounset \ | ||
-o pipefail | ||
|
||
#export IMPORTANT_ENVIRONMENT_VARIABLE=value | ||
|
||
# Finally run the next part of the command chain | ||
exec "${@}" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
%YAML 1.1 | ||
--- | ||
# Snapcraft Recipe for Mari0: Community Edition | ||
# ------------------------------ | ||
# This file is in the YAML data serialization format: | ||
# http://yaml.org | ||
# For the spec. of writing this file refer the following documentation: | ||
# * The snapcraft format | ||
# https://docs.snapcraft.io/the-snapcraft-format/8337 | ||
# * Snap Documentation | ||
# https://docs.snapcraft.io | ||
# * Topics under the doc category in the Snapcraft Forum | ||
# https://forum.snapcraft.io/c/doc | ||
# For support refer to the snapcraft section in the Snapcraft Forum: | ||
# https://forum.snapcraft.io/c/snapcraft | ||
name: mari0-ce | ||
title: 'Mari0: Community Edition' | ||
summary: A community-driven effort to fix and polish the latest version of Mari0:SE | ||
description: | | ||
_**The open-source, community-driven counterpart to Alesan's Entities**_ | ||
(If you don't know what this game is, it's classic Mario Bros. but with a portal gun. It's fun. Play it.) | ||
If you're looking for help or mappacks, or you made a mappack of your own, [the game's forum is here.](http://forum.stabyourself.net/viewforum.php?f=8&sid=22f68690172a445d290d953b52074c83) | ||
If you think you'd prefer Alesan's Entities, you can find it [Here.](http://forum.stabyourself.net/viewtopic.php?f=13&t=3636) (please don't leave us) | ||
icon: snap/gui/icon.256px.scaled.png | ||
license: WTFPL | ||
adopt-info: mari0-ce | ||
|
||
base: core18 | ||
confinement: strict | ||
grade: stable | ||
|
||
# Currently the love snap doesn't build in s390x architecture | ||
# https://bugs.launchpad.net/love-snap/+bug/1818424 | ||
architectures: | ||
- build-on: i386 | ||
- build-on: amd64 | ||
- build-on: armhf | ||
- build-on: arm64 | ||
- build-on: ppc64el | ||
|
||
parts: | ||
# Launcher programs to fix problems at runtime | ||
launchers: | ||
source: snap/local/launchers | ||
plugin: dump | ||
organize: | ||
'*-launch': bin/ | ||
|
||
mari0-ce: | ||
source: . | ||
override-pull: | | ||
snapcraftctl pull | ||
snapcraftctl set-version \ | ||
"$(git describe --always --dirty --tags)" | ||
plugin: dump | ||
organize: | ||
'*': mari0-ce/ | ||
|
||
love: | ||
plugin: nil | ||
stage-snaps: | ||
- love-brlin | ||
|
||
apps: | ||
mari0-ce: | ||
adapter: full | ||
command: bin/love $SNAP/mari0-ce | ||
command-chain: | ||
- bin/workaround-snap-arch-triplet-launch | ||
- bin/locales-launch | ||
- bin/love-launch | ||
- bin/mari0-ce-launch | ||
|
||
plugs: | ||
# For snaps with a graphical user interface: | ||
desktop: | ||
desktop-legacy: | ||
x11: | ||
unity7: | ||
wayland: | ||
|
||
# Storage access | ||
home: | ||
removable-media: # Non-A/C | ||
|
||
# Joystick access | ||
joystick: | ||
|
||
# Graphics rendering | ||
opengl: | ||
|
||
# Audio | ||
pulseaudio: | ||
|
||
# For inhibiting screensavor | ||
screen-inhibit-control: | ||
|
||
# For DLC download feature | ||
network: |