fix(install): add windows entrypoint
This commit is contained in:
parent
0aff60b787
commit
91aac9005a
2
DONE.md
2
DONE.md
|
|
@ -26,6 +26,8 @@
|
|||
- Removed the Go prompt in `install.sh`; missing Go is now installed automatically.
|
||||
- ✅ **Windows install workflow split**
|
||||
- `install.sh` now delegates to the Windows installer to avoid mixed-shell prompts.
|
||||
- ✅ **Windows installer entrypoint**
|
||||
- Added `install-windows.ps1` and made `install.sh` Windows-safe with a clear handoff message.
|
||||
|
||||
## Version 0.1.0-dev25 (2026-01-22) - Settings Preferences Expansion
|
||||
|
||||
|
|
|
|||
2
TODO.md
2
TODO.md
|
|
@ -12,6 +12,8 @@ This file tracks upcoming features, improvements, and known issues.
|
|||
- Skip prompting for Go and install automatically when missing.
|
||||
- [X] **Windows install workflow split**
|
||||
- Route Windows to the dedicated installer to avoid mixed-shell prompts.
|
||||
- [X] **Windows installer entrypoint**
|
||||
- Provide a PowerShell entrypoint and direct Windows users to it from install.sh.
|
||||
|
||||
## Documentation: Fix Structural Errors
|
||||
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ Welcome to the VideoTools installation guide. Please select your operating syste
|
|||
For Windows 10 and 11, please follow our detailed, step-by-step guide. It covers both automated and manual setup.
|
||||
|
||||
- **[➡️ View Windows Installation Guide](./INSTALL_WINDOWS.md)**
|
||||
- Use `setup-windows.bat` or `scripts\install-windows.ps1` on Windows.
|
||||
|
||||
### 🐧 Linux & macOS
|
||||
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ If you haven't already, download the project files as a ZIP and extract them to
|
|||
|
||||
1. Open the project folder in File Explorer.
|
||||
2. Find and double-click on `setup-windows.bat`.
|
||||
- Alternatively, run `scripts\install-windows.ps1` from PowerShell.
|
||||
3. A terminal window will open and run the PowerShell setup script. This will:
|
||||
* **Download FFmpeg:** The script automatically fetches the latest stable version of FFmpeg, which is required for all video operations.
|
||||
* **Install Dependencies:** It places the necessary files in the correct directories.
|
||||
|
|
@ -27,7 +28,7 @@ If you haven't already, download the project files as a ZIP and extract them to
|
|||
|
||||
Once the script finishes, you can run the application by double-clicking `run.bat` in the main project folder.
|
||||
|
||||
> **Note:** On Windows, use `setup-windows.bat` instead of `scripts/install.sh` to avoid mixed-shell prompts.
|
||||
> **Note:** On Windows, use `setup-windows.bat` or `scripts\install-windows.ps1` instead of `scripts/install.sh` to avoid mixed-shell prompts.
|
||||
|
||||
---
|
||||
|
||||
|
|
|
|||
9
scripts/install-windows.ps1
Normal file
9
scripts/install-windows.ps1
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
param()
|
||||
|
||||
Write-Host "===============================================================" -ForegroundColor Cyan
|
||||
Write-Host " VideoTools Windows Installation" -ForegroundColor Cyan
|
||||
Write-Host "===============================================================" -ForegroundColor Cyan
|
||||
Write-Host ""
|
||||
|
||||
& "$PSScriptRoot\install-deps-windows.ps1"
|
||||
exit $LASTEXITCODE
|
||||
|
|
@ -105,13 +105,11 @@ echo ""
|
|||
|
||||
# Windows uses a dedicated installer to avoid Git Bash/PowerShell chaining.
|
||||
if [ "$IS_WINDOWS" = true ]; then
|
||||
if command -v powershell.exe &> /dev/null; then
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "$PROJECT_ROOT/scripts/install-deps-windows.ps1"
|
||||
exit $?
|
||||
fi
|
||||
echo -e "${RED}[ERROR]${NC} powershell.exe not found."
|
||||
echo "Please run: $PROJECT_ROOT\\scripts\\setup-windows.bat"
|
||||
exit 1
|
||||
echo -e "${YELLOW}NOTICE:${NC} Windows detected."
|
||||
echo "Please run one of the dedicated Windows installers instead:"
|
||||
echo " - $PROJECT_ROOT\\scripts\\setup-windows.bat"
|
||||
echo " - $PROJECT_ROOT\\scripts\\install-windows.ps1"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Step 1: Check if Go is installed
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user