Skip to content

Commit

Permalink
fix(client/electron): environment.json path, jsign path (#1955)
Browse files Browse the repository at this point in the history
* fix: environment.json path, jsign path

* add fs mkdir

* oops, remove stray file

---------

Co-authored-by: Vinicius Fortuna <[email protected]>
  • Loading branch information
daniellacosse and fortuna authored Apr 10, 2024
1 parent 46571bf commit c44d290
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion client/src/www/build.action.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c44d290

Please sign in to comment.