@@ -320,9 +320,9 @@ def _get_tkinter_section(self) -> str:
320320 '\n '
321321 ' echo Downloading tcltk.msi...\n '
322322 ' powershell -NoProfile -ExecutionPolicy Bypass -Command ^\n '
323- ' "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; ^\n '
324- " $ProgressPreference = 'SilentlyContinue'; ^\n "
325- " Invoke-WebRequest -Uri '!TCLTK_MSI_URL!' -OutFile '!TCLTK_MSI!'\" \n "
323+ ' "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;" ^\n '
324+ " \" $ProgressPreference = 'SilentlyContinue';\" ^\n "
325+ " \" Invoke-WebRequest -Uri '!TCLTK_MSI_URL!' -OutFile '!TCLTK_MSI!'\" \n "
326326 '\n '
327327 ' if not exist "!TCLTK_MSI!" (\n '
328328 ' echo WARNING: Failed to download tcltk.msi. GUI may not work.\n '
@@ -385,9 +385,9 @@ def _get_git_section(self) -> str:
385385 '\n '
386386 'echo [STEP] Downloading portable Git %GIT_VERSION%...\n '
387387 'powershell -NoProfile -ExecutionPolicy Bypass -Command ^\n '
388- ' "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; ^\n '
389- " $ProgressPreference = 'SilentlyContinue'; ^\n "
390- " Invoke-WebRequest -Uri '%GIT_URL%' -OutFile '%GIT_ZIP%'\" \n "
388+ ' "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;" ^\n '
389+ " \" $ProgressPreference = 'SilentlyContinue';\" ^\n "
390+ " \" Invoke-WebRequest -Uri '%GIT_URL%' -OutFile '%GIT_ZIP%'\" \n "
391391 '\n '
392392 'if not exist "%GIT_ZIP%" (\n '
393393 ' echo WARNING: Failed to download Git. Git features may not work.\n '
@@ -415,9 +415,9 @@ def _get_ffmpeg_section(self) -> str:
415415 '\n '
416416 'echo [STEP] Downloading portable FFmpeg...\n '
417417 'powershell -NoProfile -ExecutionPolicy Bypass -Command ^\n '
418- ' "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; ^\n '
419- " $ProgressPreference = 'SilentlyContinue'; ^\n "
420- " Invoke-WebRequest -Uri '%FFMPEG_URL%' -OutFile '%FFMPEG_ZIP%'\" \n "
418+ ' "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;" ^\n '
419+ " \" $ProgressPreference = 'SilentlyContinue';\" ^\n "
420+ " \" Invoke-WebRequest -Uri '%FFMPEG_URL%' -OutFile '%FFMPEG_ZIP%'\" \n "
421421 '\n '
422422 'if not exist "%FFMPEG_ZIP%" (\n '
423423 ' echo WARNING: Failed to download FFmpeg.\n '
@@ -426,17 +426,17 @@ def _get_ffmpeg_section(self) -> str:
426426 '\n '
427427 'echo [STEP] Extracting portable FFmpeg...\n '
428428 'powershell -NoProfile -ExecutionPolicy Bypass -Command ^\n '
429- " \" $tempDir = '%SCRIPT_DIR%_ffmpeg_temp'; ^\n "
430- " Expand-Archive -Path '%FFMPEG_ZIP%' -DestinationPath $tempDir -Force; ^\n "
431- ' $inner = Get-ChildItem $tempDir -Directory | Select-Object -First 1; ^\n '
432- " if ($inner -and (Test-Path \\ \" $( $inner.FullName) \\ bin\\ \" )) { ^\n "
433- " New-Item -Path '%FFMPEG_DIR%\\ bin' -ItemType Directory -Force | Out-Null; ^\n "
434- " Copy-Item \\ \" $( $inner.FullName) \\ bin\\ *\\ \" '%FFMPEG_DIR%\\ bin\\ ' -Force; ^\n "
435- " Write-Host ' Extracted FFmpeg to ffmpeg_portable\\ bin\\ ' ^\n "
436- ' } else { ^\n '
437- " Write-Host 'WARNING: FFmpeg zip has unexpected structure' ^\n "
438- ' }; ^\n '
439- " Remove-Item $tempDir -Recurse -Force -ErrorAction SilentlyContinue\" \n "
429+ " \" $tempDir = '%SCRIPT_DIR%_ffmpeg_temp';\" ^\n "
430+ " \" Expand-Archive -Path '%FFMPEG_ZIP%' -DestinationPath $tempDir -Force;\" ^\n "
431+ ' " $inner = Get-ChildItem $tempDir -Directory | Select-Object -First 1;" ^\n '
432+ " \" if ($inner -and (Test-Path (Join-Path $inner.FullName ' bin'))) { \" ^\n "
433+ " \" New-Item -Path '%FFMPEG_DIR%\\ bin' -ItemType Directory -Force | Out-Null;\" ^\n "
434+ " \" Copy-Item (Join-Path $inner.FullName ' bin\\ *') '%FFMPEG_DIR%\\ bin\\ ' -Force;\" ^\n "
435+ " \" Write-Host ' Extracted FFmpeg to ffmpeg_portable\\ bin\\ '\" ^\n "
436+ ' " } else {" ^\n '
437+ " \" Write-Host 'WARNING: FFmpeg zip has unexpected structure'\" ^\n "
438+ ' "}; \" ^\n '
439+ " \" Remove-Item $tempDir -Recurse -Force -ErrorAction SilentlyContinue\" \n "
440440 '\n '
441441 'del "%FFMPEG_ZIP%" 2>nul\n '
442442 ':ffmpeg_done\n \n '
0 commit comments