Skip to content

Commit

Permalink
Merge pull request #613 from ivan-hc/dev
Browse files Browse the repository at this point in the history
Include modules update.am, sync.am and clean.am in APP-MANAGER and merge 4 modules into one
  • Loading branch information
ivan-hc authored Jun 1, 2024
2 parents aabdc18 + 7ae7518 commit f861d8f
Show file tree
Hide file tree
Showing 17 changed files with 787 additions and 511 deletions.
357 changes: 318 additions & 39 deletions APP-MANAGER

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ ln -s /opt/am/APP-MANAGER /usr/local/bin/am || echo "WARNING: Something went wro
web_get "https://github.com/ivan-hc/AM/main/programs/$arch-apps" || exit 1

# DOWNLOAD MODULES
MODULES=$(curl -Ls https://api.github.com/repos/ivan-hc/AM/contents/modules | sed 's/[()",{}]/ /g; s/ /\n/g' | grep -o 'https.*raw.*modules.*am$')
MODULES=$(curl -Ls https://api.github.com/repos/ivan-hc/AM/contents/modules | sed 's/[()",{}]/ /g; s/ /\n/g' | grep -o 'https.*raw.*modules.*am$' | grep -v "sync\|update")
for module in $MODULES; do
for v in $module; do
cd /opt/am/modules || exit
Expand Down
50 changes: 0 additions & 50 deletions modules/clean.am

This file was deleted.

4 changes: 4 additions & 0 deletions modules/database.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env bash

############################################################################################
# THIS MODULE INCLUDES ALL THE ACTIONS INTENDED FOR THE MANAGEMENT OF LISTS AND SINGLE PAGES
############################################################################################

function _clean_lists_and_queries() {
# Remove references to URLs, "-a" elements and limit message length to a maximum of 80 characters in "-l" and "-q"
cut -c -81 | sed 's#http://[^ ]*##g' | sed 's#https://[^ ]*##g' | sed 's#ftp://[^ ]*##g' | sed 's/SITE://g' | sed 's/SOURCE://g'
Expand Down
4 changes: 4 additions & 0 deletions modules/devtools.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env bash

#####################################################################################
# THIS MODULE INCLUDES ALL ACTIONS INTENDED TO BE USED BY DEVELOPERS AND EXPERT USERS
#####################################################################################

case "$1" in
'neodb')
while [ -n "$1" ]; do
Expand Down
4 changes: 4 additions & 0 deletions modules/download.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env bash

#####################################################################################
# THIS MODULE ALLOWS YOU TO DOWNLOAD THE INSTALLATION SCRIPTS WITHOUT INSTALLING THEM
#####################################################################################

function _convert_to_appman_compatible_script() {
if grep -q -- "--convert" "$AMPATH"/.cache/download-args; then
if test -f "$APPMANCONFIG"/appman-config; then
Expand Down
4 changes: 4 additions & 0 deletions modules/files.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env bash

##########################################################################
# THIS MODULE ALLOWS YOU TO SEE THE MAIN INFORMATION ON THE INSTALLED APPS
##########################################################################

function _files_header() {
echo ""
echo $(echo "YOU HAVE INSTALLED "
Expand Down
4 changes: 4 additions & 0 deletions modules/help.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env bash

#########################################
# THIS MODULE ONLY SHOWS THE HELP MESSAGE
#########################################

function _help_head() {
printf '
_____ _____
Expand Down
4 changes: 4 additions & 0 deletions modules/install.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env bash

#############################################################################
# THIS MODULE IS USED TO INSTALL APPS FROM THE DATABASE OR FROM LOCAL SCRIPTS
#############################################################################

# Check if the installation script is a metapackage (example one of the 40+ kdegames scripts)
function _if_metapackage() {
for metapackage in $(echo "$METAPACKAGES"); do
Expand Down
4 changes: 4 additions & 0 deletions modules/launcher.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env bash

#########################################################################################################################
# THIS MODULE HELPS YOU INTEGRATE LOCAL APPIMAGES BY DRAG/DROP THEM INTO THE TERMINAL, LIKE ANY COMMON APPIMAGE ASSISTANT
#########################################################################################################################

function _launcher_appimage_extract() {
"$arg" --appimage-extract share/icons/*/*/* 1>/dev/null
"$arg" --appimage-extract usr/share/icons/*/*/* 1>/dev/null
Expand Down
Loading

0 comments on commit f861d8f

Please sign in to comment.