mirror of
https://github.com/konpa/devicon.git
synced 2025-08-12 09:34:36 +02:00
Uncomment test code
This commit is contained in:
32
.github/scripts/icomoon_build.py
vendored
32
.github/scripts/icomoon_build.py
vendored
@@ -26,25 +26,25 @@ def main():
|
||||
|
||||
print(f"There are {len(new_icons)} icons to be build. Here are they:", *new_icons, sep = "\n")
|
||||
|
||||
# print("Begin optimizing files")
|
||||
# optimize_svgs(new_icons, args.icons_folder_path)
|
||||
print("Begin optimizing files")
|
||||
optimize_svgs(new_icons, args.icons_folder_path)
|
||||
|
||||
# print("Updating the icomoon json")
|
||||
# update_icomoon_json(new_icons, args.icomoon_json_path)
|
||||
print("Updating the icomoon json")
|
||||
update_icomoon_json(new_icons, args.icomoon_json_path)
|
||||
|
||||
# icon_svgs = filehandler.get_svgs_paths(
|
||||
# new_icons, args.icons_folder_path, icon_versions_only=True)
|
||||
# runner = SeleniumRunner(args.download_path,
|
||||
# args.geckodriver_path, args.headless)
|
||||
# runner.upload_icomoon(args.icomoon_json_path)
|
||||
# runner.upload_svgs(icon_svgs)
|
||||
icon_svgs = filehandler.get_svgs_paths(
|
||||
new_icons, args.icons_folder_path, icon_versions_only=True)
|
||||
runner = SeleniumRunner(args.download_path,
|
||||
args.geckodriver_path, args.headless)
|
||||
runner.upload_icomoon(args.icomoon_json_path)
|
||||
runner.upload_svgs(icon_svgs)
|
||||
|
||||
# zip_name = "devicon-v1.0.zip"
|
||||
# zip_path = Path(args.download_path, zip_name)
|
||||
# runner.download_icomoon_fonts(zip_path)
|
||||
# filehandler.extract_files(str(zip_path), args.download_path)
|
||||
# filehandler.rename_extracted_files(args.download_path)
|
||||
# print("Task completed.")
|
||||
zip_name = "devicon-v1.0.zip"
|
||||
zip_path = Path(args.download_path, zip_name)
|
||||
runner.download_icomoon_fonts(zip_path)
|
||||
filehandler.extract_files(str(zip_path), args.download_path)
|
||||
filehandler.rename_extracted_files(args.download_path)
|
||||
print("Task completed.")
|
||||
except TimeoutException as e:
|
||||
util.exit_with_err("Selenium Time Out Error: \n" + str(e))
|
||||
except Exception as e:
|
||||
|
Reference in New Issue
Block a user