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

Add glob support for icons field #99

Merged
merged 6 commits into from
Dec 13, 2023

Conversation

wiiznokes
Copy link
Contributor

This works for deb. Using the helpers method, it should be easy to port this to other target. But i don't have a mac for testing, and i should be able to get a Windows in a few weeks.

I know this code is a little shitty, i'm sorry. I never used thiserror crate before, so maybe it can be written with less lines.
Also, i was not able to convert a glob error to the error of this crate. Maybe i missing something here. And somehow, rust-anlyzer just stop working on this project, so a little painful to debug this.

Copy link
Collaborator

@amr-crabnebula amr-crabnebula left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution, you can look for config.icons usage in other targets and replace it with config.icons() and the CI will make sure it works well.

crates/packager/src/config/mod.rs Outdated Show resolved Hide resolved
crates/packager/src/package/deb/mod.rs Outdated Show resolved Hide resolved
crates/packager/src/config/mod.rs Outdated Show resolved Hide resolved
@wiiznokes wiiznokes marked this pull request as ready for review December 13, 2023 15:29
@wiiznokes
Copy link
Contributor Author

I hope it works 🙏

@amr-crabnebula
Copy link
Collaborator

Could you also add a change file .changes directoy?

Copy link
Collaborator

@amr-crabnebula amr-crabnebula left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contributions

@amr-crabnebula amr-crabnebula merged commit 7b083a8 into crabnebula-dev:main Dec 13, 2023
@wiiznokes wiiznokes deleted the support-dir-for-icons branch December 16, 2023 20:31
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.

2 participants