SOURCE / PINNED RELEASE
Made of little things.
Supersonic RC Revive
- Release
- 1ba42f1ca1d6…
- Author-recorded commit
- baecad10b1cd…
- License
- LICENSE
- Author’s source reference
- nostr://npub1ye5ptcxfyyxl5vjvdjar2ua3f0hynkjzpx552mu5snj3qmx5pzjscpknpr/wss%3A%2F%2Fgit.napplet.soy%2F/n-143146b0d6f
Archive hash verified: 90d22b206672eba4…. The source-to-build association is the author’s claim; it has not been independently rebuilt.
#!/usr/bin/env node
// Pack an asset folder into one .ssrcpack file a player can side-load.
// pnpm assets:pack <folder> <out.ssrcpack> [--original] [--title "Name"]
// e.g. a pack of the originals for someone who owns the 2004 game:
// pnpm assets:pack ref-out/game supersonic-original.ssrcpack --original
// Original packs are for local use only: never publish or share them.
import { writeFileSync } from 'node:fs';
import { buildPack } from '../build/asset-pack.ts';
const args = process.argv.slice(2);
const original = args.includes('--original');
const titleAt = args.indexOf('--title');
const title = titleAt >= 0 ? args.splice(titleAt, 2)[1] : original ? 'SuperSonic RC (original assets)' : 'Custom asset pack';
const [dir, out] = args.filter((a) => a !== '--original');
if (!dir || !out) {
console.error('usage: pnpm assets:pack <folder> <out.ssrcpack> [--original] [--title "Name"]');
process.exit(1);
}
const pack = buildPack(dir, { title, original });
writeFileSync(out, pack);
console.log(`${out}: ${pack.length} bytes${original ? ' (ORIGINAL assets: local use only)' : ''}`);
