From c44d2901e47b23d3ba4dc7c5cea5da7e2a8bfcb2 Mon Sep 17 00:00:00 2001 From: Daniel LaCosse <3759828+daniellacosse@users.noreply.github.com> Date: Wed, 10 Apr 2024 15:52:49 -0400 Subject: [PATCH] fix(client/electron): environment.json path, jsign path (#1955) * fix: environment.json path, jsign path * add fs mkdir * oops, remove stray file --------- Co-authored-by: Vinicius Fortuna --- client/src/www/build.action.mjs | 4 +++- .../electron_app/windows/sign_windows_executable.mjs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/client/src/www/build.action.mjs b/client/src/www/build.action.mjs index a269b33294..6daf6277e1 100644 --- a/client/src/www/build.action.mjs +++ b/client/src/www/build.action.mjs @@ -56,8 +56,10 @@ export async function main(...parameters) { } } + await fs.mkdir(path.resolve(getRootDir(), 'client', 'www'), {recursive: true}); + await fs.writeFile( - path.resolve(getRootDir(), 'www', 'environment.json'), + path.resolve(getRootDir(), 'client', 'www', 'environment.json'), JSON.stringify({ SENTRY_DSN: sentryDsn, APP_VERSION: versionName, diff --git a/server_manager/electron_app/windows/sign_windows_executable.mjs b/server_manager/electron_app/windows/sign_windows_executable.mjs index a7060acaa5..92c13baa22 100644 --- a/server_manager/electron_app/windows/sign_windows_executable.mjs +++ b/server_manager/electron_app/windows/sign_windows_executable.mjs @@ -19,7 +19,7 @@ import {dirname, resolve} from 'path'; import {fileURLToPath, pathToFileURL} from 'url'; import {format} from 'util'; -import {jsign} from '../../../../third_party/jsign/index.mjs'; +import {jsign} from '../../../third_party/jsign/index.mjs'; /** * Get the parent folder path of this script.