Skip to content

Commit

Permalink
Update publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
Hammie committed Nov 18, 2023
1 parent 465348c commit d51c38b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion installer/publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
import shutil
import fnmatch

shutil.rmtree("publish")
if os.path.exists("publish"):
shutil.rmtree("publish")

os.makedirs("publish", exist_ok=True)

Expand Down Expand Up @@ -51,6 +52,9 @@ def add_pattern(pattern, directory=None, target=None):

add_directory("../Documentation", target="Documentation")

# Modules
add_pattern("*.toml", directory="../modules", target="modules")

# Resources
add_pattern("*.ini", directory="../RESOURCE", target="resource")
add_pattern("*.toml", directory="../RESOURCE", target="resource")
Expand Down

0 comments on commit d51c38b

Please sign in to comment.