Files
Termix/packaging/build/after-pack.cjs
T
2026-07-17 00:20:46 -05:00

13 lines
327 B
JavaScript

const fs = require("fs");
const path = require("path");
exports.default = async function afterPack(context) {
const { targets, appOutDir } = context;
const isDir = targets.some((t) => t.name === "dir");
if (!isDir) return;
const markerPath = path.join(appOutDir, ".portable");
fs.writeFileSync(markerPath, "");
};