forked from nbuechner/upscayl-snap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
snapcraft.yaml
76 lines (70 loc) · 2.25 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
name: upscayl
base: core22
adopt-info: main
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/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, network ]
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"
plugs:
shared-memory:
private: true
parts:
main:
source: .
plugin: dump
override-build: |
version=$(wget -qO- https://api.github.com/repos/upscayl/upscayl/releases/latest | jq -r '.tag_name' | cut -c2-)
URL=https://github.com/upscayl/upscayl/releases/download/v${version}/upscayl-${version}-linux.deb
wget -q -O- $URL | dpkg -x - "$SNAPCRAFT_PART_INSTALL"
craftctl set version="$version"
craftctl default
build-packages:
- wget
- jq
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