Integration tests on Windows

This commit is contained in:
DC
2016-09-18 20:37:32 -07:00
parent ed4daeb560
commit ad1162c7de
29 changed files with 3 additions and 4 deletions

View File

@@ -1,6 +1,5 @@
const appConfig = require('application-config')('WebTorrent')
const fs = require('fs')
const os = require('os')
const path = require('path')
const electron = require('electron')
@@ -10,7 +9,7 @@ const APP_VERSION = require('../package.json').version
const IS_TEST = isTest()
const PORTABLE_PATH = IS_TEST
? path.join(process.platform === 'win32' ? os.tmpdir() : '/tmp', 'WebTorrentTest')
? path.join(process.platform === 'win32' ? 'C:\\Windows\\Temp' : '/tmp', 'WebTorrentTest')
: path.join(path.dirname(process.execPath), 'Portable Settings')
const IS_PORTABLE = isPortable()
const IS_PRODUCTION = isProduction()