aboutsummaryrefslogtreecommitdiff
path: root/bundle/scripts
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-21 11:02:26 +0000
committer_ov4 <ov4@ov4.org>2026-10-21 11:02:26 +0000
commit5a254e2ab4741bc88c373ae1673c2ad9a7e6a588 (patch)
treec26f6fb9186ac4c8d121349909689cd045f9d11f /bundle/scripts
parentc17775323baf93e0d9bd44a6f83cd32a986b6fcb (diff)
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 <noreply@anthropic.com>
Diffstat (limited to 'bundle/scripts')
-rw-r--r--bundle/scripts/prepare-compiler.js13
1 files changed, 13 insertions, 0 deletions
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}`);