Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .github/assets/fxmanager.ico
Binary file not shown.
19 changes: 17 additions & 2 deletions scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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);

Expand Down
Loading