-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[WIP]: Add termux_step_install_icons
to generate and install application icons.
#24920
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
base: master
Are you sure you want to change the base?
Conversation
It is an interesting idea, but unfortunately, at least the way this PR currently is, it would break the
Wouldn't it be possible to just make |
I hadn't considered the on-device codepath yet. |
Handles installing application icons for packages. Uses the following three control variables: - `TERMUX_PKG_ICONS` comma separated list of icon files - `TERMUX_PKG_ICON_NAMES` comma separated list of icon names (optional) - `TERMUX_PKG_ICON_SIZES` sizes to generate icons in (defaults to "16, 24, 32, 48, 64, 128, 256")
… and .desktop entry
@robertkirkman could you please verify that this is working as intended for on-device builds now when you have the time? |
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.
It does now, sorry I didn't mention that earlier. I thought there might be more changes coming here.
I was waiting for feedback before adding additional packages with icons to this PR. |
I'm looking through packages that have/should have icons to package.
I've definitely missed some packages but this should be a good starting list to look into. |
This PR adds a new build step which runs immediately after
termux_step_post_make_install
which generates application icons usingimagemagick
andtermux-proot-run
.The
termux_step_install_icons
uses the following three new control variables:TERMUX_PKG_ICONS
- a comma separated list of icon filesTERMUX_PKG_ICON_NAMES
- a comma separated list of icon names (optional)TERMUX_PKG_ICON_SIZES
- sizes to generate icons in (defaults to "16, 24, 32, 48, 64, 128, 256")Additionally
aosp-libs
andimagemagick
will be implicitly added to the build dependencies for a package if it specifiesTERMUX_PKG_ICONS
.This is done mostly for ease of use and convenience, since they are required for running
imagemagick
viatermux-proot-run
.yazi
package.As a proof of concept I have attached commits adapting the build scripts for
yazi
,mpv
andmpv-x
to these changes.I will be adding more packages to this PR later but wanted to put it up for comment and review now.
The wiki pages for;
https://github.com/termux/termux-packages/wiki/Building-packages#build-steps and
https://github.com/termux/termux-packages/wiki/Creating-new-package#package-build-script-variables
will need to be updated with the new build steps and control variable when this PR is merged.