feat: build (#13)

This commit is contained in:
Eric Tuvesson
2024-04-09 22:37:17 +02:00
committed by GitHub
parent 5ef436215d
commit ac1980fed6
4 changed files with 27 additions and 6 deletions

View File

@@ -72,6 +72,14 @@ import { getCurrentPlatform } from '../helper';
// NOTE: Getting error "Cannot set properties of null (setting 'dev')" here,
// It basically means that some package is not relative to this path.
console.log("--- Run 'npm install' ...");
if (platform === "darwin") {
execSync(`npm install electron-notarize`, {
stdio: 'inherit',
env: process.env
})
}
execSync(`npm install --arch=${arch} --scope noodl-editor`, {
stdio: 'inherit',
env: process.env