v0.6.0
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(wasK4adblock-lean, should beK04adblock-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
versioncommand - 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 updateif on release channel orservice adblock-lean update -v latestif 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(wasK4adblock-lean, should beK04adblock-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