Skip to content

Commit

Permalink
Module: Include curl binary and bump version to 1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Burhanverse committed Jun 7, 2024
1 parent 9b5a8f2 commit 7899e87
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 11 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
Telegram:
https://t.me/burhanverse

### v1.6
- Include and use curl binary within the module as in case curl is missing in your system.

### v1.5
- Newly Added: Unified Hosts + fakenews + gambling + porn.

Expand Down
5 changes: 4 additions & 1 deletion customize.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#!/system/bin/sh

# Systemless Hosts by the open source loving GL-DP and all contributors;
# Consolidating and extending hosts files from several well-curated sources
# Consolidating and extending hosts files from several well-curated sources.
#
# set permissions to executables
chmod 0755 $MODPATH/host-installer/curl

install_hosts() {
. $MODPATH/addon/install.sh
Expand Down
Binary file added host-installer/curl
Binary file not shown.
2 changes: 1 addition & 1 deletion host-installer/uh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ui_print "- Unified Hosts Selected"
HOSTS_URL="https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts"
GIT_URL="https://github.com/StevenBlack/hosts"
ui_print "- Downloading latest hosts file from $GIT_URL"
curl -o $MODPATH/hosts $HOSTS_URL
$MODPATH/host-installer/curl -o $MODPATH/hosts $HOSTS_URL
if [ $? -ne 0 ]; then
ui_print "Error: Failed to download hosts file."
exit 1
Expand Down
2 changes: 1 addition & 1 deletion host-installer/uhfg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ui_print "- Unified Hosts + fakenews + gambling Selected"
HOSTS_URL="https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts"
GIT_URL="https://github.com/StevenBlack/hosts"
ui_print "- Downloading latest hosts file from $GIT_URL"
curl -o $MODPATH/hosts $HOSTS_URL
$MODPATH/host-installer/curl -o $MODPATH/hosts $HOSTS_URL
if [ $? -ne 0 ]; then
ui_print "Error: Failed to download hosts file."
exit 1
Expand Down
2 changes: 1 addition & 1 deletion host-installer/uhfgp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ui_print "- Unified Hosts + fakenews + gambling + porn Selected"
HOSTS_URL="https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts"
GIT_URL="https://github.com/StevenBlack/hosts"
ui_print "- Downloading latest hosts file from $GIT_URL"
curl -o $MODPATH/hosts $HOSTS_URL
$MODPATH/host-installer/curl -o $MODPATH/hosts $HOSTS_URL
if [ $? -ne 0 ]; then
ui_print "Error: Failed to download hosts file."
exit 1
Expand Down
2 changes: 1 addition & 1 deletion host-installer/uhfgps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ui_print "- Unified hosts + fakenews + gambling + porn + social Selected"
HOSTS_URL="https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts"
GIT_URL="https://github.com/StevenBlack/hosts"
ui_print "- Downloading latest hosts file from $GIT_URL"
curl -o $MODPATH/hosts $HOSTS_URL
$MODPATH/host-installer/curl -o $MODPATH/hosts $HOSTS_URL
if [ $? -ne 0 ]; then
ui_print "Error: Failed to download hosts file."
exit 1
Expand Down
2 changes: 1 addition & 1 deletion host-installer/uhfgs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ui_print "- Unified hosts + fakenews + gambling + social Selected"
HOSTS_URL="https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts"
GIT_URL="https://github.com/StevenBlack/hosts"
ui_print "- Downloading latest hosts file from $GIT_URL"
curl -o $MODPATH/hosts $HOSTS_URL
$MODPATH/host-installer/curl -o $MODPATH/hosts $HOSTS_URL
if [ $? -ne 0 ]; then
ui_print "Error: Failed to download hosts file."
exit 1
Expand Down
4 changes: 2 additions & 2 deletions module.prop
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
id=systemless_adblocker
name=Systemless Adblocker
version=1.5
versionCode=105
version=1.6
versionCode=106
author=burhanverse
description=An efficient adblocker based out of @gloeyisk's systemless-host module with no user interface & the lastest hosts from github@StevenBlack
updateJson=https://raw.githubusercontent.com/Burhanverse/systemless-adblocker/main/update.json
6 changes: 3 additions & 3 deletions update.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": "1.5",
"versionCode": 105,
"zipUrl": "https://github.com/Burhanverse/systemless-adblocker/releases/download/1.5/Systemless_Adblocker_V1.5.zip",
"version": "1.6",
"versionCode": 106,
"zipUrl": "https://github.com/Burhanverse/systemless-adblocker/releases/download/1.6/Systemless_Adblocker_V1.6.zip",
"changelog": "https://raw.githubusercontent.com/Burhanverse/systemless-adblocker/main/changelog.md"
}

0 comments on commit 7899e87

Please sign in to comment.