Fix setversion script's yarn call on windows

This commit is contained in:
David Baker 2020-02-19 14:34:27 +00:00
parent d8c8e1b133
commit dd6f52e2de

View file

@ -22,7 +22,7 @@ async function main() {
// set version in package.json: electron-builder will use this to populate
// all the various version fields
await new Promise((resolve, reject) => {
childProcess.execFile('yarn', [
childProcess.execFile(process.platform === 'win32' ? 'yarn.cmd' : 'yarn', [
'version',
'-s',
'--no-git-tag-version', // This also means "don't commit to git" as it turns out