Use electron instead of electron-prebuilt

Now electron-prebuilt is deprecated.
https://github.com/electron-userland/electron-prebuilt/tree/v1.4.2#installation
This commit is contained in:
Yuya Ochiai
2016-11-08 00:00:45 +09:00
parent efa1171763
commit f3ee426ef5
2 changed files with 13 additions and 10 deletions

View File

@@ -12,10 +12,10 @@ const Application = require('spectron').Application;
const sourceRootDir = path.join(__dirname, '../..');
const electronBinaryPath = (() => {
if (process.platform === 'darwin') {
return path.join(sourceRootDir, 'node_modules/electron-prebuilt/dist/Electron.app/Contents/MacOS/Electron');
return path.join(sourceRootDir, 'node_modules/electron/dist/Electron.app/Contents/MacOS/Electron');
}
const exeExtension = (process.platform === 'win32') ? '.exe' : '';
return path.join(sourceRootDir, 'node_modules/electron-prebuilt/dist/electron' + exeExtension);
return path.join(sourceRootDir, 'node_modules/electron/dist/electron' + exeExtension);
})();
const configFilePath = path.join(sourceRootDir, 'test/test_config.json');
const mattermostURL = 'http://example.com/team';