Skip to content

Commit

Permalink
chore(Makefile): update systemd-sysext build with new gamescope-sessi…
Browse files Browse the repository at this point in the history
…on dependency
  • Loading branch information
ShadowApex committed Sep 27, 2023
1 parent 4d1c952 commit f017119
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ dist/update.zip: build/metadata.json
# https://blogs.igalia.com/berto/2022/09/13/adding-software-to-the-steam-deck-with-systemd-sysext/
.PHONY: dist-ext
dist-ext: dist/opengamepadui.raw ## Create a systemd-sysext extension archive
dist/opengamepadui.raw: dist/opengamepadui.tar.gz $(CACHE_DIR)/opengamepadui-session.tar.gz $(CACHE_DIR)/RyzenAdj/build/ryzenadj
dist/opengamepadui.raw: dist/opengamepadui.tar.gz $(CACHE_DIR)/gamescope-session $(CACHE_DIR)/opengamepadui-session.tar.gz $(CACHE_DIR)/RyzenAdj/build/ryzenadj
@echo "Building redistributable systemd extension"
mkdir -p dist
rm -rf dist/opengamepadui.raw $(CACHE_DIR)/opengamepadui.raw
Expand All @@ -307,6 +307,10 @@ dist/opengamepadui.raw: dist/opengamepadui.tar.gz $(CACHE_DIR)/opengamepadui-ses
echo ID=$(SYSEXT_ID) > $(CACHE_DIR)/opengamepadui/usr/lib/extension-release.d/extension-release.opengamepadui
echo VERSION_ID=$(SYSEXT_VERSION_ID) >> $(CACHE_DIR)/opengamepadui/usr/lib/extension-release.d/extension-release.opengamepadui

@# Copy gamescope-session into the extension
cd $(CACHE_DIR) && tar xvfz gamescope-session.tar.gz
cp -r $(CACHE_DIR)/gamescope-session-main/usr/* $(CACHE_DIR)/opengamepadui/usr

@# Copy opengamepadui-session into the extension
cd $(CACHE_DIR) && tar xvfz opengamepadui-session.tar.gz
cp -r $(CACHE_DIR)/OpenGamepadUI-session-main/usr/* $(CACHE_DIR)/opengamepadui/usr
Expand All @@ -330,6 +334,10 @@ $(CACHE_DIR)/RyzenAdj/build/ryzenadj:
cd $(CACHE_DIR)/RyzenAdj/build && cmake -DCMAKE_BUILD_TYPE=Release .. && make


$(CACHE_DIR)/gamescope-session.tar.gz:
wget -O $@ https://github.com/ChimeraOS/gamescope-session/archive/refs/heads/main.tar.gz


$(CACHE_DIR)/opengamepadui-session.tar.gz:
wget -O $@ https://github.com/ShadowBlip/OpenGamepadUI-session/archive/refs/heads/main.tar.gz

Expand Down

0 comments on commit f017119

Please sign in to comment.