Skip to content

Commit

Permalink
fix in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellacosse committed May 1, 2024
1 parent d6c734b commit feea24f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
1 change: 0 additions & 1 deletion client/electron/build.action.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import fs from 'fs/promises';
import path from 'path';
import url from 'url';

import copydir from 'copy-dir';
import electron, {Platform} from 'electron-builder';
import minimist from 'minimist';

Expand Down
2 changes: 1 addition & 1 deletion client/electron/electron-builder.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"client/www",
"client/resources/tray",
"output/client/electron",
"!node_modules/electron"
"!output/client/electron/build"
],
"linux": {
"category": "Network",
Expand Down
17 changes: 9 additions & 8 deletions client/electron/start.action.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import path from 'path';
import url from 'url';

import electron from 'electron';

import {getRootDir} from '../../../src/build/get_root_dir.mjs';
import {runAction} from '../../../src/build/run_action.mjs';
import {spawnStream} from '../../../sßrc/build/spawn_stream.mjs';
import {getBuildParameters} from '../build/get_build_parameters.mjs';
import {getRootDir} from '../../src/build/get_root_dir.mjs';
import {runAction} from '../../src/build/run_action.mjs';
import {spawnStream} from '../../src/build/spawn_stream.mjs';
import {getBuildParameters} from '../src/build/get_build_parameters.mjs';

/**
* @description Builds and starts the electron application.
Expand All @@ -29,13 +30,13 @@ import {getBuildParameters} from '../build/get_build_parameters.mjs';
export async function main(...parameters) {
const {platform, buildMode} = getBuildParameters(parameters);

await runAction('www/build', platform, `--buildMode=${buildMode}`);
await runAction('electron/build_main', ...parameters);
await runAction('electron/build', platform, `--buildMode=${buildMode}`);
await runAction('client/src/www/build', platform, `--buildMode=${buildMode}`);
await runAction('client/electron/build_main', ...parameters);
await runAction('client/electron/build', platform, `--buildMode=${buildMode}`);

process.env.OUTLINE_DEBUG = buildMode === 'debug';

await spawnStream(electron, getRootDir());
await spawnStream(electron, path.join(getRootDir(), 'output', 'client', 'electron'));
}

if (import.meta.url === url.pathToFileURL(process.argv[1]).href) {
Expand Down

0 comments on commit feea24f

Please sign in to comment.