1
0
Files
auto-git-gui/scripts/prepare-tauri-frontend.mjs
Victor Giers 0e12ac604e auto-git:
[add] scripts/
 [add] src-tauri/
 [add] tauriBridge.js
 [change] .gitignore
 [change] README.md
 [change] index.html
 [change] package.json
 [change] renderer.js
 [change] settings.html
 [unlink] editor-reword.js
 [unlink] main.js
 [unlink] preload.js
 [unlink] rebase-sequence-windows.js
2026-05-04 21:33:17 +02:00

15 lines
488 B
JavaScript

import { cp, mkdir, rm } from 'node:fs/promises';
import path from 'node:path';
const root = process.cwd();
const out = path.join(root, 'dist-tauri');
await rm(out, { recursive: true, force: true });
await mkdir(out, { recursive: true });
for (const file of ['index.html', 'settings.html', 'renderer.js', 'animeCat.js', 'tauriBridge.js']) {
await cp(path.join(root, file), path.join(out, file));
}
await cp(path.join(root, 'assets'), path.join(out, 'assets'), { recursive: true });