gui: reference embedded tor from package

This commit is contained in:
thePR0M3TH3AN
2025-06-21 18:38:16 -04:00
parent 3af45f9cea
commit b30b643ae1
2 changed files with 6 additions and 2 deletions

View File

@@ -5,9 +5,10 @@ const getPort = require('get-port');
async function launchTor() {
const socks = await getPort();
const control = await getPort();
const exe = path.join(__dirname, 'resources', 'tor', process.platform,
const torBase = path.join(__dirname, '..', '..', 'voxvera', 'resources', 'tor');
const exe = path.join(torBase, process.platform,
process.platform === 'win32' ? 'tor.exe' : 'tor');
const obfs4 = path.join(__dirname, 'resources', 'tor', process.platform,
const obfs4 = path.join(torBase, process.platform,
process.platform === 'win32' ? 'obfs4proxy.exe' : 'obfs4proxy');
const args = [