1- app-id : org.DolphinEmu .project-plus-dolphin
1+ app-id : org.projectplusgame .project-plus-dolphin
22branch : master
33runtime : org.kde.Platform
44runtime-version : 6.6
55sdk : org.kde.Sdk
6- command : project-plus-dolphin-wrapper
6+ command : project-plus-dolphin-wrapper.sh
77rename-desktop-file : project-plus-dolphin.desktop
88rename-icon : project-plus-dolphin
99finish-args :
@@ -107,15 +107,41 @@ modules:
107107 - -DCPACK_PACKAGE_CONTACT=Project Plus Development Team
108108 cleanup :
109109 - /share/man
110- post-install :
111- - install -D -t ${FLATPAK_DEST}/bin/ project-plus-dolphin-wrapper
112- - desktop-file-edit --set-key=Exec --set-value='/app/bin/project-plus-dolphin-wrapper'
113- /app/share/applications/project-plus-dolphin.desktop
114- - desktop-file-edit --set-key=Name --set-value='Project Plus Dolphin'
115- /app/share/applications/project-plus-dolphin.desktop
116110 sources :
117111 - type : git
118112 url : https://github.com/Motobug/Project-Plus-Dolphin.git
113+
114+ # Patches Data/user/Config/Dolphin.ini to set proper paths for Flatpak to find stuff
115+ - type : patch
116+ path : Distribution/flatpak/dolphinini.patch
117+
118+ # TODO: Add x-checker-data
119+ # Project Plus SD card
120+ # - type: file
121+ # url: https://github.com/jlambert360/FPM-AppImage/releases/download/v3.1.2/sd.tar.gz
122+ # sha256: 389e4025ed3e0a79a1d0646dcc97bbd204fdfad371be72f913f59aa172f531fd # This is the hash of the tar.gz file not the uncompressed
123+
124+ # TODO: Add x-checker-data
125+ # Project Plus .dol files and icon
126+ - type : archive
127+ url : https://github.com/jlambert360/FPM-AppImage/releases/download/v3.1.2/Launcher.tar.gz
128+ sha256 : 1b9dce2fb0eac3ad8cc809826b3b6bfd4ce30dbfc394eaa586e35dcd356fd189 # This is the hash of the tar.gz file not the uncompressed
129+ dest : Launcher
130+
131+ # TODO: Add x-checker-data
132+ # Project Plus ModPack that contains HD textures
133+ - type : archive
134+ url : https://github.com/jlambert360/PPlusReleases/releases/download/v3.1.2/Project+.v3.1.2.Modders.Pack.zip
135+ sha256 : 291549549a88617f8f72cf549023da9af154493b75da7a8192245ed98c101ba3 # This is the hash of the zip file not the uncompressed
136+ dest : ModPack
137+
138+ # Script that is ran everytime the final Flatpak starts
139+ - type : file
140+ path : Distribution/flatpak/project-plus-dolphin-wrapper.sh
141+
142+ # Metadata file for Flatpak repos
143+ - type : file
144+ path : Distribution/flatpak/com.projectplusgame.project-plus-dolphin.metainfo.xml
119145
120146 # detects whether dolphin is running in a flatpak sandbox
121147 # and makes it use xdg directories if it is.
@@ -131,3 +157,17 @@ modules:
131157 done
132158 project-plus-dolphin "$@"
133159 dest-filename : project-plus-dolphin-wrapper
160+ post-install :
161+ - |
162+ - install -D -t ${FLATPAK_DEST}/bin/ project-plus-dolphin-wrapper
163+ - desktop-file-edit --set-key=Exec --set-value='/app/bin/project-plus-dolphin-wrapper'
164+ /app/share/applications/project-plus-dolphin.desktop
165+ - desktop-file-edit --set-key=Name --set-value='Project Plus Dolphin'
166+ /app/share/applications/project-plus-dolphin.desktop
167+ - rm -r ${FLATPAK_DEST}/share/project-plus-dolphin/sys # Remove preinstalled sys directory
168+ - mv Data/Sys ${FLATPAK_DEST}/share/project-plus-dolphin/sys/ # Move Sys directory to correct location (only use without the -DLINUX_LOCAL_DEV=true flag set)
169+ # - tar --transform="s|sd.raw|WiiSD.raw|" -xf sd.tar.gz -C ${FLATPAK_DEST}/share/project-plus-dolphin/sys/Load/ # Extract, rename and move SD card to correct location
170+ - mv Launcher ${FLATPAK_DEST}/share/dolphin-emu/sys/Wii/ # Move Launcher directory to correct location
171+ - mkdir -p ${FLATPAK_DEST}/share/dolphin-emu/sys/Load/Textures # Make directory for HD textures
172+ - mv "ModPack/Full Quality HD Textures" ${FLATPAK_DEST}/share/dolphin-emu/sys/Load/Textures/RSBE01/ # Move HD Textures from ModPack to correct location
173+ - install -Dm644 com.projectplusgame.project-plus-dolphin.metainfo.xml -t ${FLATPAK_DEST}/share/metainfo/ # Install metainfo file
0 commit comments