@xaidenlabs/uso 1.1.49 → 1.1.50

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xaidenlabs/uso",
3
- "version": "1.1.49",
3
+ "version": "1.1.50",
4
4
  "description": "Universal Solana Development Toolchain. Native or Stealth WSL Mode. Build, test, and deploy without the friction.",
5
5
  "bin": {
6
6
  "uso": "bin/index.js"
@@ -81,22 +81,28 @@ const installWsl = async () => {
81
81
  # 1. Hush Login
82
82
  touch ~/.hushlogin
83
83
 
84
- # 2. Update & Install Dependencies
85
- if ! command -v curl &> /dev/null; then
86
- sudo apt-get update && sudo apt-get install -y curl build-essential pkg-config libssl-dev
84
+ # 2. Update & Install Build Dependencies (ALWAYS check for cc linker)
85
+ if ! command -v cc &> /dev/null || ! command -v pkg-config &> /dev/null; then
86
+ echo "Installing build tools..."
87
+ sudo apt-get update -y && sudo apt-get install -y curl build-essential pkg-config libssl-dev libudev-dev
87
88
  fi
88
89
 
89
90
  # 3. Install Rust
90
91
  if ! command -v cargo &> /dev/null; then
91
92
  echo "Installing Rust..."
92
93
  curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
93
- source $HOME/.cargo/env
94
94
  fi
95
+ # Always source cargo env for subsequent steps
96
+ source $HOME/.cargo/env 2>/dev/null || true
95
97
 
96
98
  # 4. Install Solana
97
99
  if ! command -v solana &> /dev/null; then
98
- echo "Installing Solana..."
99
- sh -c "$(curl -sSfL https://release.solana.com/stable/install)"
100
+ echo "Installing Solana CLI..."
101
+ # Try official installer first, fall back to Agave
102
+ if ! sh -c "$(curl -sSfL https://release.solana.com/stable/install)" 2>/dev/null; then
103
+ echo "Retrying with Agave installer..."
104
+ sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)" 2>/dev/null || true
105
+ fi
100
106
  export PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH"
101
107
  fi
102
108
 
@@ -108,7 +114,7 @@ const installWsl = async () => {
108
114
  avm use latest
109
115
  fi
110
116
 
111
- echo "✅ WSL Setup Complete."
117
+ echo "✅ Uso Engine Setup Complete."
112
118
  `;
113
119
 
114
120
  // Write script to a temporary file in Windows (which is mounted in WSL)