Skip to content

Commit

Permalink
updated js wrapper to download 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
samyfodil committed Jul 17, 2024
1 parent 46bd504 commit 70341a1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ node_modules/
dist/
build/
fakeroot/

bin/

# Compiled Java class files
*.class
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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({
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 70341a1

Please sign in to comment.