forked from nsg/snap-minecraft
/
snapcraft.yaml
92 lines (86 loc) · 2.17 KB
/
snapcraft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: mc-installer
title: Minecraft Installer
adopt-info: launcher
summary: A simple installer for Minecraft - Java Edition
description: |
A simple installer for Minecraft - Java Edition.
license: MIT
website: https://minecraft.net
contact: https://github.com/kz6fittycent/mc-installer/issues
issues: https://github.com/kz6fittycent/mc-installer/issues
source-code: https://github.com/kz6fittycent/mc-installer
icon: snap/gui/mcinstaller.png
assumes:
- command-chain
base: core22
grade: stable
confinement: strict
compression: lzo
architectures:
- build-on: amd64
plugs:
dot-minecraft:
interface: personal-files
write:
- $HOME/.minecraft
apps:
mc-installer:
extensions:
- gnome
command: launch
command-chain:
- bin/homeishome-launch
plugs:
- network
- opengl
- audio-playback
- browser-support
- home
- dot-minecraft
- removable-media
environment:
PYTHONPATH: $SNAP_DESKTOP_RUNTIME/usr/lib/python3.8/site-packages
JAVA_HOME: $SNAP/usr/lib/jvm/java-17-openjdk-amd64/
__NV_PRIME_RENDER_OFFLOAD: 1
__GLX_VENDOR_LIBRARY_NAME: nvidia
parts:
launcher:
plugin: dump
source: scripts
override-pull: |
snapcraftctl pull
snapcraftctl set-version "$(git describe --tags | sed 's/^v//' | cut -d "-" -f1)"
homeishome-launch:
plugin: nil
stage-snaps:
- homeishome-launch
game:
plugin: nil
build-packages:
- openjdk-21-jre-headless
- ca-certificates-java
- ca-certificates
stage-packages:
- libglu1-mesa
- libswt-gtk-4-java
- python3-requests
- openjdk-21-jre-headless
- libxss1
- libgconf-2-4
- libcurl4
- x11-xserver-utils
- libflite1
- python3-gi
cleanup:
after:
- game
- launcher
plugin: nil
build-snaps:
- core22
- gnome-42-2204
override-prime: |
set -eux
for snap in "core22" "gnome-42-2204"; do # List all content-snaps and base snaps you're using here
cd "/snap/$snap/current" && find . -type f,l -exec rm -f "$SNAPCRAFT_PRIME/{}" \;
done