Skip to content

Commit

Permalink
fix: version
Browse files Browse the repository at this point in the history
  • Loading branch information
kvendingoldo committed Oct 1, 2024
1 parent 55e07aa commit f07d89b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ class Release {
constructor (releaseMeta) {
this.version = releaseMeta.tag_name.replace('v', '');
this.builds = releaseMeta.assets.map(asset => new Build(asset.name, asset.browser_download_url));
console.log(this.builds);
}

getBuild (platform, arch) {
const requiredName = `tenv_v${this.version}_${platform}_${arch}.zip`;
console.log(requiredName);
return this.builds.find(build => build.name === requiredName);
}
}
Expand Down
2 changes: 2 additions & 0 deletions lib/releases.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ class Release {
constructor (releaseMeta) {
this.version = releaseMeta.tag_name.replace('v', '');
this.builds = releaseMeta.assets.map(asset => new Build(asset.name, asset.browser_download_url));
console.log(this.builds);
}

getBuild (platform, arch) {
const requiredName = `tenv_v${this.version}_${platform}_${arch}.zip`;
console.log(requiredName);
return this.builds.find(build => build.name === requiredName);
}
}
Expand Down

0 comments on commit f07d89b

Please sign in to comment.