mfashby.net

Website mfashby.net
git clone git://code.mfashby.net:/mfashby.net
Log | Files | Refs | Submodules | README

zipdl.smd (1079B)


      1 ---
      2 .title = "zipdl",
      3 .author = "Martin Ashby",
      4 .date = @date("2024-05-28T20:18:54+01:00"),
      5 .layout = "single.shtml",
      6 ---
      7 
      8 A  program for downloading individual files from a remote ZIP file on a http server that supports [Range](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Range) requests. 
      9 
     10 ## why?
     11 This was an interesting learning exercise. 
     12 
     13 ## Download
     14 
     15 Binary releases:
     16 * [linux aarch64](https://dl.mfashby.net/zipdl/0.0.1/aarch64-linux-gnu/zipdl.xz) [checksum](https://dl.mfashby.net/zipdl/0.0.1/aarch64-linux-gnu/zipdl.xz.sha256)
     17 * [linux x86_64](https://dl.mfashby.net/zipdl/0.0.1/x86_64-linux-gnu/zipdl.xz) [checksum](https://dl.mfashby.net/zipdl/0.0.1/x86_64-linux-gnu/zipdl.xz.sha256)
     18 
     19 Download the appropriate file for your platform and the checksum, then check and extract:
     20 ```
     21 sha256sum -c zipdl.xz.sha256
     22 # result MUST be zipdl.xz: OK
     23 
     24 unxz zipdl.xz
     25 ```
     26 and run with -h for help
     27 ```
     28 ./zipdl -h
     29 ```
     30 
     31 To build from source, download the code, download [zig](https://ziglang.org/download/), and run `zig build` to produce a binary in zig-out/bin folder.