Skip to content

Commit

Permalink
🌱 Use kai binaries from release v0.0.3 (#157)
Browse files Browse the repository at this point in the history
- Use release v0.0.3

- Adjust `collect-assets.js` to use the "new" asset names

- Use case insensitive asset name matching between release
  assets and the configurations

- Add linux and windows arm64 builds

Signed-off-by: Scott J Dickerson <[email protected]>
  • Loading branch information
sjd78 authored Dec 12, 2024
1 parent 26e09a6 commit d81d4ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/_download.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export async function downloadGitHubRelease({
};

for (const { name, platform, arch, chmod } of assets) {
const releaseAsset = releaseAssets.find((a) => a.name === name);
const releaseAsset = releaseAssets.find((a) => a.name.toLowerCase() === name.toLowerCase());
if (releaseAsset) {
try {
console.group(yellow(releaseAsset.name));
Expand Down
8 changes: 5 additions & 3 deletions scripts/collect-assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ await downloadGitHubRelease({

org: "konveyor",
repo: "kai",
releaseTag: "v0.0.2",
releaseTag: "v0.0.3",

/*
Release asset filenames and nodejs equivalent platform/arch
Expand All @@ -26,9 +26,11 @@ await downloadGitHubRelease({
*/
assets: [
{ name: "kai-rpc-server.linux-x86_64.zip", platform: "linux", arch: "x64", chmod: true },
{ name: "kai-rpc-server.macos-arm64.zip", platform: "darwin", arch: "arm64", chmod: true },
{ name: "kai-rpc-server.linux-aarch64.zip", platform: "linux", arch: "arm64", chmod: true },
{ name: "kai-rpc-server.macos-x86_64.zip", platform: "darwin", arch: "x64", chmod: true },
{ name: "kai-rpc-server.windows-x86_64.zip", platform: "win32", arch: "x64" },
{ name: "kai-rpc-server.macos-arm64.zip", platform: "darwin", arch: "arm64", chmod: true },
{ name: "kai-rpc-server.windows-x64.zip", platform: "win32", arch: "x64" },
{ name: "kai-rpc-server.windows-arm64.zip", platform: "win32", arch: "arm64" },
],
});

Expand Down

0 comments on commit d81d4ae

Please sign in to comment.