mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-11-28 11:40:42 -05:00
74 lines
No EOL
1.6 KiB
Makefile
74 lines
No EOL
1.6 KiB
Makefile
# Show help for each of the justfile recipes
|
|
help:
|
|
@just --list
|
|
|
|
# Build Monero C++ Codebase (currently disabled)
|
|
# build_monero_cpp:
|
|
# just update_submodules
|
|
# cd monero-sys/monero && make -j8 release
|
|
|
|
# Clean the Monero C++ Codebase
|
|
clean_monero_cpp:
|
|
rm -rf monero-sys/monero/
|
|
just update_submodules
|
|
|
|
# Builds the Rust bindings for Monero
|
|
monero_sys:
|
|
just update_submodules
|
|
cd monero-sys && cargo build
|
|
|
|
# Start the Tauri app
|
|
tauri:
|
|
cd src-tauri && cargo tauri dev --no-watch -- -- --testnet
|
|
|
|
# Install the GUI dependencies
|
|
gui_install:
|
|
cd src-gui && yarn install
|
|
|
|
# Start the GUI Dev Server
|
|
gui:
|
|
cd src-gui && yarn dev
|
|
|
|
# Build the GUI
|
|
gui_build:
|
|
cd src-gui && yarn build
|
|
|
|
# Run the Rust tests
|
|
tests:
|
|
cargo nextest run
|
|
|
|
# Tests the Rust bindings for Monero
|
|
test_monero_sys:
|
|
cd monero-sys && cargo nextest run
|
|
|
|
# Builds the ASB and Swap binaries
|
|
swap:
|
|
cd swap && cargo build --bin asb --bin=swap
|
|
|
|
# Updates our submodules (currently only Monero C++ codebase)
|
|
update_submodules:
|
|
cd monero-sys && git submodule update --init --recursive --force
|
|
|
|
# Run clippy checks
|
|
clippy_check:
|
|
cargo clippy --workspace --all-targets --all-features -- -D warnings
|
|
|
|
# Check the bindings for the Tauri API
|
|
check_bindings:
|
|
cd src-gui && yarn run check-bindings
|
|
|
|
# Generate the bindings for the Tauri API
|
|
bindings:
|
|
cd src-gui && yarn run gen-bindings
|
|
|
|
# Kill all instances of monero-wallet-rpc running in the background
|
|
kill_monero_wallet_rpc:
|
|
killall monero-wallet-rpc && pkill -f monero-wallet-rpc
|
|
|
|
# Format the code
|
|
fmt:
|
|
dprint fmt
|
|
|
|
# Sometimes you have to prune the docker network to get the integration tests to work
|
|
docker-prune-network:
|
|
docker network prune -f
|