Added README-UTIL.md

This commit is contained in:
Said Achmiz 2019-02-05 16:45:33 -05:00
parent 09720e8b14
commit 950eebcc2d

23
util/README-UTIL.md Normal file
View File

@ -0,0 +1,23 @@
# Convenience scripts
This folder contains some convenience scripts. Theyre mostly for me, but may be useful for anyone who wants to contribute to developing AlwaysKillSticky, so theyre documented here for completeness.
## `build-all.php`
Runs `build.sh` with all available platforms. This will create a `build/` directory (in the root directory of the repository) and subdirectories for each platform, and copy files from `src/` into those subdirectories. The extension can then be loaded from those subdirectories by the appropriate kind of browser.
## `package.php`
Will create `.tar.gz` and `.zip` archives in the `release/` directory (creating it if needed) of the built extension for each platform (in `build/`). The archives will be named according to platform and version (read from `manifest.json` in each platforms build directory).
Passing the `-b` flag will run `build-all.php` first, before packaging.
## `compute_FontAwesome_subset.php`
Will output the Unicode code values for all Font Awesome glyphs used in the extension. (For use with font subsetting tools.)
## `generator_config.txt`
When re-subsetting Font Awesome for packaging with AlwaysKillSticky, upload this file to the font generator tool at Font Squirrel (replacing the list of Unicode code values with the output of `compute_FontAwesome_subset.php`) in order to automatically set the right values for all the various generator options.
(This need only be done if adding or removing Font Awesome characters, e.g. when adding new buttons or other UI elements.)