Skip to content

Commit

Permalink
清理无用的 info_service
Browse files Browse the repository at this point in the history
  • Loading branch information
TakWolf committed Jul 8, 2024
1 parent fe6104f commit 235198c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 28 deletions.
4 changes: 1 addition & 3 deletions tools/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from tools.configs import path_define
from tools.configs.font import FontConfig
from tools.services import font_service, publish_service, info_service, template_service, image_service
from tools.services import font_service, publish_service, template_service, image_service


def main():
Expand All @@ -14,8 +14,6 @@ def main():
alphabet, character_mapping, glyph_files = font_service.collect_glyph_files(font_config)
font_service.format_glyph_files(font_config, glyph_files)
font_service.make_fonts(font_config, character_mapping, glyph_files)
info_service.make_info_txt(font_config)
info_service.make_alphabet_txt(font_config, alphabet)
image_service.make_preview_image(font_config)
template_service.make_alphabet_html(font_config, alphabet)
template_service.make_demo_html(font_config, alphabet)
Expand Down
24 changes: 0 additions & 24 deletions tools/services/info_service.py

This file was deleted.

1 change: 0 additions & 1 deletion tools/services/publish_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ def make_release_zips(font_configs: dict[str, FontConfig]):
outputs_arc = Path(font_config.outputs_name)
font_file_name = f'retro-pixel-{font_config.outputs_name}.{font_format}'
file.write(font_config.outputs_dir.joinpath(font_file_name), outputs_arc.joinpath(font_file_name))
file.write(font_config.outputs_dir.joinpath('info.txt'), outputs_arc.joinpath('info.txt'))
file.write(font_config.outputs_dir.joinpath('preview.png'), outputs_arc.joinpath('preview.png'))
logger.info("Make release zip: '{}'", file_path)

Expand Down

0 comments on commit 235198c

Please sign in to comment.