build: add production flag to build and release scripts
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@
|
||||
"shiro": "bun run src/cli.tsx",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"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",
|
||||
"install:local": "bun run build && bun run scripts/install.ts"
|
||||
},
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ const OUT = 'dist/release';
|
||||
* failing on the last of five builds.
|
||||
*/
|
||||
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') {
|
||||
args.push(
|
||||
'--windows-title=shiro-neko',
|
||||
|
||||
Reference in New Issue
Block a user