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
* Update install.am
- remove torsocks support
- use api.gh.pkgforge.dev in case api.github.com cannot be reached
- restore changes in the AM-updater not to overload api.gh.pkgforge.dev
* Update template.am
- remove torsocks support
- for previews, use api.gh.pkgforge.dev as a fallback if api.github.com is not reachable
* Update README.md
* Update appimageupdatetool (x86_64 and aarch64)
- This script allows you to choose between the improved fork and the official AppImage. The fork is provided by the pkgforge-dev/AppImageUpdate, with GH rate-limit-bypass & misc QOL changes.
* Update test-apps.yml
* Update APP-MANAGER
- remove torsocks support
- during updates, use api.gh.pkgforge.dev as a fallback if api.github.com is not reachable
- add new "$ALT_GH" variable
- made "$ALT_GH" an exportable variable
- added function to determine the number of apps coming from github.com
- determine the number of allowed api calls by subtracting the number of apps coming from github from the number of remaining api calls
- if the number of allowed api calls is less than 10, the proxy is activated
- reduce the limit of API calls allowed to 5, to not force the proxy
Copy file name to clipboardExpand all lines: README.md
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,7 +87,6 @@ To install "AM" you must first install the "core" dependencies from your package
87
87
- "`less`", to read the ever-longer lists;
88
88
- "`unzip`", to extract .zip packages;
89
89
- "`tar`", to extract .tar* packages;
90
-
- "`torsocks`", to connect to the TOR network;
91
90
- "`zsync`", required by very few programs and AppImages (although it is mentioned in all installation scripts, it is often disabled because the managed .zsync files are often broken, especially for apps hosted on github.com).
LASTDIR=$(ls -td "$APPSPATH"/*| head -1 | sed 's:.*/::')
231
+
[ -f"${LASTDIRPATH}"/AM-updater ] && sed -i "s#$ALT_GH#api.github.com#g""${LASTDIRPATH}"/AM-updater 2>/dev/null
231
232
if [ -f"${LASTDIRPATH}"/remove ];then
232
233
iftest -d "${LASTDIRPATH}"/tmp;then
233
234
echo" 💀 ERROR DURING INSTALLATION, REMOVED $APPNAME!"
@@ -259,20 +260,15 @@ _install_arg() {
259
260
_check_if_spooky_flag_exists ||return 1
260
261
_check_kind_of_installation_script ||return 1
261
262
_apply_patches
262
-
# Determine if Torsocks is needed
263
-
ifcommand -v torsocks 1>/dev/null;then
264
-
TORSOCKS="1"
265
-
fi
263
+
# Determine if the app is hosted on github
266
264
if grep -q "api.github.com" ./"$arg";then
267
-
GH_API_ALLOWED=$(curl -Ls $HeaderAuthWithGITPAT https://api.github.com/repos/ivan-hc/AM/releases/latest | sed 's/[()",{} ]/\n/g'| grep "^ivan-hc"| head -1)
268
-
[ -z"$GH_API_ALLOWED" ] && [ -z"$TORSOCKS" ] &&printf"💀 Cannot install \"%b\", you have reached GitHub API limit.\n\nInstall \"torsocks\" from your system package manager and retry! \n""$arg"| fold -sw 72 | sed 's/^/ /g; s/ ✖/✖/g'&&return 0
0 commit comments