const fs = require("node:fs"); const path = require("node:path"); // Keep one pre-Chromium entrypoint for AppRun, desktop entries, updates, and tarballs. exports.installLinuxLauncher = function installLinuxLauncher(appOutDir) { const launcher = path.join(appOutDir, "Paseo"); if (!fs.existsSync(`${launcher}.bin`)) { fs.renameSync(launcher, `${launcher}.bin`); } fs.copyFileSync(path.join(__dirname, "launcher.sh"), launcher); fs.chmodSync(launcher, 0o755); };