Ind.ie is now Small Technology Foundation.
Commit 69b1e4e9 authored by Aral Balkan's avatar Aral Balkan

Add installation scripts for version 12.10.4

parent 784622e4
......@@ -2,7 +2,7 @@
######################################################################
#
# Site.js v12.10.3 Installer for Linux (x86 and armv7l) and macOS.
# Site.js v12.10.4 Installer for Linux (x86 and armv7l) and macOS.
#
# To use:
#
......@@ -17,7 +17,7 @@
set -e
echo
echo " 📡 Downloading Site.js v12.10.3…"
echo " 📡 Downloading Site.js v12.10.4…"
function cleanUp {
popd > /dev/null
......@@ -33,10 +33,10 @@ if [[ "$OSTYPE" == "linux-gnu" || "$OSTYPE" == "linux-gnueabihf" ]]; then
cpuArchitecture=`uname -m`
if [[ "$cpuArchitecture" == "x86_64" ]]; then
# Linux on x64.
wget -q https://sitejs.org/releases/linux/12.10.3.tar.gz
wget -q https://sitejs.org/releases/linux/12.10.4.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/releases/linux-arm/12.10.3.tar.gz
wget -q https://sitejs.org/releases/linux-arm/12.10.4.tar.gz
else
# Unsupported
echo "\n ❌ Error: this architecture is not supported on Linux (only x86_64, armv6l, and armv7l are).\n"
......@@ -45,7 +45,7 @@ if [[ "$OSTYPE" == "linux-gnu" || "$OSTYPE" == "linux-gnueabihf" ]]; then
fi
elif [[ "$OSTYPE" == "darwin"* ]]; then
# macOS
curl -Os https://sitejs.org/releases/macos/12.10.3.tar.gz
curl -Os https://sitejs.org/releases/macos/12.10.4.tar.gz
else
# Unsupported
echo "\n ❌ Error: this operating system is not supported.\n"
......@@ -54,8 +54,8 @@ else
fi
echo " 📦 Installing…"
gzip -d 12.10.3.tar.gz
tar -xf 12.10.3.tar
gzip -d 12.10.4.tar.gz
tar -xf 12.10.4.tar
# Ensure that the /usr/local/bin directory exists (it does not by default on macOS)
sudo mkdir -p /usr/local/bin/
......
################################################################################
#
# Site.js v12.10.3 Installer for Windows 10 (PowerShell)
# Site.js v12.10.4 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/releases/windows/12.10.3.tar.gz'
$archiveUrl = 'https://sitejs.org/releases/windows/12.10.4.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 v12.10.3$ellipsis"
Write-Output " $satelliteEmoji Downloading Site.js v12.10.4$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 v12.10.3...'
Write-Output ' * Downloading Site.js v12.10.4...'
# Download the latest Site.js archive.
Invoke-WebRequest -Uri $archiveUrl -OutFile '12.10.3.tar.gz'
Invoke-WebRequest -Uri $archiveUrl -OutFile '12.10.4.tar.gz'
Write-Output ''
Write-Output ' * Extracting binary...'
# Gunzip and untar the binary.
tar -xf 12.10.3.tar.gz
tar -xf 12.10.4.tar.gz
Write-Output ''
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