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 = [

View File

@@ -12,6 +12,9 @@ cp dist/voxvera "$APPDIR/usr/bin/voxvera"
chmod +x "$APPDIR/usr/bin/voxvera"
mkdir -p "$APPDIR/usr/lib/voxvera/resources"
cp -r voxvera/resources/tor "$APPDIR/usr/lib/voxvera/resources/"
# also bundle Tor for the Electron GUI
mkdir -p gui/electron/voxvera/resources
cp -r voxvera/resources/tor gui/electron/voxvera/resources/
cat > "$APPDIR/voxvera.desktop" <<EOD
[Desktop Entry]