Skip to content

Commit

Permalink
chore: Updated installOneAuth script to target correct version. (micr…
Browse files Browse the repository at this point in the history
…osoft#5020)

* Updated installOneAuth script to target correct version.

* Better refactor
  • Loading branch information
tonyanziano authored Dec 1, 2020
1 parent 77d1be0 commit 2c690e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Composer/packages/electron-server/scripts/installOneAuth.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const { log } = require('./common');
*/

let packageName = null;
const packageVersion = '1.14.0';

switch (process.platform) {
case 'darwin':
Expand Down Expand Up @@ -54,7 +55,7 @@ async function downloadPackage() {
log.info('Starting download.');
await ensureDir(outDir);
try {
execSync(`cd ${outDir} && npm pack ${packageName}`, { encoding: 'utf-8' });
execSync(`cd ${outDir} && npm pack ${packageName}@${packageVersion}`, { encoding: 'utf-8' });
} catch (err) {
process.exit(1);
return;
Expand Down

0 comments on commit 2c690e8

Please sign in to comment.