Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.
Rust chatgptclaudeclidesktopdesktop-appelectron-alternativegeminilinuxmacosnativefierno-electronrusttauriweb-to-desktopwebsite-to-appwebviewwindowsyoutube
Fix possible grammatical errors injected
Tw93df0056accebb
diff --git a/bin/utils/combine.ts b/bin/utils/combine.tsindex 8b5c7c0e..5f85ba0d 100644--- a/bin/utils/combine.ts+++ b/bin/utils/combine.ts@@ -2,15 +2,17 @@ import fs from 'fs';export default async function combineFiles(files: string[], output: string) {const contents = files.map((file) => {- const fileContent = fs.readFileSync(file);if (file.endsWith('.css')) {- return (- "window.addEventListener('DOMContentLoaded', (_event) => { const css = `" +- fileContent +- "`; const style = document.createElement('style'); style.innerHTML = css; document.head.appendChild(style); });"- );+ const fileContent = fs.readFileSync(file, 'utf-8');+ return `window.addEventListener('DOMContentLoaded', (_event) => {+ const css = ${JSON.stringify(fileContent)};+ const style = document.createElement('style');+ style.innerHTML = css;+ document.head.appendChild(style);+ });`;}+ const fileContent = fs.readFileSync(file);return ("window.addEventListener('DOMContentLoaded', (_event) => { " +fileContent +