Skip to content
This repository was archived by the owner on Mar 29, 2021. It is now read-only.

Commit 86b2b2e

Browse files
committed
Use Scoop for Windows 32bit
1 parent 189abab commit 86b2b2e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/adapters/iosAdapter.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,12 @@ export class IOSAdapter extends AdapterCollection {
143143
debug(`iOSAdapter.getProxyPath`)
144144
return new Promise((resolve, reject) => {
145145
if (os.platform() === 'win32') {
146-
const x64 = os.arch() === 'x64';
147-
const proxy = x64 ? path.resolve(__dirname, process.env.USERPROFILE + '/scoop/apps/ios-webkit-debug-proxy/current/ios_webkit_debug_proxy.exe') : path.resolve(__dirname, process.env.USERPROFILE + '/AppData/Roaming/npm/node_modules/vs-libimobile/lib/ios_webkit_debug_proxy.exe');
146+
const proxy = path.resolve(__dirname, process.env.USERPROFILE + '/scoop/apps/ios-webkit-debug-proxy/current/ios_webkit_debug_proxy.exe');
148147
try {
149148
fs.statSync(proxy);
150149
resolve(proxy)
151150
} catch (err) {
152-
let message = x64 ? `ios_webkit_debug_proxy.exe not found. Please install 'scoop install ios-webkit-debug-proxy'` : `ios_webkit_debug_proxy.exe not found. Please install 'npm install -g vs-libimobile'`;
151+
let message = `ios_webkit_debug_proxy.exe not found. Please install 'scoop install ios-webkit-debug-proxy'`;
153152
reject(message);
154153
}
155154
} else if (os.platform() === 'darwin' || os.platform() === 'linux') {

0 commit comments

Comments
 (0)