From f07d89bc35b501c8c0703bcc32b37ac14967946f Mon Sep 17 00:00:00 2001 From: Alexander Date: Tue, 1 Oct 2024 22:00:09 +0200 Subject: [PATCH] fix: version --- dist/index.js | 2 ++ lib/releases.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/dist/index.js b/dist/index.js index 1a436f9..f310d0c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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); } } diff --git a/lib/releases.js b/lib/releases.js index 3bfa0bd..b8e6c8a 100644 --- a/lib/releases.js +++ b/lib/releases.js @@ -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); } }