This repository has been archived by the owner on Jul 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
snapcraft.yaml
80 lines (73 loc) · 2.41 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
name: upscayl
base: core22
version: 2.5.1
summary: Free and Open Source AI Image Upscaler
description: |
A Free and Open Source AI Image Upscaler
Upscayl is a cross-platform application built with the Linux-first philosophy.
This is not an official build.
Source: https://github.com/upscayl/upscayl
Snap-Source: https://github.com/nbuechner/upscayl-snap
grade: stable
confinement: strict
architectures:
- build-on: amd64
build-for: amd64
apps:
upscayl:
command: opt/Upscayl/upscayl --no-sandbox
plugs: [home, x11, desktop, removable-media, shared-memory, opengl ]
extensions: [ gnome ]
environment:
VK_ICD_FILENAMES: "/var/lib/snapd/lib/vulkan/icd.d/nvidia_icd.json:$SNAP/usr/share/vulkan/icd.d/radeon.x86_64.json:$SNAP/usr/share/vulkan/icd.d/intel_icd.x86_64.json"
# nvidia:
# command: opt/Upscayl/upscayl --no-sandbox
# plugs: [home, x11, desktop, removable-media, shared-memory, opengl ]
# extensions: [ gnome ]
# environment:
# __NV_PRIME_RENDER_OFFLOAD: "1"
# __GLX_VENDOR_LIBRARY_NAME: "nvidia"
# __VK_LAYER_NV_optimus: "NVIDIA_only"
# VK_ICD_FILENAMES: "/var/lib/snapd/lib/vulkan/icd.d/nvidia_icd.json"
plugs:
shared-memory:
private: true
parts:
main:
source: https://github.com/upscayl/upscayl/releases/download/v${SNAPCRAFT_PROJECT_VERSION}/upscayl-$SNAPCRAFT_PROJECT_VERSION-linux.deb
plugin: dump
source-type: deb
override-build: |
snapcraftctl build
stage-packages:
- libgbm1
- libgtk-3-0
- libxrandr2
- libnss3
- libnotify4
- libxss1
- libxtst6
- xdg-utils
- libatspi2.0-0
- libuuid1
- libsecret-1-0
- libappindicator3-1
- desktop-file-utils
- libvulkan1
- mesa-vulkan-drivers
lint:
ignore:
- library
layout:
/usr/share/vulkan:
symlink: $SNAP/usr/share/vulkan
/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libvulkan_intel.so:
symlink: $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libvulkan_intel.so
/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libvulkan_radeon.so:
symlink: $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libvulkan_lvp.so
/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libvulkan_lvp.so:
symlink: $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libvulkan_lvp.so
/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libGLX_nvidia.so.0:
symlink: $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libGLX_nvidia.so.0
/usr/share/libdrm:
bind: $SNAP/usr/share/libdrm