Verified Commit 9b8ee40e authored by Aral Balkan's avatar Aral Balkan
Browse files

Deploy Site.js release version 15.4.0

parent f07a629e
module.exports = (request, response) => { response.end('20201029120036') }
module.exports = (request, response) => { response.end('20201104091512') }
......@@ -23,6 +23,27 @@
#
######################################################################
# Use either wget or curl to download the Site.js binary,
# whichever exists on the system (favour wget).
which wget > /dev/null
if [ $? -eq 0 ]
then
# wget exists, we’ll use that.
download="wget -q"
else
which curl > /dev/null
if [ $? -eq 0 ]
then
# curl exists, we’ll use that.
download="curl -Os"
else
echo
echo " ❌ The installation script needs either wget or curl installed to continue."
echo
exit 1
fi
fi
set -e
function cleanUp {
......@@ -45,9 +66,9 @@ betaBinaryVersion=20200710135219
betaPackageVersion=14.1.1
betaSourceVersion=afde7bd
releaseBinaryVersion=20201029120036
releasePackageVersion=15.3.1
releaseSourceVersion=0799d4a
releaseBinaryVersion=20201104091512
releasePackageVersion=15.4.0
releaseSourceVersion=54a2cff
binaryVersionVariableName="${releaseChannel}BinaryVersion"
packageVersionVariableName="${releaseChannel}PackageVersion"
......@@ -101,13 +122,13 @@ if [[ "$OSTYPE" == "linux-gnu" || "$OSTYPE" == "linux-gnueabihf" ]]; then
cpuArchitecture=`uname -m`
if [[ "$cpuArchitecture" == "x86_64" ]]; then
# Linux on x64.
wget -q "https://sitejs.org/binaries/${releaseChannel}/linux/${binaryVersion}.tar.gz"
$download "https://sitejs.org/binaries/${releaseChannel}/linux/${binaryVersion}.tar.gz"
elif [[ "$cpuArchitecture" == "armv7l" || "$cpuArchitecture" == "armv6l" ]]; then
# Linux on ARM. Tested on Raspberry Pi Zero W (armv6l), 3B+ and 4B (both reporting armv7l).
wget -q "https://sitejs.org/binaries/${releaseChannel}/linux-arm/${binaryVersion}.tar.gz"
$download "https://sitejs.org/binaries/${releaseChannel}/linux-arm/${binaryVersion}.tar.gz"
elif [[ "$cpuArchitecture" == "aarch64" ]]; then
# Linux on ARM64. Tested with Pinebook Pro.
wget -q "https://sitejs.org/binaries/${releaseChannel}/linux-arm64/${binaryVersion}.tar.gz"
$download "https://sitejs.org/binaries/${releaseChannel}/linux-arm64/${binaryVersion}.tar.gz"
else
# Error: unsupported architecture.
echo
......@@ -118,7 +139,7 @@ if [[ "$OSTYPE" == "linux-gnu" || "$OSTYPE" == "linux-gnueabihf" ]]; then
fi
elif [[ "$OSTYPE" == "darwin"* ]]; then
# macOS
curl -Os "https://sitejs.org/binaries/${releaseChannel}/macos/${binaryVersion}.tar.gz"
$download "https://sitejs.org/binaries/${releaseChannel}/macos/${binaryVersion}.tar.gz"
else
# Error: Unsupported operating system.
echo
......
##########################################################################################
#
# Site.js 20201029120036 (15.3.1/0799d4a) Installer for Windows 10 (PowerShell)
# Site.js 20201104091512 (15.4.0/54a2cff) Installer for Windows 10 (PowerShell)
#
# To use:
#
......@@ -23,7 +23,7 @@ $installationScriptUrl = 'https://sitejs.org/install.txt'
$installationScriptFileName = 'install-site.js.ps1'
# The address to download the tar-gzipped archive of the Site.js binary from.
$archiveUrl = 'https://sitejs.org/binaries/release/windows/20201029120036.tar.gz'
$archiveUrl = 'https://sitejs.org/binaries/release/windows/20201104091512.tar.gz'
# Emoji encodings (because Powershell is from the Stone Age and cannot handle
# emoji literals in strings)
......@@ -86,7 +86,7 @@ if (!([Security.Principal.WindowsPrincipal] `
# Installer is running with regular privileges. Start a new PowerShell session with elevated privileges.
#
Write-Output ''
Write-Output " $satelliteEmoji Downloading Site.js 20201029120036 (15.3.1/0799d4a)$ellipsis"
Write-Output " $satelliteEmoji Downloading Site.js 20201104091512 (15.4.0/54a2cff)$ellipsis"
# 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.
......@@ -112,16 +112,16 @@ if (!([Security.Principal.WindowsPrincipal] `
Write-Output "`n`n`n`n`n`n"
Write-Output ' Installing Site.js using administrator privileges...'
Write-Output ''
Write-Output ' * Downloading Site.js 20201029120036 (15.3.1/0799d4a)...'
Write-Output ' * Downloading Site.js 20201104091512 (15.4.0/54a2cff)...'
# Download the latest Site.js archive.
Invoke-WebRequest -Uri $archiveUrl -OutFile '20201029120036.tar.gz'
Invoke-WebRequest -Uri $archiveUrl -OutFile '20201104091512.tar.gz'
Write-Output ''
Write-Output ' * Extracting binary...'
# Gunzip and untar the binary.
tar -xf 20201029120036.tar.gz
tar -xf 20201104091512.tar.gz
Write-Output ''
Write-Output ' * Installing binary...'
......
{
"name": "site.js-site",
"version": "15.3.1",
"version": "15.4.0",
"description": "Site.js web site",
"main": "index.js",
"scripts": {
......
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