You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was one of the very first approaches used to create this project. Before I started building AppImage packages myself, they were first compiled just like using any AUR-helper.
1102
1102
1103
-
The syntax seems simple, but you have to know what you're building.
1103
+
From version 7.1, the installation script for the AppImages is used, with the only difference that it points only to the version, while a second script will be downloaded, published separately, at [github.com/ivan-hc/AM/tree/main/appimage-bulder-scripts](https://github.com/ivan-hc/AM/tree/main/appimage-bulder-scripts), which will have the task of assembling the AppImage in the directory on the fly "tmp", during the installation process. When the second script has created the .AppImage file, the first script will continue the installation treating the created AppImage as a ready-made one downloaded from the internet.
1104
1104
1105
-
You'll need to decide what kind of AppImage you want to build on the fly, whether to include a custom AppRun, "libunionpreload", and detect system libraries.
1106
-
1107
-
It will be used as the Debian base, but you can manually modify the script to suit your needs.
1108
-
1109
-
In this example I'll create the script for Abiword with "AM" and I'll install it using AppMan:
Fun fact, up until version 7, this option included a unique template that installed and assembled the AppImage on the fly (see [this video](https://github.com/ivan-hc/AM/assets/88724353/6ae38787-e0e5-4b63-b020-c89c1e975ddd)). This method has been replaced as it is too pretentious for a process, assembly, which may instead require many more steps, too many to be included in both an installation script and an update script (AM-updater).
1112
1106
1113
1107
#### Option Two: "Archives and other programs"
1114
1108
Option two is very similar to option zero. What changes is the number of questions, which allow you to customize both the application's .desktop file and the way a program should be extracted.
This directory will contain scripts for building AppImage packages on the fly, where required.
2
+
3
+
Each script must have the name of the corresponding installation script, but with the ".sh" extension. For example:
4
+
```
5
+
/appimage-bulder-scripts/x86_64/calibre.sh
6
+
```
7
+
is used by
8
+
```
9
+
/programs/x86_64/calibre
10
+
```
11
+
It is assumed that all of the work for these scripts will be done during the installation process, in the "tmp" directory, so the scripts posted here will need to be able to compile and drop the AppImage into the same "tmp" directory. The rest of the installation process will handle the created AppImage as if it had been normally downloaded from the internet ready-made.
12
+
13
+
If you are a user of my tools, consider using [AppImaGen](https://github.com/ivan-hc/AppImaGen).
14
+
15
+
Try not to use [Archimage](https://github.com/ivan-hc/ArchImage), as build times are longer and more resource intensive.
16
+
17
+
If your AppImage creation script requires specific dependencies, please let me know with a PR.
18
+
19
+
TIP, creating AppImage on the fly can take time and resources, depending on the complexity of the program being compiled. It is highly suggested to publish the AppImages to a repository, using Github Actions, [as I do](https://github.com/ivan-hc#my-appimage-packages).
optzsync=$(grep -F 'if test -f /opt/$APP/*.zsync' ./"$arg"| wc -l)
159
155
if [ "$optzsync"== 0 ];then
160
-
echo' 💀 ERROR: YOU CANNOT INSTALL '"$(echo "\"$arg\""| tr '[:lower:]''[:upper:]')"' WITHOUT INSTALLING "ZSYNC"!';return 0
156
+
echo" 💀 ERROR: you cannot install \"$arg\" without installing \"zsync\"";return 0
161
157
else
162
-
echo -e ' ⚠️ WARNING: '"$(echo "\"$arg\""| tr '[:lower:]''[:upper:]')"' MAY NOT BE UPDATABLE WITHOUT "ZSYNC".\n\n THE APP WILL STILL BE INSTALLED, BUT INSTALLING "ZSYNC" IS RECOMMENDED!\n'
158
+
echo -e " ⚠️ WARNING: \"$arg\" may not be updatable without \"zsync\".\n\n The app will still be installed, but installing \"zsync\" is recommended! \n"
0 commit comments