mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-07-17 05:43:36 +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, "");
|
|
};
|