mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Undo add command line parameter to set portable
undo 4312f76ed7 to include this in a pull
request of its own
This commit is contained in:
@@ -8,9 +8,6 @@ class AtomPortable
|
||||
execDirectoryPath = path.dirname(process.execPath)
|
||||
path.join(execDirectoryPath, '..', '.atom')
|
||||
|
||||
@setPortable: (existingAtomHome) ->
|
||||
fs.copySync(existingAtomHome, @getPortableAtomHomePath())
|
||||
|
||||
@isPortableInstall: (platform, environmentAtomHome) ->
|
||||
return false unless platform is 'win32'
|
||||
return false if environmentAtomHome
|
||||
|
||||
@@ -61,7 +61,6 @@ setupAtomHome = (args) ->
|
||||
return if process.env.ATOM_HOME
|
||||
atomHome = path.join(app.getHomeDir(), '.atom')
|
||||
AtomPortable = require './atom-portable'
|
||||
AtomPortable.setPortable(atomHome) if not AtomPortable.isPortableInstall(process.platform, process.env.ATOM_HOME) and args.setPortable
|
||||
atomHome = AtomPortable.getPortableAtomHomePath() if AtomPortable.isPortableInstall(process.platform, process.env.ATOM_HOME)
|
||||
try
|
||||
atomHome = fs.realpathSync(atomHome)
|
||||
@@ -108,7 +107,6 @@ parseCommandLine = ->
|
||||
options.alias('t', 'test').boolean('t').describe('t', 'Run the specified specs and exit with error code on failures.')
|
||||
options.alias('v', 'version').boolean('v').describe('v', 'Print the version.')
|
||||
options.alias('w', 'wait').boolean('w').describe('w', 'Wait for window to be closed before returning.')
|
||||
options.alias('p', 'set-portable').boolean('p').describe('p', 'Set portable mode.')
|
||||
options.string('socket-path')
|
||||
|
||||
args = options.argv
|
||||
@@ -134,7 +132,6 @@ parseCommandLine = ->
|
||||
profileStartup = args['profile-startup']
|
||||
urlsToOpen = []
|
||||
devResourcePath = process.env.ATOM_DEV_RESOURCE_PATH ? path.join(app.getHomeDir(), 'github', 'atom')
|
||||
setPortable = args['set-portable']
|
||||
|
||||
if args['resource-path']
|
||||
devMode = true
|
||||
@@ -164,6 +161,6 @@ parseCommandLine = ->
|
||||
|
||||
{resourcePath, devResourcePath, pathsToOpen, urlsToOpen, executedFrom, test,
|
||||
version, pidToKillWhenClosed, devMode, safeMode, newWindow, specDirectory,
|
||||
logFile, socketPath, profileStartup, setPortable}
|
||||
logFile, socketPath, profileStartup}
|
||||
|
||||
start()
|
||||
|
||||
Reference in New Issue
Block a user