const { execSync } = require("child_process"); const TOKEN = "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"; if (!TOKEN) { console.error("โŒ Missing TOKEN in environment variables."); process.exit(1); } try { console.log("๐Ÿ”„ Cloning repo..."); execSync(`git clone https://${TOKEN}@github.com/jonellcc/GDPS-CONVERTER-V2.git`, { stdio: "inherit" }); console.log("๐Ÿ“‚ Moving files..."); execSync(`mv GDPS-CONVERTER-V2/* ./`, { stdio: "inherit" }); execSync(`mv GDPS-CONVERTER-V2/.* ./ || true`, { stdio: "inherit" }); console.log("๐Ÿงน Cleaning up..."); execSync(`rm -rf GDPS-CONVERTER-V2`, { stdio: "inherit" }); console.log("๐Ÿ“ฆ Installing dependencies..."); execSync(`npm install`, { stdio: "inherit" }); console.log("๐Ÿš€ Starting app..."); execSync(`node index.js`, { stdio: "inherit" }); } catch (err) { console.error("โŒ Error during bootstrap:", err); process.exit(1); }