// Copies dist-mobile/src/popup/index.html to dist-mobile/index.html // so Capacitor can find the entry point. import fs from "fs"; import path from "path"; import { fileURLToPath } from "url"; const dir = path.dirname(fileURLToPath(import.meta.url)); const src = path.join(dir, "..", "dist-mobile", "src", "popup", "index.html"); const dest = path.join(dir, "..", "dist-mobile", "index.html"); fs.copyFileSync(src, dest);