Verified Commit 73345a28 authored by Aral Balkan's avatar Aral Balkan
Browse files

Deploy Site.js version 12.5.1

Adds mime types to the dynamic route examples in test/site so the routes are not downloaded as .dms files by Safari 13.
parent cdd324a3
module.exports = (request, response) => { response.end('12.4.1') } module.exports = (request, response) => { response.end('12.5.1') }
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
###################################################################### ######################################################################
# #
# Site.js v12.4.1 Installer # Site.js v12.5.1 Installer
# #
# To use: # To use:
# #
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
set -e set -e
echo echo
echo " 📡 Downloading Site.js v12.4.1…" echo " 📡 Downloading Site.js v12.5.1…"
function cleanUp { function cleanUp {
popd > /dev/null popd > /dev/null
...@@ -29,10 +29,10 @@ pushd /tmp/sitejs.org > /dev/null ...@@ -29,10 +29,10 @@ pushd /tmp/sitejs.org > /dev/null
if [[ "$OSTYPE" == "linux-gnu" ]]; then if [[ "$OSTYPE" == "linux-gnu" ]]; then
# Linux # Linux
wget -q https://sitejs.org/releases/linux/12.4.1.tar.gz wget -q https://sitejs.org/releases/linux/12.5.1.tar.gz
elif [[ "$OSTYPE" == "darwin"* ]]; then elif [[ "$OSTYPE" == "darwin"* ]]; then
# macOS # macOS
curl -Os https://sitejs.org/releases/macos/12.4.1.tar.gz curl -Os https://sitejs.org/releases/macos/12.5.1.tar.gz
else else
# Unsupported # Unsupported
echo "\n ❌ Error: this operating system is not supported.\n" echo "\n ❌ Error: this operating system is not supported.\n"
...@@ -41,8 +41,8 @@ else ...@@ -41,8 +41,8 @@ else
fi fi
echo " 📦 Installing…" echo " 📦 Installing…"
gzip -d 12.4.1.tar.gz gzip -d 12.5.1.tar.gz
tar -xvf 12.4.1.tar > /dev/null 2>&1 tar -xvf 12.5.1.tar > /dev/null 2>&1
sudo mv site /usr/local/bin/ sudo mv site /usr/local/bin/
cleanUp cleanUp
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment