Verified Commit 4eb6c8f5 authored by Aral Balkan's avatar Aral Balkan
Browse files

Add Site.js 12.7.0 release

parent 0ba65d06
module.exports = (request, response) => { response.end('12.6.1') } module.exports = (request, response) => { response.end('12.7.0') }
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
###################################################################### ######################################################################
# #
# Site.js v12.6.1 Installer for Linux and macOS. # Site.js v12.7.0 Installer for Linux 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.6.1…" echo " 📡 Downloading Site.js v12.7.0…"
function cleanUp { function cleanUp {
popd > /dev/null popd > /dev/null
...@@ -31,10 +31,10 @@ pushd /tmp/sitejs.org > /dev/null ...@@ -31,10 +31,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.6.1.tar.gz wget -q https://sitejs.org/releases/linux/12.7.0.tar.gz
elif [[ "$OSTYPE" == "darwin"* ]]; then elif [[ "$OSTYPE" == "darwin"* ]]; then
# macOS # macOS
curl -Os https://sitejs.org/releases/macos/12.6.1.tar.gz curl -Os https://sitejs.org/releases/macos/12.7.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"
...@@ -43,8 +43,8 @@ else ...@@ -43,8 +43,8 @@ else
fi fi
echo " 📦 Installing…" echo " 📦 Installing…"
gzip -d 12.6.1.tar.gz gzip -d 12.7.0.tar.gz
tar -xvf 12.6.1.tar > /dev/null 2>&1 tar -xvf 12.7.0.tar > /dev/null 2>&1
sudo mv site /usr/local/bin/ sudo mv site /usr/local/bin/
cleanUp cleanUp
......
################################################################################ ################################################################################
# #
# Site.js v12.6.1 Installer for Windows 10 (PowerShell) # Site.js v12.7.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.6.1.tar.gz' $archiveUrl = 'https://sitejs.org/releases/windows/12.7.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.6.1$ellipsis" Write-Output " $satelliteEmoji Downloading Site.js v12.7.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.6.1...' Write-Output ' * Downloading Site.js v12.7.0...'
# Download the latest Site.js archive. # Download the latest Site.js archive.
Invoke-WebRequest -Uri $archiveUrl -OutFile '12.6.1.tar.gz' Invoke-WebRequest -Uri $archiveUrl -OutFile '12.7.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.6.1.tar.gz tar -xf 12.7.0.tar.gz
Write-Output '' Write-Output ''
Write-Output ' * Installing binary...' Write-Output ' * Installing binary...'
......
...@@ -8,7 +8,7 @@ const NEW_LINE = '\n' ...@@ -8,7 +8,7 @@ const NEW_LINE = '\n'
const EMPTY_LINE = '\n\n' const EMPTY_LINE = '\n\n'
const WAIT_ONE_SEC = '^1000' const WAIT_ONE_SEC = '^1000'
const WAIT_QUARTER_SEC = '^250' const WAIT_QUARTER_SEC = '^250'
const VERSION = '12.6.1' const VERSION = '12.7.0'
const NBSP = ' ' const NBSP = ' '
// //
......
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