Skip to content

Commit

Permalink
paths fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fasterthanlime committed May 20, 2020
1 parent 01457aa commit 325370a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions release/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ function main(args) {
info("Compiling TypeScript support code...");
$(`npm run ts`);

process.env.VALET_BINDINGS_PATH = `../${artifactPath}`;
process.env.VALET_BINDINGS_PATH = `${artifactPath}`;

if (testRuntime === "electron") {
mkdirSync("test-rig", { recursive: true });
Expand All @@ -242,7 +242,7 @@ function main(args) {
$(`npm i --no-save --no-audit electron`);
process.env.npm_config_arch = old_npm_config_arch;
$(
`"node_modules/.bin/electron" --js-flags=--expose-gc ../tests/test.js`
`"node_modules/.bin/electron" --js-flags=--expose-gc --no-sandbox ../tests/test.js`
);
} catch (e) {
throw e;
Expand Down
3 changes: 2 additions & 1 deletion tests/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ process.on("unhandledRejection", (reason, promise) => {
process.exit(1);
});

const { default: valet, Client, createRequest } = require("..");
const { default: valet, Client } = require("..");
const { createRequest } = require("../support");

const requests = {
VersionGet: createRequest("Version.Get"),
Expand Down
2 changes: 1 addition & 1 deletion ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function getArch(): string {
}

let platform = `${getArch()}-${getOS()}`;
let basePath = `../artifacts`;
let basePath = `./artifacts`;
{
let envKey = "VALET_BINDINGS_BASE";
let envBindingsBase = process.env[envKey];
Expand Down

0 comments on commit 325370a

Please sign in to comment.