Skip to content

Commit 057958c

Browse files
committed
ci: publish
1 parent b1a7ee5 commit 057958c

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ jobs:
112112
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
113113
with:
114114
name: opencode-preview-cli
115-
path: packages/cli/dist/lildax-*
115+
path: packages/cli/dist/cli-*
116116

117117
outputs:
118118
version: ${{ needs.version.outputs.version }}

packages/cli/bin/lildax.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const scriptDir = path.dirname(fs.realpathSync(__filename))
3434
const cached = path.join(scriptDir, ".lildax")
3535
const platform = { darwin: "darwin", linux: "linux", win32: "windows" }[os.platform()] || os.platform()
3636
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
3838
const binary = platform === "windows" ? "lildax.exe" : "lildax"
3939

4040
function supportsAvx2() {

packages/cli/script/build.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const targets = singleFlag
4444
: allTargets
4545

4646
for (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
},

packages/cli/script/publish.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ await Bun.file(`./dist/${pkg.name}/package.json`).write(
3535
bin: { lildax: "./bin/lildax" },
3636
version,
3737
license: pkg.license,
38+
repository: { type: "git", url: "git+https://github.com/anomalyco/opencode.git" },
3839
os: ["darwin", "linux", "win32"],
3940
cpu: ["arm64", "x64"],
4041
optionalDependencies: binaries,

0 commit comments

Comments
 (0)