@@ -44,7 +44,7 @@ const targets = singleFlag
4444 : allTargets
4545
4646for ( const item of targets ) {
47- const name = [
47+ const target = [
4848 binary ,
4949 item . os === "win32" ? "windows" : item . os ,
5050 item . arch ,
@@ -53,6 +53,7 @@ for (const item of targets) {
5353 ]
5454 . filter ( Boolean )
5555 . join ( "-" )
56+ const name = target . replace ( binary , "cli" )
5657 console . log ( `building ${ name } ` )
5758 const result = await Bun . build ( {
5859 entrypoints : [ "./src/index.ts" ] ,
@@ -67,7 +68,7 @@ for (const item of targets) {
6768 autoloadDotenv : false ,
6869 autoloadTsconfig : true ,
6970 autoloadPackageJson : true ,
70- target : name . replace ( binary , "bun" ) as Bun . Build . CompileTarget ,
71+ target : target . replace ( binary , "bun" ) as Bun . Build . CompileTarget ,
7172 outfile : `./dist/${ name } /bin/${ binary } ` ,
7273 execArgv : [ `--user-agent=${ binary } /${ Script . version } ` , "--use-system-ca" , "--" ] ,
7374 windows : { } ,
@@ -93,6 +94,7 @@ for (const item of targets) {
9394 name : `@opencode-ai/${ name } ` ,
9495 version : Script . version ,
9596 license : "MIT" ,
97+ repository : { type : "git" , url : "git+https://github.com/anomalyco/opencode.git" } ,
9698 os : [ item . os ] ,
9799 cpu : [ item . arch ] ,
98100 } ,
0 commit comments