Linux Flatpak: Difference between revisions

From PMDOWiki
m Flatpak: Cli commands don't work
IDK (talk | contribs)
link to github repo
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
PMDO can be installed via [https://en.wikipedia.org/wiki/Flatpak Flatpak]. This allows you to install PMDO on any Linux distribution (ideally) without needing to use the terminal. It also gives you a convenient way to update.
PMDO can be installed via [https://en.wikipedia.org/wiki/Flatpak Flatpak]. This allows you to install PMDO on any Linux distribution (ideally) without needing to use the terminal. It also gives you a convenient way to update.


=== Setting up Flatpak ===
== Setting up Flatpak ==
Flatpak must be installed on your distribution. This is the default on most, but not all distributions (notably not on Ubuntu). On the Steam Deck / SteamOS Flatpak is already setup. For other distributions, check the [https://flathub.org/setup Flathub setup] instructions. By following these you will also install the Flathub repository which allows you to install even more Linux apps.
Flatpak must be installed on your distribution. This is the default on most, but not all distributions (notably not on Ubuntu). On the Steam Deck / SteamOS Flatpak is already setup. For other distributions, check the [https://flathub.org/setup Flathub setup] instructions. By following these you will also install the Flathub repository which allows you to install even more Linux apps.


=== Adding the SkyTemple / PMDCollab Repo ===
== Adding the SkyTemple / PMDCollab Repo ==
Currently PMDO is not distributed via Flathub but via the SkyTemple Flatpak repository. To set it up download and open the following file:
Currently PMDO is not distributed via Flathub but via the SkyTemple Flatpak repository. To set it up download and open the following file:


Line 11: Line 11:
This should open a software app and ask you to add the repository.
This should open a software app and ask you to add the repository.


=== Installing PMDO ===
== Installing PMDO ==
Once the repository is installed, you can find PMDO by searching "PMDO" in your software app. Alternatively you can install it using this file (this still requires the repository to be set up):
Once the repository is installed, you can find PMDO by searching "PMDO" in your software app. Alternatively you can install it using this file (this still requires the repository to be set up):


[https://skytemple.org/build_deps/org.pmdcollab.pmdo.flatpakref Download Flatpak Appref]
[https://skytemple.org/build_deps/org.pmdcollab.pmdo.flatpakref Download Flatpak Appref]


=== Using the software center ===
== Using the software center ==
Now that you have setup Flatpak and PMDO you will be able to use the software center of your distribution to manage, update or uninstall PMDO. It might also auto-update it, or you can configure it to do so. The software center application is named differently based on your repo. It is the one that opened when you opened the file in the previous step. It may be named "Software", "Discover" or something similar.
Now that you have setup Flatpak and PMDO you will be able to use the software center of your distribution to manage, update or uninstall PMDO. It might also auto-update it, or you can configure it to do so. The software center application is named differently based on your repo. It is the one that opened when you opened the file in the previous step. It may be named "Software", "Discover" or something similar.


=== Accessing Files ===
== Accessing Files ==
Game files, such as saves and mods, are stored at "/home/<your name>/.var/app/org.pmdcollab.pmdo/config/org.pmdcollab/"
Game files, such as saves and mods, are stored at "/home/<your name>/.var/app/org.pmdcollab.pmdo/config/org.pmdcollab/".


=== Downgrading ===
=== Installing mods ===
You can place mod files at "/home/<your name>/.var/app/org.pmdcollab.pmdo/config/org.pmdcollab/PMDC/MODS/".
 
== Downgrading ==
Downgrading is usually a bit more involved. Software centers usually offer no direct way to downgrade, but it is still possible using the terminal.
Downgrading is usually a bit more involved. Software centers usually offer no direct way to downgrade, but it is still possible using the terminal.


Line 31: Line 34:
</syntaxhighlight>Replace "COMMIT" with the commit you noted down previously.
</syntaxhighlight>Replace "COMMIT" with the commit you noted down previously.


=== Full manual installation ===
== Full manual installation ==
If all else fails, you can download the [https://nightly.link/PMDCollab/PMDO-Flatpak/workflows/publish/main/org.pmdcollab.pmdo-x86_64.zip pure Flatpak files] directly. This does not require any prior setup of repositories, but also doesn't support automatic updates, etc.
If all else fails, you can download the [https://nightly.link/PMDCollab/PMDO-Flatpak/workflows/publish/main/org.pmdcollab.pmdo-x86_64.zip pure Flatpak files] directly. This does not require any prior setup of repositories, but also doesn't support automatic updates, etc.
The repo source can be found in [https://github.com/PMDCollab/PMDO-Flatpak]

Latest revision as of 22:13, 16 November 2024

PMDO can be installed via Flatpak. This allows you to install PMDO on any Linux distribution (ideally) without needing to use the terminal. It also gives you a convenient way to update.

Setting up Flatpak

Flatpak must be installed on your distribution. This is the default on most, but not all distributions (notably not on Ubuntu). On the Steam Deck / SteamOS Flatpak is already setup. For other distributions, check the Flathub setup instructions. By following these you will also install the Flathub repository which allows you to install even more Linux apps.

Adding the SkyTemple / PMDCollab Repo

Currently PMDO is not distributed via Flathub but via the SkyTemple Flatpak repository. To set it up download and open the following file:

Download Flatpak Repo

This should open a software app and ask you to add the repository.

Installing PMDO

Once the repository is installed, you can find PMDO by searching "PMDO" in your software app. Alternatively you can install it using this file (this still requires the repository to be set up):

Download Flatpak Appref

Using the software center

Now that you have setup Flatpak and PMDO you will be able to use the software center of your distribution to manage, update or uninstall PMDO. It might also auto-update it, or you can configure it to do so. The software center application is named differently based on your repo. It is the one that opened when you opened the file in the previous step. It may be named "Software", "Discover" or something similar.

Accessing Files

Game files, such as saves and mods, are stored at "/home/<your name>/.var/app/org.pmdcollab.pmdo/config/org.pmdcollab/".

Installing mods

You can place mod files at "/home/<your name>/.var/app/org.pmdcollab.pmdo/config/org.pmdcollab/PMDC/MODS/".

Downgrading

Downgrading is usually a bit more involved. Software centers usually offer no direct way to downgrade, but it is still possible using the terminal.

You can use the following command to list all versions of PMDO:

flatpak remote-info skytemple-stable org.pmdcollab.pmdo --log

Then, note the commit hash matching the version you need. The versions may not be named, use the date instead to find the release you need. Then to install an older version, run:

flatpak update --commit=COMMIT org.pmdcollab.pmdo

Replace "COMMIT" with the commit you noted down previously.

Full manual installation

If all else fails, you can download the pure Flatpak files directly. This does not require any prior setup of repositories, but also doesn't support automatic updates, etc.

The repo source can be found in [1]