@xaidenlabs/uso 1.1.74 → 1.1.75
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 +1 -1
- package/src/commands/verify.js +4 -10
package/package.json
CHANGED
package/src/commands/verify.js
CHANGED
|
@@ -7,7 +7,7 @@ const { log, spinner } = require('../utils/logger');
|
|
|
7
7
|
const { ensureWalletInteractive, resolveSolanaKeygen } = require('../utils/wallet');
|
|
8
8
|
const { getCargoBinPath } = require('../utils/paths');
|
|
9
9
|
const { isStealthMode } = require('../utils/stealth');
|
|
10
|
-
const { runWsl } = require('../utils/wsl-bridge');
|
|
10
|
+
const { runWsl, toWslPath } = require('../utils/wsl-bridge');
|
|
11
11
|
|
|
12
12
|
const getSolanaBin = () => {
|
|
13
13
|
if (shell.which('solana')) return 'solana';
|
|
@@ -134,17 +134,11 @@ const verify = async () => {
|
|
|
134
134
|
let buildResult;
|
|
135
135
|
|
|
136
136
|
if (stealth.enabled) {
|
|
137
|
-
//
|
|
138
|
-
const
|
|
139
|
-
const copyCmd = `mkdir -p ${wslTempDir} && cp -r /mnt/c/Users/*/AppData/Local/Temp/uso-verification-* ${wslTempDir}`;
|
|
140
|
-
|
|
141
|
-
// Copy files to WSL
|
|
142
|
-
runWsl(`mkdir -p ${wslTempDir} && cp -r "${tempDir.replace(/\\/g, '/')}" ${wslTempDir}/project`, {
|
|
143
|
-
distro: stealth.distro
|
|
144
|
-
});
|
|
137
|
+
// Convert Windows path to WSL path
|
|
138
|
+
const wslProjectPath = toWslPath(tempDir);
|
|
145
139
|
|
|
146
140
|
// Run anchor build in WSL
|
|
147
|
-
const buildCmd = `
|
|
141
|
+
const buildCmd = `source $HOME/.cargo/env 2>/dev/null && cd "${wslProjectPath}" && anchor build`;
|
|
148
142
|
buildResult = runWsl(buildCmd, {
|
|
149
143
|
distro: stealth.distro,
|
|
150
144
|
execOpts: { silent: false }
|