Files
VMD-Motion-Optimizer/build_exe.ps1
T
Barış Keser f8512adde5 Add VMD Motion Optimizer and supporting scripts
- Implemented `optimize_vmd.py`, a comprehensive VMD motion optimizer that includes features for position and rotation simplification, depth alignment removal, and ground stabilization.
- Introduced `peek_bytes.py`, a utility script for inspecting byte data from VMD files.
- Created `version.txt` to track the version of the VMD Motion Optimizer, initialized to 0.1.0.
2025-08-17 21:48:36 +03:00

31 lines
1.1 KiB
PowerShell
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Requires: pyinstaller, PyQt6
# Kullanım: PowerShell'de bu dosyayla aynı klasörde:
# powershell -ExecutionPolicy Bypass -File build_exe.ps1
$ErrorActionPreference = 'Stop'
# Sanal ortam oluştur (taşınabilir derleme için önerilir)
if (-not (Test-Path .venv)) {
py -3 -m venv .venv
}
$python = Join-Path (Get-Location) '.venv\Scripts\python.exe'
.venv\Scripts\pip.exe install --upgrade pip
.venv\Scripts\pip.exe install -r requirements.txt pyinstaller
# Tek dosya, konsolsuz, portable dizinle (one dir daha uyumlu)
$icon = "icon.ico" # .ico yolu
$common = "--noconfirm --clean --name VMDOptimizer"
$opts = "--onedir --windowed"
if (Test-Path $icon) { $opts = "$opts --icon `"$icon`"" }
# Ek veriler
$extra = "--add-data `"scripts;scripts`" --add-data `"version.txt;.`""
if (Test-Path "logo.png") { $extra = "$extra --add-data `"logo.png;.`"" }
if (Test-Path "icon.ico") { $extra = "$extra --add-data `"icon.ico;.`"" }
# Giriş: GUI uygulaması
& $python -m PyInstaller $common $opts $extra scripts\app.py
Write-Host "Derleme tamamlandı. dist/VMDOptimizer klasörünü taşıyıp portable çalıştırabilirsiniz."