Skip to content

Commit

Permalink
PPSSPP: latest release 1.16.6 build from source
Browse files Browse the repository at this point in the history
uses QT backend instead of SDL backend like was the case previously (potentially better theming)

also add auto-updater

work towards #2160
  • Loading branch information
theofficialgman committed Jan 7, 2024
1 parent b7286f6 commit e1cc0b4
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 42 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/updates/PPSSPP (PSP emulator).sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

webVer=$(get_release_raw hrydgard/ppsspp)
all_url="https://github.com/hrydgard/ppsspp/tree/$webVer"

source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
2 changes: 1 addition & 1 deletion apps/PPSSPP (PSP emulator)/credits
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Added to pi-apps by @ryanfortner (Github)
theofficialgman
4 changes: 2 additions & 2 deletions apps/PPSSPP (PSP emulator)/description
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
A PSP emulator that can run PSP games in full HD and can upscale textures also.

To run: Menu > Games > PPSSPP
To run in a terminal: ~/ppsspp/PPSSPPSDL
To run: Menu > Games > PPSSPPQt
To run in a terminal: PPSSPPQt
24 changes: 24 additions & 0 deletions apps/PPSSPP (PSP emulator)/install
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

version=v1.16.6

# remove deprecated files
rm -f ~/.local/share/applications/ppsspp.desktop ~/ppsspp

cd /tmp || error "Could not move to /tmp folder"
install_packages build-essential cmake libgl1-mesa-dev libsdl2-dev libsdl2-ttf-dev libvulkan-dev libfontconfig1-dev qt5-qmake \
qtsystems5-dev qtmultimedia5-dev qttools5-dev-tools libqt5opengl5-dev libcurl4-openssl-dev qtmultimedia5-dev libavcodec-dev \
libavdevice-dev libavfilter-dev libavformat-dev libavutil-dev libpostproc-dev libswresample-dev libswscale-dev || exit 1
git_clone https://github.com/hrydgard/ppsspp.git --recurse-submodules --shallow-submodules --depth=1 -b "$version" || exit 1
cd ppsspp || error "Could not move to ppsspp folder"
mkdir build || error "Could not make build folder"
cd build || error "Could not move to build folder"
# vulkan does not currently work properly (or at all) in SDL or QT backends on Linux https://github.com/hrydgard/ppsspp/pull/13054 https://github.com/hrydgard/ppsspp/issues/11628
# changing to vulkan in the UI does nothing and OpenGL continues to be used
# enabling it causes no compilation issues and it can not be fully disabled (always shows in the UI) so keep it enabled
cmake .. -DUSING_QT_UI=ON -DUSE_SYSTEM_FFMPEG=ON || error "cmake failed to configure the build"
make -j$(nproc) || error "Could not build ppsspp"
sudo make install || error "Could not install ppsspp"
# update timestamp of top level icon directory to signal icon cache to be refreshed
sudo touch /usr/local/share/icons/hicolor
rm -rf /tmp/ppsspp
19 changes: 0 additions & 19 deletions apps/PPSSPP (PSP emulator)/install-32

This file was deleted.

18 changes: 0 additions & 18 deletions apps/PPSSPP (PSP emulator)/install-64

This file was deleted.

6 changes: 4 additions & 2 deletions apps/PPSSPP (PSP emulator)/uninstall
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash

purge_packages || exit 1
rm -f ~/.local/share/applications/ppsspp.desktop || error "Failed to remove desktop entry!"

rm -rf ~/ppsspp || error "Failed to remove install directory!"
# remove deprecated files
rm -f ~/.local/share/applications/ppsspp.desktop ~/ppsspp

sudo rm -rf /usr/local/share/icons/hicolor/*/apps/ppsspp* /usr/local/share/mime/packages/ppsspp.xml /usr/local/share/applications/PPSSPPQt.desktop /usr/local/share/ppsspp /usr/local/bin/PPSSPPQt

0 comments on commit e1cc0b4

Please sign in to comment.