This repository has been archived on 2026-11-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files

24 lines
630 B
JavaScript

import path from 'node:path'
import { rcedit } from 'rcedit'
const exePath = process.argv[2]
if (!exePath) {
console.error('Usage: node scripts/brand-exe.mjs <path-to-exe>')
process.exit(1)
}
await rcedit(exePath, {
icon: path.resolve('assets/icon.ico'),
'version-string': {
CompanyName: 'FMCRAFT',
FileDescription: 'FMCRAFT Chat Desktop',
InternalName: 'FMCRAFT Chat Desktop',
OriginalFilename: path.basename(exePath),
ProductName: 'FMCRAFT Chat Desktop',
LegalCopyright: 'Copyright © FMCRAFT',
},
'file-version': '1.0.0',
'product-version': '1.0.0',
})
console.log(`branded ${exePath}`)