代码拉取完成,页面将自动刷新
const rcedit = require("rcedit");
const options = {
"version-string": {
ProductName: "filesync",
FileDescription: "一个简单的文件/文字同步工具",
FileVersion: "5.0.0",
ProductVersion: "5.0.0",
OriginalFilename: "filesync.exe",
InternalName: "filesync.exe",
CompanyName: "unknown",
LegalCopyright:"Copyright © 2023-2024 NoRain"
},
"file-version": "3.14159.26535.897.932.384.626",
"product-version": "5.0.0",
icon: "./dist/client/favicon.ico",
};
const exePath = ".pkg-cache/v3.4/built-v16.16.0-win-x64";
async function main() {
try {
await rcedit(exePath, options);
console.log("Executable file has been updated.");
} catch (error) {
console.error("Error while updating executable file:", error);
}
}
main();
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。