diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..12a69d8 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,9 @@ +# Set default behavior to automatically normalize line endings. +* text=auto + +# Force bash scripts to always use lf line endings so that if a repo is accessed +# in Unix via a file share from Windows, the scripts will work. +*.sh text eol=lf + +# Likewise, force cmd and batch scripts to always use crlf +*.cmd text eol=crlf diff --git a/README.md b/README.md index ebcfa48..d72edb5 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Get Codex -### Linux and macOS +### Linux, macOS and Windows (msys2) ```shell # latest version @@ -19,10 +19,37 @@ curl -s https://get.codex.storage/install.sh | INSTALL_CIRDL=true bash ```shell # codex and cirdl with required libraries on Windows with msys2 -curl -s https://get.codex.storage/install.sh | WINDOWS_LIBS=true INSTALL_CIRDL=true bash +curl -s https://get.codex.storage/install.sh | INSTALL_CIRDL=true WINDOWS_LIBS=true bash ``` ```shell # help curl -s https://get.codex.storage/install.sh | bash -s help ``` + +### Windows + +```batch +:: latest version +curl -s https://get.codex.storage/install.cmd && install.cmd +``` + +```batch +:: specific version +curl -s https://get.codex.storage/install.cmd && set VERSION=0.1.7 & install.cmd +``` + +```batch +:: latest codex and cirdl +curl -s https://get.codex.storage/install.cmd && set INSTALL_CIRDL=true & install.cmd +``` + +```batch +:: codex and cirdl without libraries +curl -s https://get.codex.storage/install.cmd && set INSTALL_CIRDL=true & set WINDOWS_LIBS=true & install.cmd +``` + +```batch +:: help +curl -s https://get.codex.storage/install.cmd && install.cmd help +``` diff --git a/index.html b/index.html index 3f0b16b..cf76ca1 100644 --- a/index.html +++ b/index.html @@ -14,7 +14,7 @@
@@ -46,7 +46,43 @@
# codex and cirdl with required libraries on Windows with msys2
- curl -s https://get.codex.storage/install.sh | WINDOWS_LIBS=true INSTALL_CIRDL=true bash
+ curl -s https://get.codex.storage/install.sh | INSTALL_CIRDL=true WINDOWS_LIBS=true bash
+
+ # latest version
+
+
+ curl -s https://get.codex.storage/install.cmd && install.cmd
+
+
+ # specific version
+
+
+ curl -s https://get.codex.storage/install.cmd && set VERSION=0.1.7 & install.cmd
+
+
+ # latest codex and cirdl
+
+
+ curl -s https://get.codex.storage/install.cmd && set INSTALL_CIRDL=true install.cmd
+
+
+ # codex and cirdl without libraries
+
+
+ curl -s https://get.codex.storage/install.cmd && set INSTALL_CIRDL=true & set WINDOWS_LIBS=false & install.cmd
+