aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Ashby <martin@ashbysoft.com>2023-10-07 23:43:58 +0100
committerMartin Ashby <martin@ashbysoft.com>2023-10-07 23:43:58 +0100
commit50c09b045ead69e32e1995db4e0cb5f06a1099db (patch)
tree29b786829315b8310125fbf178dbfcad7916ef8c
parent3b33d30759bd938bcf9cb495cf25194bbe362d00 (diff)
downloadmfashby.net-50c09b045ead69e32e1995db4e0cb5f06a1099db.tar.gz
mfashby.net-50c09b045ead69e32e1995db4e0cb5f06a1099db.tar.bz2
mfashby.net-50c09b045ead69e32e1995db4e0cb5f06a1099db.tar.xz
mfashby.net-50c09b045ead69e32e1995db4e0cb5f06a1099db.zip
Post on zipdl
-rw-r--r--content/posts/2023-10-07-zipdl.md27
1 files changed, 27 insertions, 0 deletions
diff --git a/content/posts/2023-10-07-zipdl.md b/content/posts/2023-10-07-zipdl.md
new file mode 100644
index 0000000..2488cc5
--- /dev/null
+++ b/content/posts/2023-10-07-zipdl.md
@@ -0,0 +1,27 @@
+---
+title: "Zipdl"
+date: 2023-10-07T23:28:16+01:00
+draft: false
+---
+
+I wrote a small 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. This was an interesting learning exercise.
+
+In case it's useful to anyone, the code is available at https://code.mfashby.net/zipdl/
+
+Binary releases:
+* [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)
+* [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)
+
+Download the appropriate file for your platform and the checksum, then check and extract:
+```
+sha256sum -c zipdl.xz.sha256
+# result MUST be zipdl.xz: OK
+
+unxz zipdl.xz
+```
+and run with -h for help
+```
+./zipdl -h
+```
+
+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.