Skip to content

Commit

Permalink
remove heta update
Browse files Browse the repository at this point in the history
  • Loading branch information
metelkin committed Jun 21, 2024
1 parent 2283ae7 commit c917a58
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bin/heta.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
3 changes: 2 additions & 1 deletion bin/print-version-message.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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'));
Expand Down

0 comments on commit c917a58

Please sign in to comment.