mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-23 23:54:13 +08:00
fix(mac-notifier): Manually install on darwin (for now)
This commit is contained in:
parent
37eeb67033
commit
3873f31817
1 changed files with 17 additions and 0 deletions
|
@ -25,6 +25,16 @@ function makeSqlite3Command() {
|
||||||
return npmPath + " install https://github.com/bengotow/better-sqlite3/archive/a888061ad334c76d2db4c06554c90785cc6e7cce.tar.gz --ignore-scripts && cd node_modules/better-sqlite3 && "+nodeGypPath+" configure rebuild --msvs_version=2013 --target="+targetElectronVersion+" --arch="+targetArch+" --target_platform="+targetPlatform+" --dist-url=https://atom.io/download/atom-shell"
|
return npmPath + " install https://github.com/bengotow/better-sqlite3/archive/a888061ad334c76d2db4c06554c90785cc6e7cce.tar.gz --ignore-scripts && cd node_modules/better-sqlite3 && "+nodeGypPath+" configure rebuild --msvs_version=2013 --target="+targetElectronVersion+" --arch="+targetArch+" --target_platform="+targetPlatform+" --dist-url=https://atom.io/download/atom-shell"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function makeNodeMacNotifierCommand() {
|
||||||
|
var nodeGypPath = '"' + path.resolve(__dirname, '..', 'build', 'node_modules', 'npm', 'node_modules', '.bin', 'node-gyp') + '"';
|
||||||
|
var targetArch = require('os').arch();
|
||||||
|
|
||||||
|
// Use our local version of npm (npm 3x) to build sqlite
|
||||||
|
var npmPath = '"' + path.resolve(__dirname, '..', 'build', 'node_modules', '.bin', 'npm') + '"';
|
||||||
|
return npmPath + " install node-mac-notifier --ignore-scripts && cd node_modules/node-mac-notifier && "+nodeGypPath+" configure rebuild --msvs_version=2013 --target="+targetElectronVersion+" --arch="+targetArch+" --target_platform="+targetPlatform+" --dist-url=https://atom.io/download/atom-shell"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Executes an array of commands in series
|
// Executes an array of commands in series
|
||||||
function executeCommands(commands, done, index) {
|
function executeCommands(commands, done, index) {
|
||||||
|
@ -240,6 +250,13 @@ function bootstrap() {
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
if (process.platform === 'darwin') {
|
||||||
|
commands.push({
|
||||||
|
command: makeNodeMacNotifierCommand(),
|
||||||
|
message: "Building node-mac-notifier"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
process.chdir(path.dirname(__dirname));
|
process.chdir(path.dirname(__dirname));
|
||||||
executeCommands(commands, function() {
|
executeCommands(commands, function() {
|
||||||
console.log("---------------------------------------------");
|
console.log("---------------------------------------------");
|
||||||
|
|
Loading…
Reference in a new issue