mirror of
https://github.com/theupriser/steamify-cachyos.git
synced 2026-10-13 20:35:40 +02:00
fix: build the patched gamescope in the user's cache folder, not /tmp (a tmpfs in the installer's chroot)
Sync git.upriser.nl mirror / sync (push) Skipped
Sync git.upriser.nl mirror / sync (push) Skipped
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KkpbsMw4rQyBsxDG6ebHK2
This commit is contained in:
1 parent
5b5181f33e
commit
06ffc8bc8b
1 file changed
+3
-2
@@ -28,8 +28,9 @@ gsn_install_package() {
|
|||||||
gsn_package_installed && return 0
|
gsn_package_installed && return 0
|
||||||
info "Building the patched gamescope for NVIDIA (a few minutes)..."
|
info "Building the patched gamescope for NVIDIA (a few minutes)..."
|
||||||
sudo pacman -S --needed --noconfirm base-devel git || { err "Installing the build tools failed."; return 1; }
|
sudo pacman -S --needed --noconfirm base-devel git || { err "Installing the build tools failed."; return 1; }
|
||||||
local dir pkg
|
local dir pkg cache="${XDG_CACHE_HOME:-$HOME/.cache}/steamify"
|
||||||
dir="$(mktemp -d)" || return 1
|
# On disk, not /tmp: the installer's chroot has a tmpfs there (RAM), and the build is 1-2 GB.
|
||||||
|
mkdir -p "$cache" && dir="$(mktemp -d -p "$cache" gamescope-build.XXXXXX)" || return 1
|
||||||
patch_file gamescope-nvidia.PKGBUILD > "$dir/PKGBUILD" &&
|
patch_file gamescope-nvidia.PKGBUILD > "$dir/PKGBUILD" &&
|
||||||
patch_file gamescope-gbm-scanout.patch > "$dir/gamescope-gbm-scanout.patch" || {
|
patch_file gamescope-gbm-scanout.patch > "$dir/gamescope-gbm-scanout.patch" || {
|
||||||
err "Couldn't write the build files."
|
err "Couldn't write the build files."
|
||||||
|
|||||||
Reference in new issue
Block a user