Files
VMD-Motion-Optimizer/build_exe.bat
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

46 lines
1.1 KiB
Batchfile
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.
@echo off
setlocal ENABLEDELAYEDEXPANSION
REM Python venv oluştur ve bağımlılıkları yükle
if not exist .venv (
py -3 -m venv .venv
)
set PYTHON=.venv\Scripts\python.exe
set PIP=.venv\Scripts\pip.exe
"%PIP%" install --upgrade pip
"%PIP%" install -r requirements.txt pyinstaller
REM PyInstaller ile GUI uygulamasını derle (onedir, windowed)
set NAME=VMDOptimizer
set OPTS=--noconfirm --clean --name %NAME% --onedir --windowed
REM İkon ayarla (gereken her yerde ./icon.ico kullanılacak)
set ICON=icon.ico
if not "%ICON%"=="" (
if exist %ICON% (
set OPTS=%OPTS% --icon "%ICON%"
)
)
REM Ek veri dosyaları
set DATA_LOGO=
if exist logo.png (
set DATA_LOGO=--add-data "logo.png;."
)
set DATA_VER=
if exist version.txt (
set DATA_VER=--add-data "version.txt;."
)
set DATA_ICON=
if exist icon.ico (
set DATA_ICON=--add-data "icon.ico;."
)
"%PYTHON%" -m PyInstaller %OPTS% --add-data "scripts;scripts" %DATA_LOGO% %DATA_VER% %DATA_ICON% scripts\app.py
echo.
echo Derleme tamamlandi. dist\%NAME% klasorunu portable olarak calistirabilirsiniz.
endlocal