Verified Commit 59acc8ec authored by Aral Balkan's avatar Aral Balkan
Browse files

Site.js v12.9.0 release: update, start, stop, and restart commands

parent 4ee76990
module.exports = (request, response) => { response.end('12.8.0') } module.exports = (request, response) => { response.end('12.9.0') }
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
###################################################################### ######################################################################
# #
# Site.js v12.8.0 Installer for Linux (x86 and armv7l) and macOS. # Site.js v12.9.0 Installer for Linux (x86 and armv7l) and macOS.
# #
# To use: # To use:
# #
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
set -e set -e
echo echo
echo " 📡 Downloading Site.js v12.8.0…" echo " 📡 Downloading Site.js v12.9.0…"
function cleanUp { function cleanUp {
popd > /dev/null popd > /dev/null
...@@ -33,9 +33,9 @@ if [[ "$OSTYPE" == "linux-gnu" || "$OSTYPE" == "linux-gnueabihf" ]]; then ...@@ -33,9 +33,9 @@ if [[ "$OSTYPE" == "linux-gnu" || "$OSTYPE" == "linux-gnueabihf" ]]; then
cpuArchitecture=`uname -m` cpuArchitecture=`uname -m`
if [[ "$cpuArchitecture" == "x86_64" ]]; then if [[ "$cpuArchitecture" == "x86_64" ]]; then
# Linux on x64 # Linux on x64
wget -q https://sitejs.org/releases/linux/12.8.0.tar.gz wget -q https://sitejs.org/releases/linux/12.9.0.tar.gz
elif [[ "$cpuArchitecture" == "armv7l" ]]; then elif [[ "$cpuArchitecture" == "armv7l" ]]; then
wget -q https://sitejs.org/releases/linux-arm/12.8.0.tar.gz wget -q https://sitejs.org/releases/linux-arm/12.9.0.tar.gz
else else
# Unsupported # Unsupported
echo "\n ❌ Error: this architecture is not supported on Linux (only x86_64 and armv7l are).\n" echo "\n ❌ Error: this architecture is not supported on Linux (only x86_64 and armv7l are).\n"
...@@ -44,7 +44,7 @@ if [[ "$OSTYPE" == "linux-gnu" || "$OSTYPE" == "linux-gnueabihf" ]]; then ...@@ -44,7 +44,7 @@ if [[ "$OSTYPE" == "linux-gnu" || "$OSTYPE" == "linux-gnueabihf" ]]; then
fi fi
elif [[ "$OSTYPE" == "darwin"* ]]; then elif [[ "$OSTYPE" == "darwin"* ]]; then
# macOS # macOS
curl -Os https://sitejs.org/releases/macos/12.8.0.tar.gz curl -Os https://sitejs.org/releases/macos/12.9.0.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"
...@@ -53,8 +53,8 @@ else ...@@ -53,8 +53,8 @@ else
fi fi
echo " 📦 Installing…" echo " 📦 Installing…"
gzip -d 12.8.0.tar.gz gzip -d 12.9.0.tar.gz
tar -xf 12.8.0.tar tar -xf 12.9.0.tar
# Ensure that the /usr/local/bin directory exists (it does not by default on macOS) # Ensure that the /usr/local/bin directory exists (it does not by default on macOS)
sudo mkdir -p /usr/local/bin/ sudo mkdir -p /usr/local/bin/
......
################################################################################ ################################################################################
# #
# Site.js v12.8.0 Installer for Windows 10 (PowerShell) # Site.js v12.9.0 Installer for Windows 10 (PowerShell)
# #
# To use: # To use:
# #
...@@ -23,7 +23,7 @@ $installationScriptUrl = 'https://sitejs.org/install.txt' ...@@ -23,7 +23,7 @@ $installationScriptUrl = 'https://sitejs.org/install.txt'
$installationScriptFileName = 'install-site.js.ps1' $installationScriptFileName = 'install-site.js.ps1'
# The address to download the tar-gzipped archive of the Site.js binary from. # The address to download the tar-gzipped archive of the Site.js binary from.
$archiveUrl = 'https://sitejs.org/releases/windows/12.8.0.tar.gz' $archiveUrl = 'https://sitejs.org/releases/windows/12.9.0.tar.gz'
# Emoji encodings (because Powershell is from the Stone Age and cannot handle # Emoji encodings (because Powershell is from the Stone Age and cannot handle
# emoji literals in strings) # emoji literals in strings)
...@@ -86,7 +86,7 @@ if (!([Security.Principal.WindowsPrincipal] ` ...@@ -86,7 +86,7 @@ if (!([Security.Principal.WindowsPrincipal] `
# Installer is running with regular privileges. Start a new PowerShell session with elevated privileges. # Installer is running with regular privileges. Start a new PowerShell session with elevated privileges.
# #
Write-Output '' Write-Output ''
Write-Output " $satelliteEmoji Downloading Site.js v12.8.0$ellipsis" Write-Output " $satelliteEmoji Downloading Site.js v12.9.0$ellipsis"
# We need to start a new PowerShell session with elevated privileges but if we're running in memory # We need to start a new PowerShell session with elevated privileges but if we're running in memory
# only after being downloaded by the installation command, we don't have a copy of ourselves to run. # only after being downloaded by the installation command, we don't have a copy of ourselves to run.
...@@ -112,16 +112,16 @@ if (!([Security.Principal.WindowsPrincipal] ` ...@@ -112,16 +112,16 @@ if (!([Security.Principal.WindowsPrincipal] `
Write-Output "`n`n`n`n`n`n" Write-Output "`n`n`n`n`n`n"
Write-Output ' Installing Site.js using administrator privileges...' Write-Output ' Installing Site.js using administrator privileges...'
Write-Output '' Write-Output ''
Write-Output ' * Downloading Site.js v12.8.0...' Write-Output ' * Downloading Site.js v12.9.0...'
# Download the latest Site.js archive. # Download the latest Site.js archive.
Invoke-WebRequest -Uri $archiveUrl -OutFile '12.8.0.tar.gz' Invoke-WebRequest -Uri $archiveUrl -OutFile '12.9.0.tar.gz'
Write-Output '' Write-Output ''
Write-Output ' * Extracting binary...' Write-Output ' * Extracting binary...'
# Gunzip and untar the binary. # Gunzip and untar the binary.
tar -xf 12.8.0.tar.gz tar -xf 12.9.0.tar.gz
Write-Output '' Write-Output ''
Write-Output ' * Installing binary...' Write-Output ' * Installing binary...'
......
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