File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,6 +30,10 @@ def clean_build_dir(self):
3030
3131 def copy_assets (self ):
3232 """Copy static assets to build directory"""
33+ # Create subdirectories first
34+ sounds_dir = self .assets_dir / "sounds"
35+ sounds_dir .mkdir (exist_ok = True )
36+
3337 # Copy static GIF
3438 src_static = Path ("src/assets/tvstatic.gif" )
3539 if src_static .exists ():
@@ -41,16 +45,9 @@ def copy_assets(self):
4145 shutil .copy2 (src_wormhole , self .assets_dir / "wormhole.mp4" )
4246 print ("✅ Copied wormhole.mp4" )
4347
44- src_wormhole_audio = Path ("src/assets/sounds/wormhole.mp3" )
45- if src_wormhole_audio .exists ():
46- shutil .copy2 (src_wormhole_audio , self .assets_dir / "sounds" / "wormhole.mp3" )
47- print ("✅ Copied wormhole.mp3" )
48-
4948 # Copy sound effects
5049 src_sounds = Path ("src/assets/sounds" )
5150 if src_sounds .exists ():
52- sounds_dir = self .assets_dir / "sounds"
53- sounds_dir .mkdir ()
5451 for sound_file in src_sounds .glob ("*.mp3" ):
5552 shutil .copy2 (sound_file , sounds_dir / sound_file .name )
5653 print ("✅ Copied sound effects" )
You can’t perform that action at this time.
0 commit comments