From c917a58578eea02b60c4e43cd9a2f0fa5b9f6cdb Mon Sep 17 00:00:00 2001 From: Evgeny Metelkin Date: Fri, 21 Jun 2024 16:21:04 +0300 Subject: [PATCH] remove heta update --- README.md | 12 ++++-------- bin/heta.js | 2 +- bin/print-version-message.js | 3 ++- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 5f83bd6d..dc11783c 100644 --- a/README.md +++ b/README.md @@ -57,16 +57,14 @@ Metelkin, E., (2021). Heta compiler: a software tool for the development of larg For all users (requires sudo previleges) ```bash -# replace [Required version] by value, i.e. v0.8.1 -sudo wget -O /usr/local/bin/heta https://github.com/hetalang/heta-compiler/releases/download/[Required version]/heta-compiler-linux-x64 && sudo chmod +x /usr/local/bin/heta +sudo wget -O /usr/local/bin/heta https://github.com/hetalang/heta-compiler/releases/latest/download/heta-compiler-linux-x64 && sudo chmod +x /usr/local/bin/heta ``` For single user without sudo previleges ```bash -# replace [Required version] by value, i.e. v0.8.1 mkdir -p ~/bin -wget -O ~/bin/heta https://github.com/hetalang/heta-compiler/releases/download/[Required version]/heta-compiler-linux-x64 +wget -O ~/bin/heta https://github.com/hetalang/heta-compiler/releases/latest/download/heta-compiler-linux-x64 chmod +x ~/bin/heta echo "export PATH=$PATH:~/bin" >> ~/.bashrc source ~/.bashrc @@ -77,16 +75,14 @@ source ~/.bashrc For all users (requires sudo previleges) ```bash -# replace [Required version] by value, i.e. v0.8.1 -sudo wget -O /usr/local/bin/heta https://github.com/hetalang/heta-compiler/releases/download/[Required version]/heta-compiler-macos-x64 && sudo chmod +x /usr/local/bin/heta +sudo wget -O /usr/local/bin/heta https://github.com/hetalang/heta-compiler/releases/latest/download/heta-compiler-macos-x64 && sudo chmod +x /usr/local/bin/heta ``` For single user without sudo previleges ```bash -# replace [Required version] by value, i.e. v0.8.1 mkdir -p ~/bin -wget -O ~/bin/heta https://github.com/hetalang/heta-compiler/releases/download/[Required version]/heta-compiler-macos-x64 +wget -O ~/bin/heta https://github.com/hetalang/heta-compiler/releases/latest/download/heta-compiler-macos-x64 chmod +x ~/bin/heta echo "export PATH=$PATH:~/bin" >> ~/.bashrc source ~/.bashrc diff --git a/bin/heta.js b/bin/heta.js index c1c72dfc..b412b388 100644 --- a/bin/heta.js +++ b/bin/heta.js @@ -13,5 +13,5 @@ program .description(descriptionText) .command('build [dir]', 'Compile Heta based platform and create set of export files.') .command('init [dir]', 'Create template platform files in directory.') - .command('update', 'Update heta-compiler to the latest version.') + //.command('update', 'Update heta-compiler to the latest version.') .parse(process.argv); diff --git a/bin/print-version-message.js b/bin/print-version-message.js index 7cbe94d0..83461d0a 100644 --- a/bin/print-version-message.js +++ b/bin/print-version-message.js @@ -6,6 +6,7 @@ const semver = require('semver'); const currentVersion = pkg.version; const changelogLink = 'https://hetalang.github.io/#/heta-compiler/CHANGELOG'; const NPM_REF = 'http://registry.npmjs.org/-/package/heta-compiler/dist-tags'; +const installLink = 'https://hetalang.github.io/#/heta-compiler/?id=installation'; async function getLatestVersionAsync(){ try { @@ -27,7 +28,7 @@ async function printVersionMessage(){ let msg = [ colors.magenta.italic('FYI. Newer version of heta-compiler is available.'), colors.magenta.italic(`See changes here: ${changelogLink}`), - colors.magenta(`Run "heta update" to update ${currentVersion} => ${latestVersion}`), + colors.magenta(`To reinstall ${currentVersion} => ${latestVersion}: ${installLink}`), '','' ]; process.stdout.write(msg.join('\n'));