Merge pull request #26 from vector-im/dbkr/fix_setversion_win

Fix setversion script's yarn call on windows
This commit is contained in:
David Baker 2020-02-20 17:47:15 +00:00 committed by GitHub
commit 0ec93e296f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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