mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-19 14:40:26 +08:00
fix(main): globa.resourcePath now resourcePath
This commit is contained in:
parent
53bd5ab2d0
commit
2699888e47
3 changed files with 210 additions and 209 deletions
|
@ -147,12 +147,12 @@ parseCommandLine = ->
|
|||
# want to test.
|
||||
if test and toString.call(test) is "[object String]"
|
||||
if test is "core"
|
||||
specDirectory = path.join(global.devResourcePath, "spec")
|
||||
specDirectory = path.join(devResourcePath, "spec")
|
||||
else if test is "window"
|
||||
specDirectory = path.join(global.devResourcePath, "spec")
|
||||
specDirectory = path.join(devResourcePath, "spec")
|
||||
specsOnCommandLine = false
|
||||
else
|
||||
specDirectory = path.resolve(path.join(global.devResourcePath, "internal_packages", test))
|
||||
specDirectory = path.resolve(path.join(devResourcePath, "internal_packages", test))
|
||||
|
||||
devMode = true if test
|
||||
resourcePath ?= devResourcePath if devMode
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Generated by CoffeeScript 1.9.2
|
||||
(function() {
|
||||
var app, fs, handleStartupEventWithSquirrel, normalizeDriveLetterName, optimist, parseCommandLine, path, setupCompileCache, setupCrashReporter, setupErrorLogger, setupNylasHome, start;
|
||||
|
||||
global.shellStartTime = Date.now();
|
||||
|
@ -170,12 +172,12 @@ parseCommandLine = function() {
|
|||
} else {
|
||||
if (test && toString.call(test) === "[object String]") {
|
||||
if (test === "core") {
|
||||
specDirectory = path.join(global.devResourcePath, "spec");
|
||||
specDirectory = path.join(devResourcePath, "spec");
|
||||
} else if (test === "window") {
|
||||
specDirectory = path.join(global.devResourcePath, "spec");
|
||||
specDirectory = path.join(devResourcePath, "spec");
|
||||
specsOnCommandLine = false;
|
||||
} else {
|
||||
specDirectory = path.resolve(path.join(global.devResourcePath, "internal_packages", test));
|
||||
specDirectory = path.resolve(path.join(devResourcePath, "internal_packages", test));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -216,5 +218,4 @@ parseCommandLine = function() {
|
|||
|
||||
start();
|
||||
|
||||
// ---
|
||||
// generated by coffee-script 1.9.2
|
||||
}).call(this);
|
||||
|
|
|
@ -68,8 +68,8 @@ class WindowManager
|
|||
else
|
||||
if @devMode
|
||||
try
|
||||
bootstrapScript = require.resolve(path.join(global.devResourcePath, 'src', 'window-bootstrap'))
|
||||
resourcePath = global.devResourcePath
|
||||
bootstrapScript = require.resolve(path.join(@resourcePath, 'src', 'window-bootstrap'))
|
||||
resourcePath = @resourcePath
|
||||
bootstrapScript ?= require.resolve('../window-bootstrap')
|
||||
resourcePath ?= @resourcePath
|
||||
|
||||
|
|
Loading…
Reference in a new issue