Skip to content

Commit

Permalink
fix: wrong binary path
Browse files Browse the repository at this point in the history
gndplayground committed Oct 25, 2020
1 parent 4c34a1b commit d81b17d
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion npm/getBinary.js
Original file line number Diff line number Diff line change
@@ -35,7 +35,7 @@ function getBinaryDir() {

function getBinaryPath() {
const config = getConfig();
return join(config.dir, config.name);
return join(config.dir, `${config.name}-${config.platform}`);
}

module.exports = {
4 changes: 2 additions & 2 deletions npm/install.js
Original file line number Diff line number Diff line change
@@ -7,11 +7,11 @@ const rimraf = require("rimraf");

const { existsSync } = require("fs");

const { getConfig, getBinaryPath } = require("./getBinary");
const { getConfig, getBinaryDir } = require("./getBinary");

const config = getConfig();

const binaryDirectory = getBinaryPath();
const binaryDirectory = getBinaryDir();

if (existsSync(binaryDirectory)) {
rimraf.sync(binaryDirectory);
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zuzu",
"version": "0.0.1-beta.7",
"version": "0.0.1-beta.8",
"description": "",
"bin": {
"zuzu": "./npm/run.js"

0 comments on commit d81b17d

Please sign in to comment.