Said Achmiz 6 лет назад
Родитель
Сommit
950eebcc2d
1 измененных файлов: 23 добавлений и 0 удалений
  1. 23
    0
      util/README-UTIL.md

+ 23
- 0
util/README-UTIL.md Просмотреть файл

@@ -0,0 +1,23 @@
# Convenience scripts

This folder contains some convenience scripts. They’re mostly for me, but may be useful for anyone who wants to contribute to developing AlwaysKillSticky, so they’re 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 platform’s 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.)

Загрузка…
Отмена
Сохранить