Skip to content

Commit 4664b0c

Browse files
authored
Merge pull request #781 from ivan-hc/dev
Add option "-e" or "extra" to install third-party apps, out of the database
2 parents 31fe789 + c5d2b80 commit 4664b0c

File tree

4 files changed

+238
-103
lines changed

4 files changed

+238
-103
lines changed

APP-MANAGER

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

3-
AMVERSION="7.1.1"
3+
AMVERSION="7.2"
44

55
# Determine main repository and branch
66
AMREPO="https://raw.githubusercontent.com/ivan-hc/AM/main"
@@ -446,6 +446,7 @@ function _generate_options_list() {
446446
clean
447447
downgrade
448448
download
449+
extra
449450
files
450451
install
451452
list
@@ -964,11 +965,11 @@ case "$1" in
964965
MODULE="sandboxes.am"
965966
_use_module "$@"
966967
;;
967-
'-i'|'install')
968+
'-i'|'install'|\
969+
'-e'|'extra')
968970
MODULE="install.am"
969971
_online_check
970972
_if_appman_mode_enabled
971-
_betatester_message_on
972973
_use_module "$@"
973974
;;
974975
'-t'|'template')

README.md

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ You can consult the entire **list of managed apps** at [**portable-linux-apps.gi
3434

3535
[Guides and tutorials](#guides-and-tutorials)
3636
- [Install applications](#install-applications)
37+
- [Install AppImages not listed in this database but available in other github repos](#install-appimages-not-listed-in-this-database-but-available-in-other-github-repos)
3738
- [List the installed applications](#list-the-installed-applications)
3839
- [List and query all the applications available on the database](#list-and-query-all-the-applications-available-on-the-database)
3940
- [Update all](#update-all)
@@ -422,11 +423,22 @@ See also "[How to update or remove apps manually](#how-to-update-or-remove-apps-
422423

423424
`-d {PROGRAM}`
424425

425-
`-d --convert {PROGRAM}`
426+
`-d --convert {PROGRAM}`
426427

427428
DESCRIPTION: Download one or more installation scripts to your desktop. With the option "--convert" its converted to a standalone local installer, but AM requires AppMan to be installed to add custom directory settings.
428429
___________________________________________________________________________
429430

431+
`-e`, `extra`
432+
433+
SYNOPSIS:
434+
435+
`-e {USER}/{PROJECT} {PROGRAM}`
436+
437+
`-e {USER}/{PROJECT} {PROGRAM} {KEYWORD}`
438+
439+
DESCRIPTION: Install AppImages from github.com, outside the database. This allows you to install, update and manage them all like the others. Where "user/project" can be the whole URL to the github repository, give a name to the program so that it can be used from the command line. Optionally, add an "univoque" keyword if multiple AppImages are listed.
440+
___________________________________________________________________________
441+
430442
`-f`, `files`
431443

432444
SYNOPSIS:
@@ -731,6 +743,7 @@ See also "[How to update or remove apps manually](#how-to-update-or-remove-apps-
731743
This section is committed to giving small demonstrations of each available option, with videos:
732744

733745
- [Install applications](#install-applications)
746+
- [Install AppImages not listed in this database but available in other github repos](#install-appimages-not-listed-in-this-database-but-available-in-other-github-repos)
734747
- [List the installed applications](#list-the-installed-applications)
735748
- [List and query all the applications available on the database](#list-and-query-all-the-applications-available-on-the-database)
736749
- [Update all](#update-all)
@@ -780,6 +793,47 @@ https://github.com/ivan-hc/AM/assets/88724353/c2e8b654-29d3-4ded-8877-f77ef11d58
780793

781794
------------------------------------------------------------------------
782795

796+
__________________________________________________________________________
797+
### Install AppImages not listed in this database but available in other github repos
798+
From version 7.2 its possible to install AppImages not listed in this database, thanks to the option `-e` or `extra`.
799+
800+
You need to add the URL to the github repo before the name you want to give to the AppImage (for command line usage, for example).
801+
802+
Optionally, you can add a "keyword" if more AppImages are listed in the same repo.
803+
804+
Usage:
805+
```
806+
am -e $USER/$PROJECT $PROGRAM
807+
am -e $USER/$PROJECT $PROGRAM $KEYWORD
808+
```
809+
or
810+
```
811+
appman -e $USER/$PROJECT $PROGRAM
812+
appman -e $USER/$PROJECT $PROGRAM $KEYWORD
813+
```
814+
in this video I'll install AnyDesk as "remote-desktop-client":
815+
816+
https://github.com/user-attachments/assets/aa546905-38da-48b5-bb10-658426e8372b
817+
818+
You can give whatever name you want to the apps (as long as they does not overlap with commands already existing on your system, be careful).
819+
820+
In this other example, I'll install an obsolete version of WINE AppImage, from a repo that lists more versions of the same app:
821+
1. the first attempt is without a keyword, so that the script picks the first AppImage in the list (for Debian Buster)
822+
2. in the second attempt I'll use the keyword "arch" to pick the Arch-based AppImage
823+
824+
https://github.com/user-attachments/assets/af00a5f2-f3fe-4616-899a-155cb31d2acd
825+
826+
As you can see, there are all the files needed by any app listed in this database, also if an installation script for them does not exists.
827+
828+
Apps installed this way will enjoy the same benefits as those that can already be installed from the database with the "`-i`" or "`install`" option [mentioned above](#install-applications), including updates and sandboxing.
829+
830+
------------------------------------------------------------------------
831+
832+
| [Back to "Guides and tutorials"](#guides-and-tutorials) | [Back to "Main Index"](#main-index) |
833+
| - | - |
834+
835+
------------------------------------------------------------------------
836+
783837
__________________________________________________________________________
784838
### List the installed applications
785839
Option `-f` or `files`, it shows the installed apps, the version, the size and the type of application:

modules/help.am

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,22 @@ function _help_body() {
9090
but AM requires AppMan to be installed to add custom directory settings.
9191
__________________________________________________________________________
9292
93+
-e, extra
94+
95+
SYNOPSIS: -e user/project {APPNAME}
96+
-e user/project {APPNAME} {KEYWORD}
97+
98+
DESCRIPTION: Install AppImages from github.com, outside the database.
99+
100+
This allows you to install, update and manage them all like the others.
101+
102+
Where "user/project" can be the whole URL to the github repository,
103+
104+
give a name to the program so that it can be used from the command line.
105+
106+
Optionally, add an "univoque" keyword if multiple AppImages are listed.
107+
__________________________________________________________________________
108+
93109
-f, files
94110
95111
SYNOPSIS: -f

0 commit comments

Comments
 (0)