From 70341a103f7bfd65c680e2aa798f69c2b9b5e137 Mon Sep 17 00:00:00 2001 From: samyfodil Date: Wed, 17 Jul 2024 01:14:37 -0500 Subject: [PATCH] updated js wrapper to download 1.1.0 --- .gitignore | 2 +- README.md | 2 +- index.js | 4 ++-- package.json | 3 +-- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index bc201f2..3e580f6 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,7 @@ node_modules/ dist/ build/ fakeroot/ - +bin/ # Compiled Java class files *.class diff --git a/README.md b/README.md index b7f077e..123b763 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ $ curl https://get.tau.link/dream | sh ``` ## Source -Source is located in `tools/dream` in [https://github.com/taubyte/tau](https://github.com/taubyte/tau). +Source is located in [https://github.com/taubyte/tau](https://github.com/taubyte/tau) under `tools/dream`. ## Usage diff --git a/index.js b/index.js index e6d9b8a..c4d757e 100755 --- a/index.js +++ b/index.js @@ -11,7 +11,7 @@ const packageJson = require("./package.json"); const binaryDir = path.join(__dirname, "bin"); const binaryPath = path.join(binaryDir, "dream"); const versionFilePath = path.join(binaryDir, "version.txt"); -const packageVersion = packageJson.dream; +const packageVersion = packageJson.version; function binaryExists() { return fs.existsSync(binaryPath); @@ -58,7 +58,7 @@ async function downloadAndExtractBinary() { const { os: currentOs, arch: currentArch } = parseAssetName(); const assetName = `dream_${version}_${currentOs}_${currentArch}.tar.gz`; - const assetUrl = `https://github.com/taubyte/tau/releases/download/v${version}/${assetName}`; + const assetUrl = `https://github.com/taubyte/dream/releases/download/v${version}/${assetName}`; console.log(`Downloading dream v${version}...`); const { data, headers } = await axios({ diff --git a/package.json b/package.json index a73dac6..ed79852 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,6 @@ { "name": "@taubyte/dream", - "version": "1.2.0", - "dream": "1.2.0", + "version": "1.1.0", "description": "Node wrapper for taubyte/dream", "bin": { "dream": "./index.js"