diff --git a/.github/assets/fxmanager.ico b/.github/assets/fxmanager.ico new file mode 100644 index 00000000..f13021f9 Binary files /dev/null and b/.github/assets/fxmanager.ico differ diff --git a/scripts/build.ts b/scripts/build.ts index d7a254c6..ed2dafde 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -84,7 +84,10 @@ await Promise.all( const toBuild = targetArg === 'all' ? Object.entries(targets) - : [[targetArg, targets[targetArg as keyof typeof targets]]]; + : ([[targetArg, targets[targetArg as keyof typeof targets]]] as [ + string, + Build.CompileTarget, + ][]); // plugin to remove DEV: labels const stripDevLabels = { @@ -112,13 +115,25 @@ for (const [platform, target] of toBuild) { compile: { target: target as Build.CompileTarget, outfile, + windows: + platform === 'windows' + ? { + title: 'fxManager', + publisher: 'github:fxManagerProject', + description: 'A webpanel to maintain your fivem/redm server.', + icon: './.github/assets/fxmanager.ico', + version: `${version.replace(/[a-zA-Z]+/, '')}`, + copyright: + 'https://github.com/fxManagerProject/fxManager/blob/main/LICENSE', + } + : undefined, }, define: { 'process.env.NODE_ENV': JSON.stringify('production'), 'process.env.VERSION': JSON.stringify(version), }, plugins: [stripDevLabels], - }; + } satisfies Bun.BuildConfig; const result = await Bun.build(buildSettings);