diff --git a/README.md b/README.md index 086fc48..794d4ec 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,26 @@ # Bruno -A static site generator written in Clojure that uses Clojure for templating as well. +A static site generator written in Clojure that uses Clojure for templating as well thus being the perfect static site +generator for those who love Clojure. -More documentation coming soon. +## Install +### Locally + +```bash +curl -s https://raw.githubusercontent.com/askonomm/bruno/master/install.sh | bash -s +``` + +You can then run Bruno as `./bruno`, given that the Bruno executable is in the current workign directory. + +### Globally + +```bash +curl -s https://raw.githubusercontent.com/askonomm/bruno/master/install.sh | bash -s -- -g +``` + +You can then run Bruno as `bruno` from anywhere. + +## Usage + +To be written. diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..466960a --- /dev/null +++ b/install.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash + +if [ "$(uname)" == "Darwin" ]; then + curl -O -L https://github.com/askonomm/bruno/releases/latest/download/bruno-macos && \ + mv bruno-macos bruno && \ + chmod +x bruno +else + curl -O -L https://github.com/askonomm/bruno/releases/latest/download/bruno-linux && \ + mv bruno-linux bruno && \ + chmod +x bruno +fi + +while [[ "$#" -gt 0 ]]; do + case $1 in + -g|--global) global="true"; shift ;; + esac + shift +done + +if [ "$global" == "true" ]; then + sudo mv bruno /usr/local/bin/bruno +fi \ No newline at end of file diff --git a/project.clj b/project.clj index 9f6b80b..e1f19f0 100644 --- a/project.clj +++ b/project.clj @@ -14,7 +14,7 @@ [lein-shell "0.5.0"]] :aliases {"native" ["shell" - "native-image" "--report-unsupported-elements-at-runtime" "--initialize-at-build-time=." "--no-fallback" + "native-image" "--report-unsupported-elements-at-runtime" "--no-fallback" "-jar" "./target/uberjar/bruno.jar"]} :main bruno.core :min-lein-version "2.0.0"