Skip to content

Commit 2b17e19

Browse files
committed
Add pipenv, PyInstaller spec, Inno Setup script and gitignore
1 parent 1048c33 commit 2b17e19

6 files changed

Lines changed: 205 additions & 0 deletions

File tree

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Entorno Python / Pipenv
2+
__pycache__/
3+
*.py[cod]
4+
*.pyo
5+
6+
# Entornos virtuales
7+
.venv/
8+
venv/
9+
10+
# PyInstaller
11+
build/
12+
dist/
13+
*.spec
14+
15+
# Ejecutables y binarios grandes
16+
*.exe
17+
*.msi
18+
19+
# Archivos de sistema
20+
.DS_Store
21+
Thumbs.db

MiniDockQT6.iss

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
; Script de ejemplo para Inno Setup (no compilado aún)
2+
; Abre este archivo con Inno Setup (iscc) para generar el instalador.
3+
4+
[Setup]
5+
AppName=MiniDockQT6
6+
AppVersion=1.0.0
7+
AppPublisher=Tu Nombre
8+
DefaultDirName={autopf}\\MiniDockQT6
9+
DefaultGroupName=MiniDockQT6
10+
OutputBaseFilename=MiniDockQT6_Setup
11+
SetupIconFile=icons\\favicon.ico
12+
Compression=lzma
13+
SolidCompression=yes
14+
LicenseFile=LICENSE.txt
15+
16+
[Files]
17+
; Ejecutable generado por PyInstaller
18+
Source="dist\\MiApp.exe"; DestDir="{app}"; Flags: ignoreversion
19+
20+
[Icons]
21+
Name="{group}\\MiniDockQT6"; Filename="{app}\\MiApp.exe"; WorkingDir="{app}"
22+
Name="{userdesktop}\\MiniDockQT6"; Filename="{app}\\MiApp.exe"; Tasks: desktopicon
23+
24+
[Tasks]
25+
Name: "desktopicon"; Description: "Crear icono en el Escritorio"; GroupDescription: "Iconos adicionales:"; Flags: unchecked

Pipfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[[source]]
2+
url = "https://pypi.org/simple"
3+
verify_ssl = true
4+
name = "pypi"
5+
6+
[packages]
7+
pyside6 = "*"
8+
pyinstaller = "*"
9+
10+
[dev-packages]
11+
12+
[requires]
13+
python_version = "3.13"

Pipfile.lock

Lines changed: 132 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,20 @@ En la carpeta del proyecto:
4444
python PracticaFinal.py
4545
```
4646

47+
## Empaquetado (PyInstaller + Pipenv)
48+
49+
1. Instalar dependencias en el entorno pipenv (solo una vez):
50+
```bash
51+
pipenv install
52+
```
53+
2. Generar el ejecutable (usa la configuración de `MiApp.spec`):
54+
```bash
55+
pipenv run pyinstaller MiApp.spec
56+
```
57+
3. El `.exe` resultante queda en `dist/MiApp.exe`.
58+
59+
> Recomendación: no subir `dist/` ni `build/` al repo, solo el código y los scripts de empaquetado.
60+
4761
## Atajos de teclado
4862

4963
- Nuevo: Ctrl+N

icons/favicon.ico

14.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)