fix: add rebuild:better-sqlite3 to electron release

pull/2201/head
Tienson Qin 2021-06-15 22:13:08 +08:00
parent 281c63f0a7
commit 133fbd97ce
2 changed files with 6 additions and 1 deletions

View File

@ -86,6 +86,11 @@ exports.electronMaker = async () => {
}) })
} }
cp.execSync('yarn rebuild:better-sqlite3', {
cwd: outputPath,
stdio: 'inherit'
})
cp.execSync('yarn electron:make', { cp.execSync('yarn electron:make', {
cwd: outputPath, cwd: outputPath,
stdio: 'inherit' stdio: 'inherit'

View File

@ -17,7 +17,7 @@
"forge": "./forge.config.js" "forge": "./forge.config.js"
}, },
"dependencies": { "dependencies": {
"better-sqlite3": "^7.4.1", "better-sqlite3": "7.4.1",
"chokidar": "^3.5.1", "chokidar": "^3.5.1",
"electron-log": "^4.3.1", "electron-log": "^4.3.1",
"electron-squirrel-startup": "^1.0.0", "electron-squirrel-startup": "^1.0.0",