-
-
Notifications
You must be signed in to change notification settings - Fork 198
Description
Related to #688
Translations and fonts add weight to the package.
For this reason, mainly, we want to split the additional assets that will not serve everyone in a different bundle.
There's a recommended method, but it isn't clear how to manage this.
Requirements:
- Additional packages should be in the main project's code, so contributors can test them and keep them maintained. They can be in a git sub-repo, but they need to be accessible in the main code with minimal fuss
- Additional packages should not be part of the published app. This shouldn't require any manual adjustments and must be doable from a CI environment
- Additional packages should be exportable individually, without repeating the main project's files. This must be doable in a CI, unattended environment
These are all completely unanswered questions.
Before answering them, however, there is the question of packaging and distributing packages in a cross-platform way.
Therefore, here's the plan
- build a small MVP where the app loads a (manually exported) package on Desktop & Web platforms and reaches a similar result in both cases.
- package the update in improvement: Add Chinese font #688 manually and load that. Document the process.
Answers to automation can be found along the way or later (but this issue should not be closed before they are, or another issue is opened)
Note: if loading packages on Web and Desktop is sufficiently divergent, it might be easier to build a version with all packages for Desktop, and use a specific mechanism on the web. This would be also considered a valid resolution, provided the build system doesn't get overly complex as a result.