- Node 26, en-US-only frontend build - Set NG_FORCE_TTY=false: under Nix's pty the Angular CLI spinner redraws forever and the frontend build never finishes - generate.sh: verify release tags against pinned wiz or mononaut fingerprints (mononaut signs since v3.3.0; key fetched from GitHub) - Newer mining-pool logos - nginx: serve the English site at / instead of redirecting - docs/fork-maintenance.md: reflect 3.3.2, Node 26 and the signer change Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
29 lines
737 B
Bash
Executable File
29 lines
737 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# Fetch hash-locked versions of assets that are dynamically fetched via
|
|
# https://github.com/mempool/mempool/blob/master/frontend/sync-assets.js
|
|
# when running `npm run build` in the frontend.
|
|
#
|
|
# This file is updated by ./frontend-assets-update.sh
|
|
|
|
declare -A revs=(
|
|
["mempool/mining-pool-logos"]=059212bff7194617153c4307bc7acfccea057b6c
|
|
)
|
|
|
|
fetchFile() {
|
|
repo=$1
|
|
file=$2
|
|
rev=${revs["$repo"]}
|
|
curl -fsS "https://raw.githubusercontent.com/$repo/$rev/$file"
|
|
}
|
|
|
|
fetchRepo() {
|
|
repo=$1
|
|
rev=${revs["$repo"]}
|
|
curl -fsSL "https://github.com/$repo/archive/$rev.tar.gz"
|
|
}
|
|
|
|
mkdir mining-pools
|
|
fetchRepo "mempool/mining-pool-logos" | tar xz --strip-components=1 -C mining-pools
|