AppImage: Difference between revisions
No edit summary |
No edit summary |
||
Line 21: | Line 21: | ||
For other types of installation see [[Download|Download]]. | For other types of installation see [[Download|Download]]. | ||
== LabRPS AppImages == | == LabRPS AppImages == |
Revision as of 11:08, 9 August 2022
What is an AppImage?
Package once and run everywhere. Reach users on all major Linux desktop distributions.
AppImage is a "universal binary package" intended to distribute an application to any Linux distribution. Read more about it on the Appimage homepage and Wikipedia.
To run it, first make it executable, and then type the relative or full path.
chmod +x LabRPS_xxx-x86_64.AppImage ./LabRPS_xxx-x86_64.AppImage
For other types of installation see Download.
LabRPS AppImages
If the download links below do not work, please manually download the files from the expanded "Assets" section of the above link
Stable | Development |
---|---|
v0.001 | Weekly build |
Important Notes:
- Development happens daily and rapidly, the link for the most up-to-date AppImage is a moving target.
- The development link above should be up-to-date because it is updated via a script.
- Many users on the forum utilize the development version.
- It can be run on the same system in parallel with another version of LabRPS.
- Users use the dev version to take advantage of the latest features and bug fixes (since LabRPS has a long release cycle). They also use it to help test and find bugs to spur development and improvement of LabRPS.
Obligatory Word of Caution
For the most part the development version is stable but of course it's important to add the obligatory statement to use it at your own risk. Though most people that utilize backups and 'save often' do quite well.
Automatic updating
AppImage has a smart and economical way of updating. It calculates the difference between the new AppImage and the old one, and will only download the changes between their versions. In theory the user ends up downloading around 15% each time instead of an entirely new AppImage.
Automatic updating is done via several optional methods. Currently there are 4 methods, 2 through the graphical interface (GUI), and 2 through the command-line/terminal interface (CLI).
Experimental in-app updating
Thanks to the efforts of several key devs, there is an ongoing effort to integrate a feature that allows self-updating the AppImage within LabRPS itself. Starting from FC 0.000.21514 there now exists an AppImage section found via Edit → Preferences → AppImage. Please test this capability and report your experience to the forum discussion.
GUI method 1 (official)
This is the official AppImageUpdate GUI application.
- Download AppImageUpdate-x86_64.AppImage.
- Make it executable by right clicking on the file, going in to properties and "Run as an executable".
- Double click on the AppImage icon, a dialog box will appear and you'll be prompted to specify what AppImage you want to update.
- Specify the path to your existing AppImage.
- Once the AppImage is updated, press the button Run updated AppImage.
GUI method 2 (unofficial)
This is a sleeker 3rd-party unofficial version of AppImageUpdate named: AppImageUpdater. It is still in development (at the time of this wiki edit) but nevertheless, quite nice to use.
- Download AppImageUpdater-*-x86_64.AppImage
- Make it executable:
chmod +x AppImageUpdater*-x86_64.AppImage
- Run it:
source AppImageUpdater*-x86_64.AppImage
- Find your current LabRPS AppImage and drag-drop it on to the AppImageUpdater
Result: Follow the AppImageUpdater prompts
CLI method 1 (official)
Run the following instructions in your terminal
wget https://github.com/AppImage/AppImageUpdate/releases/download/continuous/appimageupdatetool-x86_64.AppImage chmod +x ./appimageupdatetool-x86_64.AppImage ./appimageupdatetool.AppImage path/to/old/LabRPS.AppImage chmod +x path/to/updated/LabRPS.AppImage ./path/to/updated/LabRPS.AppImage
Notes:
- The file names will be unique because of the version info is embedded in them. The above instructions are simplified for convenience.
- Run
./appimageupdatetool-x86_64.AppImage --help
to learn about functionality like--remove-old
,--overwrite
and--self-update
. - There is also an i386 version; see the AppImageUpdate release page.
Todo: share a script that can be added as an alias or cron job.
CLI method 2 (unofficial)
Similarly to the Graphical methods having an official and unofficial approaches to downloading AppImages, the same applies to the command line. This is a sleeker 3rd-party command line option to download AppImages
- Download appimageupdater-*-x86_64.AppImage
- Make it executable:
chmod +x appimageupdater*-x86_64.AppImage
- Run it:
source appimageupdater*-x86_64.AppImage /path/to/old/LabRPS-AppImage.AppImage
Result: Updates specified AppImage file if update exists
Experimental
Fixing AppImage zsync
It may happen that an AppImage won't update because it's target file changed in some way. Instead of downloading a whole new appimage, it's possible to rewrite the zsync file that is used by the AppImage to download the delta. More info can be found at https://github.com/antony-jr/appimage-update-info-writer.
This section needs more details.
Downloading via Bittorrent
An experimental feature that the LabRPS packaging team is exploring (thanks to the work of Antony-jr) is being able to download an appimage delta of LabRPS via bittorrent. The repository issue is at https://github.com/LabRPS/LabRPS-Bundle/issues/49
Developer Section
Note: the following sections are intended for developers
Unpacking AppImages
A very convenient aspect of LabRPS is that a majority of it is built in Python, which doesn't need to be manually compiled like C++. Essentially, a Python file can be modified, and upon restarting LabRPS those changes will be integrated into the application. A developer can quickly work on the latest LabRPS release using this technique and an AppImage. Moreover, using an AppImage doesn't modify your system's environment in any way, that is, nothing is installed and no environmental variables are modified.
Modifying AppImages
An AppImage embeds a file system in it with everything that is required to run the application. In order to modify it, the file system needs to be extracted.
./LabRPS_xxx.AppImage --appimage-extract cd squashfs-root/
Now open the required Python source files in your preferred code editor, modify them, and save them. Then run the application.
./AppRun
Repackaging AppImages
If you've modified the code, and now want to re-package the AppImage with your latest changes, use the appimagetool-x86_64 tool on the extracted file system.
cd .. wget "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage" chmod +x appimagetool-x86_64.AppImage ./appimagetool-x86_64.AppImage squashfs-root
Personalized AppImages
Thanks to the work of realthunder, author of App Link and Assembly3 Workbench, it is possible to build custom AppImages using a set of scripts.
This makes it very convenient to release images for a specific branch of the source code for others to test. Although AppImages only work on Linux, realthunder's scripts make it possible to generate AppImages also on Windows and MacOS.
The repository for these scripts is at realthunder/LabRPSMakeImage. Please read the Readme.md for more details.
Related
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, AppImage
- Basics: About LabRPS, Interface, RPS Objects, Object name, Preferences, Workbenches, Document structure, Properties, Help LabRPS, Donate
- Hubs: User hub, Power users hub, Developer hub