Verified Commit ddaaab7d authored by Aral Balkan's avatar Aral Balkan
Browse files

Site.js 20200618155325 (13.0.0) release

parent 6e463f7e
module.exports = (request, response) => { response.end('20200618155325') }
*.tar.gz filter=lfs diff=lfs merge=lfs -text
nexe/* filter=lfs diff=lfs merge=lfs -text
binaries/** filter=lfs diff=lfs merge=lfs -text
......@@ -2,65 +2,138 @@
######################################################################
#
# Site.js v12.10.5 Installer for Linux (x86 and armv7l) and macOS.
# Site.js installer for Linux (x86 and ARM) and macOS.
#
# To use:
# Usage:
#
# wget -qO- https://sitejs.org/install | bash
#
# Copyright (c) 2019 Aral Balkan.
# Or:
#
# curl -s https://sitejs.org/install | bash
#
# For alpha, replace bash with bash -s -- alpha
# For beta, replace bash with bash -s -- beta
#
# Copyright (c) 2019-2020 Aral Balkan.
# Released under the AGPL version 3.0 or later license.
# Made with ♥ by Small Technology Foundation (https://small-tech.org)
#
# Like this? Fund us! (https://small-tech.org/fund-us)
#
######################################################################
set -e
echo
echo " 📡 Downloading Site.js v12.10.5…"
function cleanUp {
popd > /dev/null
rm -rf /tmp/sitejs.org
}
# Setup
releaseChannel=$1
# Release is the default release type (others are alpha and beta).
if [[ "$releaseChannel" == "" ]]; then
releaseChannel='release'
fi
alphaBinaryVersion=00000000000000
alphaPackageVersion=00.00.00
alphaSourceVersion=bedface
betaBinaryVersion=00000000000000
betaPackageVersion=00.00.00
betaSourceVersion=bedface
releaseBinaryVersion=20200618155325
releasePackageVersion=13.0.0
releaseSourceVersion=76a9bd2
binaryVersionVariableName="${releaseChannel}BinaryVersion"
packageVersionVariableName="${releaseChannel}PackageVersion"
sourceVersionVariableName="${releaseChannel}SourceVersion"
binaryVersion=${!binaryVersionVariableName}
packageVersion=${!packageVersionVariableName}
sourceVersion=${!sourceVersionVariableName}
if [[ "$binaryVersion" == "00000000000000" ]]; then
echo " ❌ Sorry, no Site.js ${releaseChannel} binaries have been released yet."
cleanUp
exit 1
fi
echo
echo " 📡 Downloading Site.js version ${binaryVersion} (${packageversion}/${sourceVersion})…"
# Mark alpha and beta releases prominently.
if [[ "$releaseChannel" == "alpha" ]]; then
# Writes ALPHA in large red block letters.
echo -e '\033[31m'
echo ' █████  ██  ██████  ██  ██  █████'
echo ' ██   ██ ██  ██   ██ ██  ██ ██   ██ '
echo ' ███████ ██  ██████  ███████ ███████ '
echo ' ██   ██ ██  ██      ██   ██ ██   ██ '
echo ' ██  ██ ███████ ██  ██  ██ ██  ██'
echo -e '\033[0m'
elif [[ "$releaseChannel" == "beta" ]]; then
# Writes BETA in large yellow block letters.
echo -e '\033[33m'
echo ' ██████  ███████ ████████  █████ '
echo ' ██   ██ ██         ██    ██   ██ '
echo ' ██████  █████  ██  ███████ '
echo ' ██   ██ ██     ██  ██   ██ '
echo ' ██████  ███████  ██  ██  ██'
echo -e '\033[0m'
fi
# Setup.
rm -rf /tmp/sitejs.org
mkdir -p /tmp/sitejs.org
pushd /tmp/sitejs.org > /dev/null
# Download the release.
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.5.tar.gz
wget -q "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/releases/linux-arm/12.10.5.tar.gz
wget -q "https://sitejs.org/binaries/${releaseChannel}/linux-arm/${binaryVersion}.tar.gz"
else
# Unsupported
echo "\n ❌ Error: this architecture is not supported on Linux (only x86_64, armv6l, and armv7l are).\n"
# Error: unsupported architecture.
echo
echo " ❌ Error: this architecture is not supported on Linux (only x86_64, armv6l, and armv7l are)."
echo
cleanUp
exit 1
fi
elif [[ "$OSTYPE" == "darwin"* ]]; then
# macOS
curl -Os https://sitejs.org/releases/macos/12.10.5.tar.gz
curl -Os "https://sitejs.org/binaries/${releaseChannel}/macos/${binaryVersion}.tar.gz"
else
# Unsupported
echo "\n ❌ Error: this operating system is not supported.\n"
# Error: Unsupported operating system.
echo
echo " ❌ Error: this operating system is not supported."
echo
cleanUp
exit 1
fi
# Install.
echo " 📦 Installing…"
gzip -d 12.10.5.tar.gz
tar -xf 12.10.5.tar
gzip -d "${binaryVersion}.tar.gz"
tar -xf "${binaryVersion}.tar"
# Ensure that the /usr/local/bin directory exists (it does not by default on macOS)
# Ensure /usr/local/bin directory exists (it does not by default on macOS)
sudo mkdir -p /usr/local/bin/
# Move the site binary there.
# Install the Site.js binary.
sudo mv site /usr/local/bin/
cleanUp
......
################################################################################
##########################################################################################
#
# Site.js v12.10.5 Installer for Windows 10 (PowerShell)
# Site.js 20200618155325 (13.0.0/76a9bd2) Installer for Windows 10 (PowerShell)
#
# To use:
#
# iex(iwr -UseBasicParsing https://sitejs.org/windows).Content
#
# Copyright (c) 2019 Aral Balkan.
# Copyright (c) 2019-2020 Aral Balkan.
# Released under the AGPL version 3.0 or later license.
# Made with <3 by Small Technology Foundation (https://small-tech.org)
# Like this? Fund us! (https://small-tech.org/fund-us)
#
################################################################################
##########################################################################################
# This is where the binary will be installed to.
$installationDirectory = 'C:\Program Files\site.js'
......@@ -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.5.tar.gz'
$archiveUrl = 'https://sitejs.org/binaries/release/windows/20200618155325.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.5$ellipsis"
Write-Output " $satelliteEmoji Downloading Site.js 20200618155325 (13.0.0/76a9bd2)$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.5...'
Write-Output ' * Downloading Site.js 20200618155325 (13.0.0/76a9bd2)...'
# Download the latest Site.js archive.
Invoke-WebRequest -Uri $archiveUrl -OutFile '12.10.5.tar.gz'
Invoke-WebRequest -Uri $archiveUrl -OutFile '20200618155325.tar.gz'
Write-Output ''
Write-Output ' * Extracting binary...'
# Gunzip and untar the binary.
tar -xf 12.10.5.tar.gz
tar -xf 20200618155325.tar.gz
Write-Output ''
Write-Output ' * Installing binary...'
......
{
"name": "site.js-site",
"version": "1.0.0",
"version": "13.0.0",
"description": "",
"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