Files
moon-i2p/justfile
T
nandi fbe6818c4e
check / check (macos-latest) (push) Failing after 29s
check / check (ubuntu-latest) (push) Failing after 29s
check / check (windows-latest) (push) Failing after 30s
feat: add I2P BitTorrent engine, DHT, and Firefox torrent extension
- Add pure-MoonBit bittorrent package: bencode codec, metainfo/magnet parsing with path traversal checks, peer wire protocol (BEP 10/9), and I2P Kademlia DHT with KRPC and 54-byte compact nodes
- Add SHA-1 primitive in crypto for torrent info hashes
- Add router torrent API and engine, enabled with --torrent-api (default 127.0.0.1:4445) and --download-dir
- Add Firefox WebExtension torrent manager with native messaging host and packed .xpi
- Add scripts to build a standalone Firefox + router AppImage and install the native host
- Add just targets (proxy, appimage, extension), README docs, and ignore .cache/ and dist/
2026-11-28 13:19:03 -08:00

47 lines
1.3 KiB
Makefile

# Default recipe: list available commands
default:
@just --list
# Build and run an end-to-end demo of moon-i2p
demo:
python3 scripts/demo.py
# Build native router and SAMv3 client binaries
build:
moon build --target native cmd/router
moon build --target native cmd/client
# Start public I2P router with embedded HTTP proxy and BitTorrent + DHT API
proxy:
moon build --target native cmd/router
./_build/native/debug/build/cmd/router/router.exe --public --http-proxy 127.0.0.1:4444 --torrent-api 127.0.0.1:4445
# Install Firefox Native Messaging host and build extensions/firefox-i2p-torrent.xpi
extension:
python3 scripts/install_firefox_native_host.py
# Build self-contained Linux x86_64 Firefox + moon-i2p router AppImage
appimage:
python3 scripts/build_appimage.py
# Run all MoonBit tests across wasm, js, and native targets
test:
moon test --target wasm
moon test --target js
moon test --target native
# Build native client and run Python E2E suite against MockSamBridge
e2e:
moon build --target native cmd/client
python3 scripts/e2e_test.py
# Type-check all packages across wasm, js, and native targets
check:
moon check --target wasm
moon check --target js
moon check --target native
# Update .mbti package interfaces and format MoonBit sources
fmt:
moon info && moon fmt