mirror of
https://github.com/YuzuZensai/Termix.git
synced 2026-09-13 18:58:52 +00:00
13 lines
327 B
JavaScript
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, "");
|
||
|
|
};
|