mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-17 18:14:53 +08:00
Fix Appveyor
This commit is contained in:
parent
02cb922dea
commit
8587133002
2 changed files with 8 additions and 4 deletions
|
@ -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:
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue