From 78c171d37f81bb0f2567390f4a2dbd8fcc7a8dfd Mon Sep 17 00:00:00 2001 From: Axetroy Date: Wed, 23 Mar 2022 00:24:56 +0800 Subject: [PATCH 1/4] Create Cask.toml --- Cask.toml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Cask.toml diff --git a/Cask.toml b/Cask.toml new file mode 100644 index 000000000..0d61bac56 --- /dev/null +++ b/Cask.toml @@ -0,0 +1,10 @@ +[package] +name = "github.com/svenstaro/miniserve" +bin = "miniserve" +repository = "https://github.com/svenstaro/miniserve" +description = """ +🌟 For when you really just want to serve some files over HTTP right now! +""" + +[darwin] +x86_64 = "https://github.com/svenstaro/miniserve/releases/download/v{version}/miniserve-v{version}-x86_64-apple-darwin" From 8fd470e35bae5bc31075a08225b37cba07a57036 Mon Sep 17 00:00:00 2001 From: Axetroy Date: Wed, 23 Mar 2022 00:29:33 +0800 Subject: [PATCH 2/4] Update Cask.toml --- Cask.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cask.toml b/Cask.toml index 0d61bac56..135e93f13 100644 --- a/Cask.toml +++ b/Cask.toml @@ -7,4 +7,4 @@ description = """ """ [darwin] -x86_64 = "https://github.com/svenstaro/miniserve/releases/download/v{version}/miniserve-v{version}-x86_64-apple-darwin" +x86_64 = { executable = "https://github.com/svenstaro/miniserve/releases/download/v{version}/miniserve-v{version}-x86_64-apple-darwin"} From b415b0d181eaf9b18f18021ec4f594e5ea376a67 Mon Sep 17 00:00:00 2001 From: Axetroy Date: Wed, 23 Mar 2022 00:52:54 +0800 Subject: [PATCH 3/4] Update Cask.toml --- Cask.toml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Cask.toml b/Cask.toml index 135e93f13..8c0396b04 100644 --- a/Cask.toml +++ b/Cask.toml @@ -8,3 +8,20 @@ description = """ [darwin] x86_64 = { executable = "https://github.com/svenstaro/miniserve/releases/download/v{version}/miniserve-v{version}-x86_64-apple-darwin"} +aarch64 = { executable = "https://github.com/svenstaro/miniserve/releases/download/v{version}/miniserve-v{version}-aarch64-apple-darwin"} + +[windows] +x86_64 = { executable = "https://github.com/svenstaro/miniserve/releases/download/v{version}/miniserve-v{version}-x86_64-pc-windows-msvc.exe"} + +[linux] +x86_64 = { executable = "https://github.com/svenstaro/miniserve/releases/download/v{version}/miniserve-v{version}-x86_64-unknown-linux-musl"} +arm = { executable = "https://github.com/svenstaro/miniserve/releases/download/v{version}/miniserve-v{version}-arm-unknown-linux-musleabihf"} +armv7 = { executable = "https://github.com/svenstaro/miniserve/releases/download/v{version}/miniserve-v{version}-armv7-unknown-linux-musleabihf"} +aarch64 = { executable = "https://github.com/svenstaro/miniserve/releases/download/v{version}/miniserve-v{version}-aarch64-unknown-linux-musl"} +mips = { executable = "https://github.com/svenstaro/miniserve/releases/download/v{version}/miniserve-v{version}-mips-unknown-linux-musl"} +mips64 = { executable = "https://github.com/svenstaro/miniserve/releases/download/v{version}/miniserve-v{version}-mips64-unknown-linux-gnuabi64"} +mips64el = { executable = "https://github.com/svenstaro/miniserve/releases/download/v{version}/miniserve-v{version}-mips64el-unknown-linux-gnuabi64"} +riscv64 = { executable = "https://github.com/svenstaro/miniserve/releases/download/v{version}/miniserve-v{version}-riscv64gc-unknown-linux-gnu"} + +[freebsd] +x86_64 = { executable = "https://github.com/svenstaro/miniserve/releases/download/v{version}/miniserve-v{version}-x86_64-unknown-freebsd" } From d0db0adde4884ff072ae577fedf0ae8feed0dfa4 Mon Sep 17 00:00:00 2001 From: Axetroy Date: Wed, 23 Mar 2022 00:57:12 +0800 Subject: [PATCH 4/4] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 719ed72bc..3d634bd40 100644 --- a/README.md +++ b/README.md @@ -276,6 +276,10 @@ Alternatively install with [Scoop](https://scoop.sh/): podman run -v /tmp:/tmp -p 8080:8080 --rm -it docker.io/svenstaro/miniserve /tmp +**With [Cask](https://github.com/axetroy/cask.rs):** Just run + + cask install github.com/svenstaro/miniserve + ## Shell completions If you'd like to make use of the built-in shell completion support, you need to run `miniserve