Make Portable App also a Silent App
Fixes two portable app bugs, to make the app fully "silent", not just "portable". This means that not only are all data files stored in the "Portable Settings" folder, but the app should leave no trace on the host system. - Disable Electron's single instance mode so no lock file is created in "%APPDATA%\Roaming\WebTorrent". - Put Electron crash files, and other electron files into the "Portable Settings\Temp" folder instead of "%APPDATA%\Temp".
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
/**
|
||||
* Builds app binaries for Mac, Linux, and Windows.
|
||||
* Builds app binaries for Mac, Windows, and Linux.
|
||||
*/
|
||||
|
||||
var cp = require('child_process')
|
||||
@@ -493,6 +493,9 @@ function buildWin32 (cb) {
|
||||
var downloadsPath = path.join(portablePath, 'Downloads')
|
||||
mkdirp.sync(downloadsPath)
|
||||
|
||||
var tempPath = path.join(portablePath, 'Temp')
|
||||
mkdirp.sync(tempPath)
|
||||
|
||||
var archStr = destArch === 'ia32' ? '-ia32' : ''
|
||||
|
||||
var inPath = path.join(DIST_PATH, path.basename(filesPath))
|
||||
|
||||
Reference in New Issue
Block a user