Merge branch 'development' into development_herorun

* development:
  ...
  bump version to 1.0.30
This commit is contained in:
2025-09-07 07:02:09 +04:00
2 changed files with 6 additions and 4 deletions

View File

@@ -48,7 +48,7 @@ fn do() ! {
mut cmd := Command{
name: 'hero'
description: 'Your HERO toolset.'
version: '1.0.29'
version: '1.0.30'
}
// herocmds.cmd_run_add_flags(mut cmd)
@@ -103,4 +103,4 @@ fn main() {
// fn pre_func(cmd Command) ! {
// herocmds.plbook_run(cmd)!
// }
// }

View File

@@ -121,7 +121,9 @@ echo "Download URL for your platform: $url"
# Download the file
curl -o /tmp/downloaded_file -L "$url"
# Check if file size is greater than 10 MB
set -e
# Check if file size is greater than 2 MB
file_size=$(du -m /tmp/downloaded_file | cut -f1)
if [ "$file_size" -ge 2 ]; then
# Create the target directory if it doesn't exist
@@ -139,6 +141,6 @@ if [ "$file_size" -ge 2 ]; then
export PATH=$PATH:$hero_bin_path
hero -version
else
echo "Downloaded file is less than 10 MB. Process aborted."
echo "Downloaded file is less than 2 MB. Process aborted."
exit 1
fi