From 5a254e2ab4741bc88c373ae1673c2ad9a7e6a588 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Wed, 21 Oct 2026 11:02:26 +0000 Subject: feat(bundle): add the Tauri editor with shared Dark+ language support Add a single-document Monaco editor, native file dialogs, save handling and prefilled input/output panels. Reuse the plugin's grammar and editor core. Verify frontend behavior and compile the desktop app on Linux. Co-Authored-By: Claude Opus 5.5 --- bundle/scripts/prepare-compiler.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 bundle/scripts/prepare-compiler.js (limited to 'bundle/scripts/prepare-compiler.js') diff --git a/bundle/scripts/prepare-compiler.js b/bundle/scripts/prepare-compiler.js new file mode 100644 index 0000000..de5346a --- /dev/null +++ b/bundle/scripts/prepare-compiler.js @@ -0,0 +1,13 @@ +import { execFileSync } from 'node:child_process'; +import { copyFileSync, mkdirSync } from 'node:fs'; +import path from 'node:path'; +import { fileURLToPath } from 'node:url'; + +const root = fileURLToPath(new URL('..', import.meta.url)); +const target = execFileSync('rustc', ['--print', 'host-tuple'], { encoding: 'utf8' }).trim(); +const extension = process.platform === 'win32' ? '.exe' : ''; +const source = path.resolve(process.argv[2] || path.join(root, '..', 'build', `cpsc${extension}`)); +const destination = path.join(root, 'src-tauri', 'binaries', `cpsc-${target}${extension}`); +mkdirSync(path.dirname(destination), { recursive: true }); +copyFileSync(source, destination); +console.log(`Bundled compiler: ${source}`); -- cgit v1.3.1-4-g156e