fix(script): allow x64 build on Windows

Electron is available for 64-bit Windows machines(https://github.com/atom/electron/issues/980), so we don't need the 32-bit check anymore. Reference: https://github.com/nylas/N1/issues/28
This commit is contained in:
solnj 2015-10-09 19:18:54 +02:00 committed by Evan Morikawa
parent 7e030a1421
commit d5ea09adbc

View file

@ -39,10 +39,6 @@ function makeSqlite3Command() {
var targetPlatform = require('os').platform();
var targetArch = require('os').arch();
if ((targetPlatform == 'win32') && (targetArch != 'ia32')) {
// Unless electron for windows goes 64bit, this should stay
throw new Error("Building for win32 with architecture "+targetArch+". Are you sure you meant to do this?");
}
return npmPath+" install https://github.com/bengotow/node-sqlite3/archive/master.tar.gz --ignore-scripts && cd node_modules/sqlite3 && "+npmPath+" run prepublish && "+nodeGypPath+" configure rebuild --target="+targetVersion+" --arch="+targetArch+" --target_platform="+targetPlatform+" --dist-url=https://atom.io/download/atom-shell --module_name=node_sqlite3 --module_path=../lib/binding/node-v44-"+targetPlatform+"-"+targetArch
}