Fix Appveyor

This commit is contained in:
Ben Gotow 2021-04-13 11:54:18 -05:00
parent 02cb922dea
commit 8587133002
2 changed files with 8 additions and 4 deletions

View file

@ -27,8 +27,9 @@ install:
git submodule --quiet update --init mailsync *>$null
build_script:
- cmd: npm install
- cmd: cd .\mailsync && .\build.cmd && cd ..\
- cmd: npm install && npm run build
- cmd: npm run build
- cmd: node app/build/create-signed-windows-installer.js
before_deploy:

View file

@ -109,12 +109,15 @@ if (cacheElectronTarget !== npmElectronTarget) {
rimraf.sync(appModulesPath);
}
// Audit is emitted with npm ls, no need to run it on EVERY command which is an odd default
const opts = ' --no-audit';
// run `npm install` in ./app with Electron NPM config
npm('install', { cwd: './app', env: 'electron' }).then(() => {
npm(`install${opts}`, { cwd: './app', env: 'electron' }).then(() => {
// run `npm dedupe` in ./app with Electron NPM config
npm('dedupe', { cwd: './app', env: 'electron' }).then(() => {
npm(`dedupe${opts}`, { cwd: './app', env: 'electron' }).then(() => {
// run `npm ls` in ./app - detects missing peer dependencies, etc.
npm('ls', { cwd: './app', env: 'electron' }).then(() => {
npm(`ls`, { cwd: './app', env: 'electron' }).then(() => {
// write the marker with the electron version
fs.writeFileSync(cacheVersionPath, npmElectronTarget);