GeezerVison is showing github.com — ci: publish · Integralist/opencode@057958c
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .github/workflows/publish.yml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -112,7 +112,7 @@ jobs: | 112 | 112 | - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | 113 | 113 | with: | 114 | 114 | name: opencode-preview-cli | 115 | | - path: packages/cli/dist/lildax-* | | 115 | + path: packages/cli/dist/cli-* | 116 | 116 |
| 117 | 117 | outputs: | 118 | 118 | version: ${{ needs.version.outputs.version }} | |
Collapse file Copy file name to clipboardExpand all lines: packages/cli/bin/lildax.cjs +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -34,7 +34,7 @@ const scriptDir = path.dirname(fs.realpathSync(__filename)) | 34 | 34 | const cached = path.join(scriptDir, ".lildax") | 35 | 35 | const platform = { darwin: "darwin", linux: "linux", win32: "windows" }[os.platform()] || os.platform() | 36 | 36 | const arch = { x64: "x64", arm64: "arm64", arm: "arm" }[os.arch()] || os.arch() | 37 | | -const base = "@opencode-ai/lildax-" + platform + "-" + arch | | 37 | +const base = "@opencode-ai/cli-" + platform + "-" + arch | 38 | 38 | const binary = platform === "windows" ? "lildax.exe" : "lildax" | 39 | 39 |
| 40 | 40 | function supportsAvx2() { | |
Collapse file Copy file name to clipboardExpand all lines: packages/cli/script/build.ts +4-2Lines changed: 4 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -44,7 +44,7 @@ const targets = singleFlag | 44 | 44 | : allTargets | 45 | 45 |
| 46 | 46 | for (const item of targets) { | 47 | | - const name = [ | | 47 | + const target = [ | 48 | 48 | binary, | 49 | 49 | item.os === "win32" ? "windows" : item.os, | 50 | 50 | item.arch, | @@ -53,6 +53,7 @@ for (const item of targets) { | 53 | 53 | ] | 54 | 54 | .filter(Boolean) | 55 | 55 | .join("-") | | 56 | + const name = target.replace(binary, "cli") | 56 | 57 | console.log(`building ${name}`) | 57 | 58 | const result = await Bun.build({ | 58 | 59 | entrypoints: ["./src/index.ts"], | @@ -67,7 +68,7 @@ for (const item of targets) { | 67 | 68 | autoloadDotenv: false, | 68 | 69 | autoloadTsconfig: true, | 69 | 70 | autoloadPackageJson: true, | 70 | | - target: name.replace(binary, "bun") as Bun.Build.CompileTarget, | | 71 | + target: target.replace(binary, "bun") as Bun.Build.CompileTarget, | 71 | 72 | outfile: `./dist/${name}/bin/${binary}`, | 72 | 73 | execArgv: [`--user-agent=${binary}/${Script.version}`, "--use-system-ca", "--"], | 73 | 74 | windows: {}, | @@ -93,6 +94,7 @@ for (const item of targets) { | 93 | 94 | name: `@opencode-ai/${name}`, | 94 | 95 | version: Script.version, | 95 | 96 | license: "MIT", | | 97 | + repository: { type: "git", url: "git+https://github.com/anomalyco/opencode.git" }, | 96 | 98 | os: [item.os], | 97 | 99 | cpu: [item.arch], | 98 | 100 | }, | |
Collapse file Copy file name to clipboardExpand all lines: packages/cli/script/publish.ts +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -35,6 +35,7 @@ await Bun.file(`./dist/${pkg.name}/package.json`).write( | 35 | 35 | bin: { lildax: "./bin/lildax" }, | 36 | 36 | version, | 37 | 37 | license: pkg.license, | | 38 | + repository: { type: "git", url: "git+https://github.com/anomalyco/opencode.git" }, | 38 | 39 | os: ["darwin", "linux", "win32"], | 39 | 40 | cpu: ["arm64", "x64"], | 40 | 41 | optionalDependencies: binaries, | |
|