Skip to content

Commit e8abeda

Browse files
authored
Merge pull request #850 from ivan-hc/dev
"AM" 7.7: check "spooky" AppImages before installing them, plus "colored installation"
2 parents 7a8fb70 + 1c9d56c commit e8abeda

File tree

8 files changed

+255
-196
lines changed

8 files changed

+255
-196
lines changed

AM-INSTALLER

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ _install_am() {
2828
rm -f "$CACHEDIR"/INSTALL-AM.sh || true
2929
wget -q https://raw.githubusercontent.com/ivan-hc/AM/main/INSTALL -O "$CACHEDIR"/INSTALL-AM.sh && chmod a+x "$CACHEDIR"/INSTALL-AM.sh
3030
if command -v sudo >/dev/null 2>&1; then
31-
SUDOCOMMAND="sudo"
31+
SUDOCMD="sudo"
3232
elif command -v doas >/dev/null 2>&1; then
33-
SUDOCOMMAND="doas"
33+
SUDOCMD="doas"
3434
else
3535
echo 'ERROR: No sudo or doas found'
3636
exit 1
3737
fi
38-
$SUDOCOMMAND "$CACHEDIR"/INSTALL-AM.sh && rm -f "$CACHEDIR"/INSTALL-AM.sh
38+
$SUDOCMD "$CACHEDIR"/INSTALL-AM.sh && rm -f "$CACHEDIR"/INSTALL-AM.sh
3939
}
4040

4141
# INSTALL "AM" LOCALLY, AS "APPMAN"

APP-MANAGER

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
AMVERSION="7.6.2"
3+
AMVERSION="7.7"
44

55
# Determine main repository and branch
66
AMREPO="https://raw.githubusercontent.com/ivan-hc/AM/main"

README.md

Lines changed: 41 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55

66
| [<img src="https://github.com/user-attachments/assets/8f98fd3e-d94e-4b58-925d-e2ae8ff3a50c">](https://github.com/ivan-hc/AM) | [<img src="https://github.com/user-attachments/assets/2c3affbd-5f0d-4092-b12f-a12c2d9566bc">](https://github.com/ivan-hc/AM) | [<img src="https://github.com/user-attachments/assets/ebff562a-7692-4bbd-a5c5-68967a98a60b">](https://github.com/ivan-hc/AM) |
77
| - | - | - |
8-
| [<img src="https://github.com/user-attachments/assets/d0f15dd8-1175-4454-87b0-bf1b3e348e30">](https://github.com/ivan-hc/AM) | [<img src="https://github.com/user-attachments/assets/ca558c39-6354-4933-8c99-85f8fd1c3730">](https://github.com/ivan-hc/AM) | [<img src="https://github.com/user-attachments/assets/40d90713-316e-4df1-be9a-edd15827bc60">](https://github.com/ivan-hc/AM) |
8+
| [<img src="https://github.com/user-attachments/assets/deff2450-cb70-4d36-a8c8-6d80d16987ed">](https://github.com/ivan-hc/AM) | [<img src="https://github.com/user-attachments/assets/ca558c39-6354-4933-8c99-85f8fd1c3730">](https://github.com/ivan-hc/AM) | [<img src="https://github.com/user-attachments/assets/40d90713-316e-4df1-be9a-edd15827bc60">](https://github.com/ivan-hc/AM) |
9+
| [<img src="https://github.com/user-attachments/assets/ff38a91f-7698-4498-bd46-40f0a69e32f9">](https://github.com/ivan-hc/AM) | [<img src="https://github.com/user-attachments/assets/5886ba67-a337-435d-ac50-b280bc2cf7f8">](https://github.com/ivan-hc/AM) | [<img src="https://github.com/user-attachments/assets/dfbcf06a-17e2-4fef-b28c-777f4b55565e">](https://github.com/ivan-hc/AM) |
910

1011
</div>
1112

@@ -806,18 +807,51 @@ This section is committed to giving small demonstrations of each available optio
806807
- [Third-party databases for applications (NeoDB)](#third-party-databases-for-applications-neodb)
807808

808809
__________________________________________________________________________
809-
### Install applications
810-
Option `-i` or `install`, usage:
810+
## Install applications
811+
The option `-i` or `install` is the one responsible of the installation of apps or libraries.
812+
813+
### Install, normal behaviour
814+
This is the normal syntax:
811815
```
812816
am -i $PROGRAM
813817
```
814818
or
815819
```
816820
appman -i $PROGRAM
817821
```
818-
in this video I'll install AnyDesk and LXtask:
822+
in this video I'll install AnyDesk:
823+
824+
https://github.com/user-attachments/assets/62bc7444-8b1f-4db2-b23b-db7219eec15d
825+
826+
### Install, debug an installation script
827+
The "install.am" module contains some patches to disable long messages. You can see them with the suboption `--debug`:
828+
```
829+
am -i --debug $PROGRAM
830+
```
831+
or
832+
```
833+
appman -i --debug $PROGRAM
834+
```
835+
let test again the installation of AnyDesk using the `--debug` flag:
819836

820-
https://github.com/ivan-hc/AM/assets/88724353/c2e8b654-29d3-4ded-8877-f77ef11d58fc
837+
https://github.com/user-attachments/assets/9dd73186-37e2-4742-887e-4f98192bd764
838+
839+
### Install the "latest" stable release instead of the latest "unstable"
840+
By default, many installation scripts for apps hosted on github will point to the more recent generic release instead of "latest", which is normally used to indicate that the build is "stable". This is because upstream developers do not always guarantee a certain packaging format in "latest", sometimes they may only publish packages for Windows or macOS, so pointing to "latest" would not guarantee that any package for Linux will be installed.
841+
842+
On the other hand, if you know that the upstream developer will always guarantee a Linux package in "latest" and "AM" instead points to a potentially unstable development version (Alpha, Beta, RC...), this is the syntax to adopt:
843+
```
844+
am -i --force-latest $PROGRAM
845+
```
846+
or
847+
```
848+
appman -i --force-latest $PROGRAM
849+
```
850+
in this video I'll install "SqliteBrowser" using the `--force-latest` flag:
851+
852+
https://github.com/user-attachments/assets/ee29adfd-90e1-46f7-aed9-b9c410f68776
853+
854+
See also "[The script points to "releases" instead of downloading the latest stable](#the-script-points-to-releases-instead-of-downloading-the-latest-stable)".
821855

822856
------------------------------------------------------------------------
823857

@@ -1399,6 +1433,8 @@ sed -i 's#releases -O -#releases/latest -O -#g' /opt/$PROGRAM/AM-updater
13991433
am -u $PROGRAM
14001434
```
14011435

1436+
See also "[Install the "latest" stable release instead of the latest "unstable"](#install-the-latest-stable-release-instead-of-the-latest-unstable)".
1437+
14021438
------------------------------------------------------------------------
14031439
### Wrong download link
14041440
The reasons may be two:

0 commit comments

Comments
 (0)