mirror of
https://github.com/barkeser2002/VMD-Motion-Optimizer.git
synced 2026-09-25 05:50:15 +03:00
- 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.
31 lines
1.1 KiB
PowerShell
31 lines
1.1 KiB
PowerShell
# 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."
|