Files
Multi-Debrid-Downloader/scripts/afterPack.cjs
T
Sucukdeluxe a5758aa905 release: publish Multi-Debrid Downloader v2.0.14
Add live English and German localization, queue availability and metadata resolution, responsive package controls, polished navigation and drag interactions, clearer history and account states, and a rebuilt public README. Harden Windows packaging with verified icons and version metadata, archive inspection, and expanded release tests.
2026-08-10 19:42:49 +02:00

33 lines
1.1 KiB
JavaScript

const path = require("path");
const { rcedit } = require("rcedit");
module.exports = async function afterPack(context) {
const productFilename = context.packager?.appInfo?.productFilename;
const productName = context.packager?.appInfo?.productName;
const version = context.packager?.appInfo?.version;
if (!productFilename) {
throw new Error("rcedit: productFilename not available");
}
if (!productName) {
throw new Error("rcedit: productName not available");
}
if (!version) {
throw new Error("rcedit: version not available");
}
const exePath = path.join(context.appOutDir, `${productFilename}.exe`);
const iconPath = path.resolve(__dirname, "..", "assets", "app_icon.ico");
console.log(` • rcedit: patching metadata and icon → ${exePath}`);
await rcedit(exePath, {
icon: iconPath,
"file-version": version,
"product-version": version,
"version-string": {
CompanyName: "Sucukdeluxe",
FileDescription: "Multi-Debrid-Downloader",
InternalFilename: productFilename,
OriginalFilename: `${productFilename}.exe`,
ProductName: productName,
},
});
};