build: add production flag to build and release scripts
ci / check (macos-latest) (push) Canceled after 0s
ci / check (ubuntu-latest) (push) Canceled after 0s
ci / check (windows-latest) (push) Canceled after 0s

This commit is contained in:
asepharyana
2026-09-09 20:53:30 +07:00
parent 7a1e415fea
commit 14d603f296
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -10,7 +10,7 @@
"shiro": "bun run src/cli.tsx", "shiro": "bun run src/cli.tsx",
"typecheck": "tsc --noEmit", "typecheck": "tsc --noEmit",
"test": "bun test", "test": "bun test",
"build": "bun build --compile --minify src/cli.tsx --outfile dist/shiro", "build": "bun build --compile --production --minify src/cli.tsx --outfile dist/shiro",
"release": "bun run scripts/release.ts", "release": "bun run scripts/release.ts",
"install:local": "bun run build && bun run scripts/install.ts" "install:local": "bun run build && bun run scripts/install.ts"
}, },
+1 -1
View File
@@ -29,7 +29,7 @@ const OUT = 'dist/release';
* failing on the last of five builds. * failing on the last of five builds.
*/ */
export function buildArgs(t: Target, outfile: string, host = process.platform): string[] { export function buildArgs(t: Target, outfile: string, host = process.platform): string[] {
const args = ['build', '--compile', '--minify', `--target=${t.target}`, 'src/cli.tsx', '--outfile', outfile]; const args = ['build', '--compile', '--production', '--minify', `--target=${t.target}`, 'src/cli.tsx', '--outfile', outfile];
if (t.windows && host === 'win32') { if (t.windows && host === 'win32') {
args.push( args.push(
'--windows-title=shiro-neko', '--windows-title=shiro-neko',