-
-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improvements to UN1CA #279
base: fourteen
Are you sure you want to change the base?
Conversation
…way, help, dependencycheck: apt, venv
libpcre2-dev ccache npm | ||
) | ||
|
||
echo "Checking dependencies..." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This way you are considering that only Debian-based distros will be used for ROM building. You should adapt this logic to check if distro is Debian based. Possibly some packages are also available only in certain distros/releases.
Openjdk 11 is the minimum required version. And if I remember correctly also unzip package has to be installed.
echo -e "Available cmds:" | ||
for script in "scripts"/*.sh; do | ||
CMD_NAME=$(basename "$script" .sh) | ||
HELP_LINES=$(grep "^# CMD_HELP" "$script" | sed 's/^# CMD_HELP[[:space:]]*//') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a thought of mine, I think creating a function inside each script which prints the help is a bit better than this actual implementation.
@@ -32,14 +94,30 @@ TOOLS_DIR="$OUT_DIR/tools/bin" | |||
|
|||
PATH="$TOOLS_DIR:$PATH" | |||
|
|||
run_cmd() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This breaks workflows. You should change them too.
2329b71
to
96631e8
Compare
Hey, here i am doing a Pull request to add improvements to UN1CA!
Following things have been improved:
Instead of the unclear "run_cmd" command we now use "unica"
The buildenv.sh also shows how you can look at the commands.
It clones submodules, installs dependencies, creates a venv (for the new downloader) and builds all dependencies. also a nice menu that shows all the devices in the target folder and is selectable by entering a number.
New Downloader using Python (old one isnt removed yet!) (Thanks to anyone that contributed to the fork from @ananjaser1211!!)
It downloads faster in my experience.