mirror of
https://github.com/PR0M3TH3AN/VoxVera.git
synced 2025-09-07 06:28:43 +00:00
gui: reference embedded tor from package
This commit is contained in:
@@ -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 = [
|
||||
|
@@ -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]
|
||||
|
Reference in New Issue
Block a user