Skip to content

Commit

Permalink
fix selecting the platform to download
Browse files Browse the repository at this point in the history
  • Loading branch information
mimecorg committed Jun 9, 2018
1 parent 84656ef commit b3c091c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -14,12 +14,12 @@ function download( opts, callback ) {

const fileVersion = opts.version || version;

const plaftorm = opts.plaftorm || process.platform;
const platform = opts.platform || process.platform;
const arch = opts.arch || process.arch;

const cacheDir = opts.cache || path.join( os.homedir(), '.launchui' );

const fileName = 'launchui-v' + fileVersion + '-' + plaftorm + '-' + arch + '.zip';
const fileName = 'launchui-v' + fileVersion + '-' + platform + '-' + arch + '.zip';

const zipPath = path.join( cacheDir, fileName );

Expand Down

0 comments on commit b3c091c

Please sign in to comment.