@@ -26,6 +26,10 @@ const channel = (() => {
2626 return "dev"
2727} ) ( )
2828
29+ const getUpdateOwner = ( ) => process . env . OPENCODE_UPDATE_OWNER ?. trim ( ) || "wangzexi"
30+ const getUpdateRepo = ( ) => process . env . OPENCODE_UPDATE_REPO ?. trim ( ) || "opencode"
31+ const getBetaUpdateRepo = ( ) => process . env . OPENCODE_UPDATE_BETA_REPO ?. trim ( ) || getUpdateRepo ( )
32+
2933const getBase = ( ) : Configuration => ( {
3034 artifactName : "opencode-electron-${os}-${arch}.${ext}" ,
3135 directories : {
@@ -95,7 +99,7 @@ function getConfig() {
9599 appId : "ai.opencode.desktop.beta" ,
96100 productName : "OpenCode Beta" ,
97101 protocols : { name : "OpenCode Beta" , schemes : [ "opencode" ] } ,
98- publish : { provider : "github" , owner : "anomalyco" , repo : "opencode-beta" , channel : "latest" } ,
102+ publish : { provider : "github" , owner : getUpdateOwner ( ) , repo : getBetaUpdateRepo ( ) , channel : "latest" } ,
99103 rpm : { packageName : "opencode-beta" } ,
100104 }
101105 }
@@ -105,7 +109,7 @@ function getConfig() {
105109 appId : "ai.opencode.desktop" ,
106110 productName : "OpenCode" ,
107111 protocols : { name : "OpenCode" , schemes : [ "opencode" ] } ,
108- publish : { provider : "github" , owner : "anomalyco" , repo : "opencode" , channel : "latest" } ,
112+ publish : { provider : "github" , owner : getUpdateOwner ( ) , repo : getUpdateRepo ( ) , channel : "latest" } ,
109113 rpm : { packageName : "opencode" } ,
110114 }
111115 }
0 commit comments