From 325370a450998f5e2537d119e4b91d4fc085cdd8 Mon Sep 17 00:00:00 2001 From: Amos Wenger Date: Thu, 21 May 2020 00:56:58 +0200 Subject: [PATCH] paths fixes --- release/build.js | 4 ++-- tests/test.js | 3 ++- ts/index.ts | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/release/build.js b/release/build.js index 610510b..855bcf8 100644 --- a/release/build.js +++ b/release/build.js @@ -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 }); @@ -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; diff --git a/tests/test.js b/tests/test.js index ceea405..641482b 100644 --- a/tests/test.js +++ b/tests/test.js @@ -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"), diff --git a/ts/index.ts b/ts/index.ts index 8f87df4..3828443 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -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];