@xaidenlabs/uso 1.1.18 → 1.1.20

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/bin/index.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
  const { program } = require('commander');
3
3
  const { init } = require('../src/commands/init');
4
4
  const { doctor } = require('../src/commands/doctor');
@@ -10,7 +10,7 @@ const { uninstall } = require('../src/commands/uninstall');
10
10
  program
11
11
  .name('uso')
12
12
  .description('Universal Solana Orchestrator - One-command setup for all OS')
13
- .version('1.0.0');
13
+ .version(require('../package.json').version);
14
14
 
15
15
  program
16
16
  .command('init [component]')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xaidenlabs/uso",
3
- "version": "1.1.18",
3
+ "version": "1.1.20",
4
4
  "description": "Universal Solana Orchestrator - A one-command setup tool for Solana and Anchor development environments on Windows, macOS, and Linux.",
5
5
  "bin": {
6
6
  "uso": "bin/index.js"
@@ -26,4 +26,4 @@
26
26
  "ora": "^5.4.1",
27
27
  "shelljs": "^0.10.0"
28
28
  }
29
- }
29
+ }
@@ -11,8 +11,10 @@ const installWindows = async (shouldInstallRust, shouldInstallSolana) => {
11
11
  const hasCl = shell.which('cl');
12
12
  if (!hasCl) {
13
13
  log.warn("⚠️ Visual Studio C++ Build Tools (cl.exe) not found!");
14
+ log.error("❌ Rust and Anchor CANNOT run without these tools.");
14
15
  log.warn("👉 Please install them from: https://visualstudio.microsoft.com/visual-cpp-build-tools/");
15
- log.warn(" Make sure to select 'Desktop development with C++' workload before installing Rust.");
16
+ log.warn(" Make sure to select 'Desktop development with C++' workload.");
17
+ log.warn(" After installing, restart your terminal and run `uso init` again.");
16
18
  }
17
19
  }
18
20
 
@@ -21,6 +23,9 @@ const installWindows = async (shouldInstallRust, shouldInstallSolana) => {
21
23
  log.info("🦀 Installing Rust (rustup-init.exe)...");
22
24
  shell.exec('powershell -Command "Invoke-WebRequest -Uri https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe -OutFile rustup-init.exe"');
23
25
 
26
+ // Unblock the file to prevent Device Guard/SmartScreen issues
27
+ shell.exec('powershell -Command "Unblock-File -Path rustup-init.exe"');
28
+
24
29
  const rustInstall = shell.exec('powershell -Command "./rustup-init.exe -y"');
25
30
 
26
31
  if (rustInstall.code !== 0) {
@@ -44,6 +49,9 @@ const installWindows = async (shouldInstallRust, shouldInstallSolana) => {
44
49
  const downloadCmd = 'powershell -Command "Invoke-WebRequest -Uri https://release.anza.xyz/stable/solana-install-init-x86_64-pc-windows-msvc.exe -OutFile solana-install.exe"';
45
50
  const dlResult = shell.exec(downloadCmd);
46
51
 
52
+ // Unblock the file to prevent Device Guard/SmartScreen issues
53
+ shell.exec('powershell -Command "Unblock-File -Path solana-install.exe"');
54
+
47
55
  if (dlResult.code !== 0) {
48
56
  log.error("❌ Failed to download Solana installer.");
49
57
  return false;