Skip to content

Commit

Permalink
feat: contents folder
Browse files Browse the repository at this point in the history
  • Loading branch information
FllipEis authored Oct 14, 2024
1 parent 71729ba commit c3b4859
Show file tree
Hide file tree
Showing 18 changed files with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/scripts/process_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,20 @@ def process_components():
# Copy the file to release_files directory
shutil.copy(output_path, os.path.join('release_files', output))

contents_dir = 'contents'
if os.path.exists(contents_dir):
print(f"Moving contents of '{contents_dir}' to bundle...")
for item in os.listdir(contents_dir):
s = os.path.join(contents_dir, item)
d = os.path.join('bundle', item)
if os.path.isdir(s):
shutil.copytree(s, d, dirs_exist_ok=True)
else:
shutil.copy2(s, d)
print(f"Contents of '{contents_dir}' moved to bundle successfully.")
else:
print(f"'{contents_dir}' folder not found in the repository.")

# Create a zip file of the bundle
shutil.make_archive('bundle', 'zip', 'bundle')

Expand Down
File renamed without changes.
File renamed without changes.
Binary file removed libs/controller-api.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit c3b4859

Please sign in to comment.