-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnet.astralvixen.geforceinfinity.yml
More file actions
83 lines (73 loc) · 2.8 KB
/
net.astralvixen.geforceinfinity.yml
File metadata and controls
83 lines (73 loc) · 2.8 KB
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
id: net.astralvixen.geforceinfinity
app-id: net.astralvixen.geforceinfinity
runtime: org.freedesktop.Platform
runtime-version: "24.08"
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.node20
command: run.sh
finish-args:
- --share=network
- --socket=x11
- --socket=wayland
- --filesystem=home
- --device=dri
- --socket=system-bus
# Add sandbox permissions
- --allow=devel
- --talk-name=org.freedesktop.Flatpak
- --env=ELECTRON_DISABLE_SANDBOX=1
- --filesystem=xdg-run/discord-ipc-0
- --filesystem=xdg-run/discord
# Add audio and microphone support
- --socket=pulseaudio
- --talk-name=org.freedesktop.portal.Desktop
- --talk-name=org.freedesktop.portal.Freedesktop
- --talk-name=org.freedesktop.portal.Audio
- --talk-name=org.freedesktop.portal.Camera
modules:
- name: geforce-infinity
buildsystem: simple
build-commands:
- |
export PATH=/usr/lib/sdk/node20/bin:$PATH
# Create directory structure
mkdir -p /app/bin
mkdir -p /app/share/geforce-infinity
mkdir -p /app/share/icons/hicolor/512x512/apps
mkdir -p /app/share/applications
# Copy application files
cp -r package.json node_modules dist /app/share/geforce-infinity/
# Install icon if available
if [ -f dist/assets/resources/infinitylogo.png ]; then
cp dist/assets/resources/infinitylogo.png /app/share/icons/hicolor/512x512/apps/net.astralvixen.geforceinfinity.png;
fi
# Create run script with sandbox workaround
cat > /app/bin/run.sh <<EOF
#!/bin/sh
cd /app/share/geforce-infinity
# Fix sandbox permissions
chmod 4755 ./node_modules/electron/dist/chrome-sandbox || true
# Run with sandbox disabled
exec ./node_modules/electron/dist/electron --no-sandbox dist/electron/main.js "\$@"
EOF
chmod +x /app/bin/run.sh
# Create desktop file
cat > /app/share/applications/net.astralvixen.geforceinfinity.desktop <<EOF
[Desktop Entry]
Encoding=UTF-8
Name=GeForce Infinity
Comment=Enhance your GeForce NOW application experience!
Terminal=false
Type=Application
Exec=run.sh
Icon=net.astralvixen.geforceinfinity
StartupWMClass=geforce infinity
Categories=Network;Game;
StartupNotify=false
Keywords=Game;Streaming;Nvidia;GeForce;NOW;GFN;Infinity;
MimeType=x-scheme-handler/geforceinfinity;
EOF
sources:
- type: dir
path: ./