Nothing Special   »   [go: up one dir, main page]

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

chore: Move assets to separate toml file #32

Merged
merged 2 commits into from
Dec 31, 2023
Merged

Conversation

dustinblackman
Copy link
Owner
@dustinblackman dustinblackman commented Dec 31, 2023

Overview

This refactors the syntax and theme assets that are managed and downloaded when building Oatmeal. Configurations now live in a assets.toml file, porting what previously existed in build.rs.

Additionally to the previous variables, each asset now as a nix-hash that's generated by running cargo xtask hash-assets that will later be used to create a Nix package in the official repository.

Lastly, syntaxes and themes can now be configured to be downloaded outside of running cargo build by setting the OATMEAL_BUILD_DOWNLOADED_SYNTAXES_DIR and OATMEAL_BUILD_DOWNLOADED_THEMES_DIR environment variables. When set, build.rs will use files available in those directories rather than downloading the assets defined in assets.toml.

@dustinblackman dustinblackman self-assigned this Dec 31, 2023
@dustinblackman dustinblackman marked this pull request as ready for review December 31, 2023 04:26
@dustinblackman dustinblackman force-pushed the external-assets branch 2 times, most recently from dbf9a1c to e4e46b5 Compare December 31, 2023 04:31
@dustinblackman dustinblackman merged commit 865c435 into main Dec 31, 2023
6 checks passed
@dustinblackman dustinblackman deleted the external-assets branch December 31, 2023 17:54
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.

1 participant