@xaidenlabs/uso 1.1.78 → 1.1.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/anchor_project/Anchor.toml +4 -0
- package/package.json +1 -1
- package/src/platforms/wsl.js +27 -1
package/package.json
CHANGED
package/src/platforms/wsl.js
CHANGED
|
@@ -277,6 +277,32 @@ else
|
|
|
277
277
|
fi
|
|
278
278
|
source $HOME/.cargo/env 2>/dev/null || true
|
|
279
279
|
|
|
280
|
+
# --- Solana SBPF Toolchain (required for anchor build) ---
|
|
281
|
+
if ! rustup target list 2>/dev/null | grep -q "sbpf-solana-solana"; then
|
|
282
|
+
echo "🎯 Installing Solana SBPF toolchain..."
|
|
283
|
+
if run_with_progress "🎯 Installing Solana SBPF target..." 35 55 rustup target add sbpf-solana-solana; then
|
|
284
|
+
echo "✅ SBPF target installed."
|
|
285
|
+
else
|
|
286
|
+
FAILURES="$FAILURES sbpf-target"
|
|
287
|
+
echo "❌ SBPF target installation failed."
|
|
288
|
+
fi
|
|
289
|
+
else
|
|
290
|
+
echo "✅ SBPF target already installed."
|
|
291
|
+
fi
|
|
292
|
+
|
|
293
|
+
# Install cargo-build-sbf
|
|
294
|
+
if ! command -v cargo-build-sbf &> /dev/null; then
|
|
295
|
+
echo "🔨 Installing cargo-build-sbf..."
|
|
296
|
+
if run_with_progress "🔨 Installing cargo-build-sbf..." 55 60 cargo install cargo-build-sbf; then
|
|
297
|
+
echo "✅ cargo-build-sbf installed."
|
|
298
|
+
else
|
|
299
|
+
FAILURES="$FAILURES cargo-build-sbf"
|
|
300
|
+
echo "⚠️ cargo-build-sbf install failed (run 'uso init' to retry)."
|
|
301
|
+
fi
|
|
302
|
+
else
|
|
303
|
+
echo "✅ cargo-build-sbf already installed."
|
|
304
|
+
fi
|
|
305
|
+
|
|
280
306
|
# --- Solana ---
|
|
281
307
|
export PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH"
|
|
282
308
|
if ! command -v solana &> /dev/null; then
|
|
@@ -339,7 +365,7 @@ if ! command -v anchor &> /dev/null; then
|
|
|
339
365
|
# Install AVM if not present
|
|
340
366
|
if ! command -v avm &> /dev/null; then
|
|
341
367
|
echo "⚓ Installing AVM (compiling from source, ~5 min)..."
|
|
342
|
-
if run_with_progress "⚓ Installing AVM (compiling from source)..."
|
|
368
|
+
if run_with_progress "⚓ Installing AVM (compiling from source)..." 65 85 cargo install --git https://github.com/coral-xyz/anchor avm --locked --force; then
|
|
343
369
|
echo "✅ AVM compiled."
|
|
344
370
|
else
|
|
345
371
|
FAILURES="$FAILURES avm"
|