Skip to content

1.2 - Support for binary Snapshots and logic optimizations

Choose a tag to compare

@xplshn xplshn released this 31 Mar 02:20
· 257 commits to master since this release
e36abf1
  • Support has been added for binary Snapshots, meaning, you can download a specific version of a program by specifying one of the snapshots of it that can be seen in dbin info:
]~/Documents/TrulyMine/dbin@ dbin search micro edit
[i] micro#github.com.zyedidia.micro - Modern and intuitive terminal-based text editor
]~/Documents/TrulyMine/dbin@ dbin add micro
▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▌ 100.0% | micro        
]~/Documents/TrulyMine/dbin@ dbin info micro | tail
        : HEAD-5ee7fb6-250129T171353-x86_64-linux [2.0.14]
        : HEAD-e4b0ad7-250131T175936-x86_64-linux 
        : HEAD-b432bb7-250201T094125-x86_64-linux [2.0.14]
        : HEAD-bf4156c-250208T161959-x86_64-linux [2.0.14]
        : HEAD-5a62a8e-250209T151943-x86_64-linux 
        : HEAD-c937479-250224T180102-x86_64-linux [2.0.14]
        : HEAD-272a308-250227T190330-x86_64-linux [NA-2025-02-27]
        : HEAD-3c68655-250301T135830-x86_64-linux [NA-2025-03-01]
        : HEAD-2ae9812-250304T201523-x86_64-linux [2.0.14]
        : HEAD-9835676-250308T140441-x86_64-linux [NA-2025-03-08]
]~/Documents/TrulyMine/dbin@ dbin add micro#github.com.zyedidia.micro:HEAD-9835676-250308T140441-
x86_64-linux
▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 100.0% | micro        
]~/Documents/TrulyMine/dbin@ 
  • dbin's repo index file generator (modMetadata) has been optimized, I realized that we didn't need the ghcr_pkg field nor the ghcr_blob fields, as we could simply make the DownloadURL start with oci:// to signify that the binary is hosted it ghcr. This results in a much smaller index file, and much faster parsing. A 500ms improvement in my netbook. (this change is retro-compatible, you don't need to update dbin in order to be benefited)
  • Consistency; install.go, fetch.go & findurl.go now use the []binaryEntry type. This resulted in shorter, more efficient code.

NOTE: I don't quite agree with how upstream handles Snapshots, it is a bit inconsistent IMO. But it is a really useful and great feature.
NOTE: The Readme.md has been updated, be sure to check it out :)

Thanks for using my software! I hope it helps you in your day to day computer shenanigans!