#!/bin/bash # The configuration the packagers write next to the engine (igneum-app.json): the update manifest URL (the download # token is read from ~/.config/igneum/dl-token and never lives in the repo), the log intake (the key only authorises # log uploads and is meant to ship, as the 0.2.0 launchers did), the live page. Sourced by build-dmg.sh; the Windows # make-payload.sh reads LOG_KEY from this file. LOG_URL="https://igneum-six.vercel.app/api/log" LOG_KEY="***INTAKE-KEY-REMOVED***" LIVE_PAGE="https://igneum.network/live" DOWNLOAD_PAGE="https://igneum.network/#mine" TOKEN_FILE="$HOME/.config/igneum/dl-token" # writes the JSON to $1 write_packaged_config() { local out="$1" token="" manifest="" [ -f "$TOKEN_FILE" ] && token="$(tr -d '[:space:]' < "$TOKEN_FILE")" [ -n "$token" ] && manifest="https://dl.igneum.network/dl/$token/igneum-app-latest.json" [ -n "$manifest" ] || echo "note: no $TOKEN_FILE; the update check is disabled in this build" cat > "$out" <