Skip to content
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

Open
wants to merge 3 commits into
base: fourteen
Choose a base branch
from
Open

Conversation

JeyKul
Copy link

@JeyKul JeyKul commented Dec 23, 2024

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.
image

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.

image

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.

libpcre2-dev ccache npm
)

echo "Checking dependencies..."
Copy link
Contributor

@Fede2782 Fede2782 Dec 24, 2024

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:]]*//')
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants