mirror of
https://github.com/louislam/its-mytabs.git
synced 2026-01-18 18:59:13 -05:00
32 lines
783 B
TypeScript
32 lines
783 B
TypeScript
import childProcess from "node:child_process";
|
|
|
|
buildWindows();
|
|
|
|
export function buildWindows() {
|
|
try {
|
|
childProcess.spawnSync("deno", [
|
|
"compile",
|
|
"--include",
|
|
"./dist",
|
|
"--include",
|
|
"./deno.jsonc",
|
|
"--include",
|
|
"./extra",
|
|
// "--no-check",
|
|
"--allow-all",
|
|
"--output",
|
|
"its-mytabs.exe",
|
|
"--node-modules-dir=none",
|
|
"--target",
|
|
"x86_64-pc-windows-msvc",
|
|
"--icon",
|
|
"./frontend/public/favicon.ico",
|
|
"./backend/main.ts",
|
|
], {
|
|
stdio: "inherit",
|
|
});
|
|
} catch (error) {
|
|
console.error("Error while building the backend", error);
|
|
}
|
|
}
|