-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change to include presets into plugin zip package
- Loading branch information
Showing
5 changed files
with
94 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import shutil | ||
from pathlib import Path | ||
|
||
# `print` are added for debugging GitHub Actions. | ||
print("presets/pack.py: Packing presets.") | ||
|
||
if __name__ == "__main__": | ||
pack_dir = Path("pack") | ||
pack_dir.mkdir(parents=True, exist_ok=True) | ||
|
||
for preset_dir in Path("Uhhyou").glob("*"): | ||
if not preset_dir.is_dir(): | ||
continue | ||
packed_path_str = shutil.make_archive( | ||
str(pack_dir / Path(f"{preset_dir.name}_Presets")), | ||
"zip", | ||
".", | ||
preset_dir, | ||
) | ||
print(packed_path_str) |
This file was deleted.
Oops, something went wrong.