Refactor the herolib repo:

- Removed the unused files
- Updated the README
- Added all needed scripts in /scripts dir
- Update script paths in CI configuration
- Update script paths in Go code
- Move installation scripts to scripts directory
- Change script path from ./install_v.sh to ./scripts/install_v.sh
This commit is contained in:
Mahmoud-Emad
2025-11-17 15:04:49 +02:00
parent 2ab0dfa6b8
commit 49868a18e1
445 changed files with 18 additions and 40974 deletions

View File

@@ -57,10 +57,10 @@ pub fn (mut node Node) hero_install(args HeroInstallArgs) ! {
mut todo := []string{}
if !args.compile {
todo << 'curl https://raw.githubusercontent.com/incubaid/herolib/refs/heads/development/install_hero.sh > /tmp/install.sh'
todo << 'curl https://raw.githubusercontent.com/incubaid/herolib/refs/heads/development/scripts/install_hero.sh > /tmp/install.sh'
todo << 'bash /tmp/install.sh'
} else {
todo << "curl 'https://raw.githubusercontent.com/incubaid/herolib/refs/heads/development/install_v.sh' > /tmp/install_v.sh"
todo << "curl 'https://raw.githubusercontent.com/incubaid/herolib/refs/heads/development/scripts/install_v.sh' > /tmp/install_v.sh"
if args.v_analyzer {
todo << 'bash /tmp/install_v.sh --analyzer --herolib '
} else {

View File

@@ -101,7 +101,7 @@ pub fn compile(args InstallArgs) ! {
cmd := "
cd /tmp
export TERM=xterm
curl 'https://raw.githubusercontent.com/incubaid/herolib/refs/heads/development/install_v.sh' > /tmp/install_v.sh
curl 'https://raw.githubusercontent.com/incubaid/herolib/refs/heads/development/scripts/install_v.sh' > /tmp/install_v.sh
bash /tmp/install_v.sh --herolib
"
osal.execute_stdout(cmd) or { return error('Cannot install hero.\n${err}') }