Skip to content

v0.6.0

Compare
Choose a tag to compare
@friendly-bits friendly-bits released this 23 Feb 19:40
· 195 commits to master since this release
fb47cce

This release fixes a few minor issues:

  • Fix adblock-lean not showing up in Startup in Luci on OpenWrt 24.10 and current OpenWrt snapshot (thanks OpenWrt forum user openwrter for reporting the issue).
  • Fix the symlink created in /etc/rc.d (was K4adblock-lean, should be K04adblock-lean)
  • Fix GNU utils not detected correctly during the same run when they are installed
  • Additional minor fixes and improvements

But mostly this release focuses on changing the code structure of adblock-lean, implementing proper versioning and enhancing the version update functionality.

The code is now split between the service file - /etc/init.d/adblock-lean and 2 library files - /usr/lib/adblock-lean/abl-lib.sh and /usr/lib/adblock-lean/abl-process.sh. This is mainly to make it easier to maintain and develop the project.

adblock-lean now supports 2 version update channels: release and snapshot. When updating from a previous version, the update channel is automatically set to release. When on this channel, changes to adblock-lean master branch will no longer trigger the update notification. Rather, adblock-lean will detect new released versions and notify users about them. Mostly for troubleshooting purposes, we implemented additional options which can be specified when issuing the command service adblock-lean update - you can learn more from the release details.

We also changed the version update mechanism - rather than downloading the raw scripts, tar archives are now fetched from our Github and then unpacked. This should improve the reliability of version updates.

adblock-lean now supports a new command - service adblock-lean version - which is self-explanatory.

This release also introduces the abl-install.sh script which can be used for initial adblock-lean installation. We updated the installation instructions in the README accordingly.

Details

  • Refactor into 3 scripts (adblock-lean, usr/lib/adblock-lean/abl-lib.sh, usr/lib/adblock-lean/abl-process.sh)
  • Add abl-install.sh
  • Implement versioning in scripts
  • Implement version command
  • start(), status(): print adblock-lean version
  • status(): check and print service enabled state
  • Implement support for update channels: 'release' and 'snapshot'
  • Update and install can fetch any of: latest released version (service adblock-lean update if on release channel or service adblock-lean update -v latest if not), any previously released version (service adblock-lean update -v v[version]), any version on any branch corresponding to a GH tag (service adblock-lean update -v tag=[tag]), latest snapshot on master (service adblock-lean update -v snapshot), any version corresponding to a commit on any branch (service adblock-lean update -v commit=[commit_hash])
  • Upon update from previous versions, set update channel to 'release'
  • When updating or installing, fetch and unpack tar archives rather than fetching raw files (should improve reliability)
  • Re-detect GNU utils after installing any of them
  • Fix the K symlink in /etc/rc.d (was K4adblock-lean, should be K04adblock-lean)
  • Fix adblock-lean not showing up in Startup in Luci on OpenWrt 24.10 and current OpenWrt snapshot (workaround for openwrt/packages#25963)
  • Minor optimizations in int2human() (suggested by Dantes on OpenWrt forum)
  • Additional minor fixes and improvements
  • Update the README

Full Changelog: v0.5.4...v0.6.0