Win64 Template Builder es una herramienta CLI y TUI multiplataforma moderna (Linux / Windows / Wine) diseรฑada para generar y administrar estructuras de carpetas y recetas de perfiles a partir de plantillas base inmutables (Win64.rar).
La herramienta utiliza รบnicamente la biblioteca estรกndar de Python en producciรณn. Solo requiere una versiรณn reciente de Python y un extractor de archivos RAR (como 7-Zip).
- Python >= 3.11 instalado en el sistema.
Para extraer y verificar la plantilla base Win64.rar, el sistema debe contar con 7z o unrar:
- Arch Linux / CachyOS / Manjaro:
sudo pacman -S 7zip
- Ubuntu / Debian / Linux Mint:
sudo apt update && sudo apt install -y 7zip # o alternativamente: sudo apt install -y unrar
- Fedora / RHEL:
sudo dnf install -y p7zip p7zip-plugins
- Vรญa Winget (PowerShell / CMD):
winget install 7zip.7zip
- Instalador oficial: Descargar e instalar desde https://www.7-zip.org/. El script detectarรก automรกticamente la ruta
C:\Program Files\7-Zip\7z.exeincluso si no estรก en el%PATH%.
Si ejecutas en Linux y deseas correr los ejecutables de Windows (.exe) generados:
- Arch Linux / CachyOS:
sudo pacman -S wine winetricks wine-gecko wine-mono vulkan-icd-loader lib32-vulkan-icd-loader lib32-gnutls
- Ubuntu / Debian:
sudo apt install -y wine winetricks wine-gecko wine-mono
- Fedora:
sudo dnf install -y wine winetricks
Para inicializar el prefijo de 64 bits y evitar avisos continuos:
WINEPREFIX=~/.wine WINEARCH=win64 wineboot -u
winetricks corefonts vcrun2015 d3dcompiler_47Para ejecutar la suite de pruebas unitarias:
# Crear entorno virtual e instalar dependencias de desarrollo
python3 -m venv .venv
source .venv/bin/activate # En Windows: .venv\Scripts\activate
pip install -r requirements-dev.txtEjecute el programa en su terminal sin argumentos:
python3 main.pyโ/โ(oW/S/K/J): Moverse fluidamente entre las opciones con resaltado neรณn.Enter/โ(oEspacio/D/L): Seleccionar y avanzar.Esc/โ(oQ/A/H/Backspace): Volver al menรบ anterior o salir.0-5: Teclas de acceso directo numรฉrico instantรกneo.
โโโ โโโโโโโโโโ โโโ โโโโโโโ โโโ โโโ
โโโ โโโโโโโโโโโ โโโโโโโโโโโ โโโ โโโ
โโโ โโ โโโโโโโโโโโโ โโโโโโโโโโโ โโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโ
โโโโโโโโ โโโโโโ โโโโโ โโโโโโโ โโโ
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โฆ WIN64 TEMPLATE BUILDER v1.4.0-alpha โ
โ Cross-Platform Profile Recipe & Multi-Artifact Generator โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
๓ฐฝ SO: Linux (CachyOS) โข ๓ฐ Python: 3.14.7 โข ๐ฆ 7z: 7z: OK โข ๐ท Wine: Wine: OK
โโโ โ MENร PRINCIPAL โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ [ 1 ] ๐ Crear nueva estructura / Aplicar perfil โฆ
[ 2 ] ๐ Ver carpetas ya hechas (explorar, renombrar exe, ejecutar)
[ 3 ] ๐ Ver plantillas y perfiles disponibles
[ 4 ] ๐ฉบ Diagnรณstico del sistema y dependencias (Linux / Windows)
[ 5 ] ๐งน Limpiar artefactos temporales
[ 0 ] ๐ช Salir
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
[ โ/โ ] Navegar [ Enter/โ ] Seleccionar [ Esc/โ ] Atrรกs [ 0-5 ] Atajos
Ejecuta un anรกlisis exhaustivo del sistema detectando distribuciรณn Linux, kernel, runtime de Python, extractores disponibles y estado de Wine/Winetricks:
python3 main.py doctorโญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ Diagnรณstico del Sistema y Requisitos โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Sistema Operativo: CachyOS Linux | Kernel 6.13.0-cachyos (x86_64)
Versiรณn de Python: 3.14.7
Resultados del Diagnรณstico:
[โ OK] Entorno Python: Python 3.14.7 (Compatible >= 3.11)
[โ OK] Extractor RAR: 7z encontrado en '/usr/bin/7z'
[โ OK] Wine Runner: Wine detectado en '/usr/bin/wine'
[โ OK] Winetricks: Winetricks detectado en '/usr/bin/winetricks'
[โ OK] Plantilla Base: 'Win64.rar' vรกlida (1 exe, 1 dlls, 2 idiomas)
โ ยกExcelente! Todas las dependencias y herramientas estรกn listas y configuradas.
Permite ver rรกpidamente todas las carpetas generadas con sus estructuras y ejecutables:
python3 main.py --list-foldersDesde el menรบ interactivo (Opciรณn [2]), puedes seleccionar cualquier carpeta para:
โถ๏ธ Ejecutar la aplicaciรณn (mediante Wine en Linux o de forma nativa en Windows).- โ๏ธ Renombrar el ejecutable
.execonservando la estructura de archivos existente.
Verifica la integridad, hashes SHA-256, ejecutables candidatos y la estructura interna del archivo Win64.rar sin tocar el disco:
python3 main.py inspectMuestra una vista previa detallada del plan de construcciรณn y รกrbol de directorios que se crearรญa:
python3 main.py --folder "My Game" --exe "MyGame.exe" --layout direct --dry-runPara scripts o pipelines automรกticos, pasa todos los argumentos directamente por lรญnea de comandos:
python3 main.py \
--folder "Shift At Midnight Demo" \
--exe "Shift At Midnight.exe" \
--layout direct \
--output "./output" \
--winepython3 main.py \
--folder "Marvel Tokon" \
--exe "Game.exe" \
--layout steam \
--output "./output"python3 main.py \
--folder "Tokon Game" \
--exe "Game.exe" \
--layout steam \
--steam-library "/mnt/games/SteamLibrary"python3 main.py \
--folder "Custom Game" \
--exe "Game.exe" \
--layout custom \
--custom-path "steamapps/common/MyGame/Binaries/Win64"Elimina de forma segura artefactos temporales creados por fallos o staging incompleto (.win64-builder-*):
python3 main.py cleanEl proyecto cuenta con 73 pruebas automatizadas de cobertura integral (pytest):
# Ejecutar todas las pruebas con salida detallada
.venv/bin/pytest -v============================== 73 passed in 0.63s ==============================
- Inmutabilidad de Plantilla:
Win64.rarnunca se modifica en disco; se valida su hash antes y despuรฉs de cada operaciรณn. - Transaccionalidad Sibling: El staging temporal (
.destination.build-<uuid>) se crea en el mismo sistema de archivos padre para prevenir fallosEXDEVentre particiones distintas (ext4, Btrfs, NTFS, exFAT). - Rollback Transaccional: En caso de error o interrupciรณn, se restaura el estado previo del directorio sin dejar archivos corruptos.
- Protecciรณn contra Zip/Rar Slip: Se bloquean entradas con rutas absolutas, secuencias
.., caracteres UNC o enlaces simbรณlicos maliciosos. - Validaciones NTFS / Windows: Se filtran caracteres prohibidos (
< > : " / \ | ? *), nombres con punto o espacio final ("Game."), y nombres de dispositivo reservados en Windows (CON,PRN,AUX,NUL,COM1-9,LPT1-9) independientemente de la extensiรณn.
