diff --git a/packaging/mac/packaged-config.sh b/packaging/mac/packaged-config.sh index edd4994e5..e623fcf25 100644 --- a/packaging/mac/packaged-config.sh +++ b/packaging/mac/packaged-config.sh @@ -87,9 +87,10 @@ WALLET_PUBLIC_RPC='' WALLET_ADD_NETWORK_PAGE='https://igneum.network/wallet/add' write_wallet_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-wallet-latest.json" - [ -n "$manifest" ] || echo "note: no $TOKEN_FILE; the update check is disabled in this build" + # the token as write_packaged_config reads it (6 October 2026: the .next-file helpers of the 0.3.13 tree) + token="$(igneum_read_trimmed "$(igneum_secret_file IGNEUM_DL_TOKEN_FILE dl-token)")" + [ -n "$token" ] && manifest="${DL_HOST:-https://dl.igneum.network}/dl/$token/igneum-wallet-latest.json" + [ -n "$manifest" ] || echo "note: no download token file; the update check is disabled in this build" local override_line="" [ -n "$NODE_OVERRIDE_PARAMS" ] && override_line=" \"node_override_params\": $NODE_OVERRIDE_PARAMS," cat > "$out" <