forked from Netwalls/BOXMEOUT_STELLA
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_offline.sh
More file actions
executable file
·24 lines (19 loc) · 867 Bytes
/
build_offline.sh
File metadata and controls
executable file
·24 lines (19 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
# Quick build script using cached dependencies (offline mode)
# Use this if DNS/network issues prevent online builds
set -e
echo "🚀 Building BoxMeOut Contracts (Offline Mode)..."
echo ""
cd "$(dirname "$0")/contracts/contracts/boxmeout"
echo "Building all 5 contracts..."
for contract in market oracle amm factory treasury; do
echo "📦 $contract..."
cargo build --target wasm32-unknown-unknown --release --features $contract --offline 2>&1 | grep -v "warning:" || true
if [ -f "target/wasm32-unknown-unknown/release/boxmeout.wasm" ]; then
cp target/wasm32-unknown-unknown/release/boxmeout.wasm target/wasm32-unknown-unknown/release/$contract.wasm
echo "✅ $contract.wasm"
fi
done
echo ""
echo "🎉 Done! Files:"
ls -lh target/wasm32-unknown-unknown/release/{market,oracle,amm,factory,treasury}.wasm 2>/dev/null