fix(build): Linux needs to build sqlite after pulling electron

This commit is contained in:
Ben Gotow 2015-07-31 12:14:14 -07:00
parent 31512e8d9a
commit bf89ea8c64

View file

@ -43,7 +43,7 @@ function makeSqlite3Command() {
// 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 sqlite3@3.0.9 --ignore-scripts && cd node_modules/sqlite3 && "+npmPath+" run prepublish && "+nodeGypPath+" configure --module_name=node_sqlite3 --module_path=../lib/binding/node-v44-"+targetPlatform+"-"+targetArch+" && "+nodeGypPath+" 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
return npmPath+" install https://github.com/bengotow/node-sqlite3/archive/master.tar.gz --ignore-scripts && cd node_modules/sqlite3 && "+npmPath+" run prepublish && "+nodeGypPath+" configure --module_name=node_sqlite3 --module_path=../lib/binding/node-v44-"+targetPlatform+"-"+targetArch+" && "+nodeGypPath+" 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
}
function bootstrap() {
@ -159,10 +159,6 @@ function bootstrap() {
command: moduleInstallCommand,
message: m4
},
{
command: rebuildSqlite3Command,
message: "Building sqlite3 with command: "+rebuildSqlite3Command
},
{
command: dedupeApmCommand + ' ' + packagesToDedupe.join(' '),
message: m5
@ -175,6 +171,10 @@ function bootstrap() {
{
command: downloadElectronCmd,
message: m7
},
{
command: rebuildSqlite3Command,
message: "Building sqlite3 with command: "+rebuildSqlite3Command
}
]);