start.pyw hinzugefügt als Workaround und .gitignore gefixt

This commit is contained in:
Adam Skotarczak 2025-04-21 23:34:45 +02:00
parent 896beeb217
commit f7fc11d01c
5 changed files with 27 additions and 12 deletions

21
.gitignore vendored
View File

@ -1,9 +1,10 @@
# Build- und Cache-Ordner ignorieren
.app/__pycache__/
.app/upload/
.app/logs/
.app/build/
.app/dist/
app/__pycache__/
app/upload/
app/upload/*
app/logs/
app/build/
app/dist/
releases/
# PyInstaller & kompiliertes Python
@ -14,13 +15,13 @@ releases/
*.pyd
# Virtuelle Umgebung ignorieren (falls vorhanden)
.app/.venv/
.app/.env/
.app/.idea/
.app/.vscode/
app/.venv/
app/.env/
app/.idea/
app/.vscode/
# Zertifikate und sensible Dateien
.app/*.pem
app/*.pem
*.crt
*.key

View File

@ -2,6 +2,9 @@
## pyUpload (TKInter-Version 1.0)
- 2025-04-21
- Geändert
@ -17,6 +20,7 @@
- Erweiterung der `README.md` um Speicherort der Uploads und Projektstruktur
- Hinweis auf Projektstatus und neue Version unter <https://github.com/realAscot/pyUpload2>
- Neue LICENSE-Datei (proprietär, nicht zur Weitergabe)
- start.py hinzugefügt wenn auf manchen Systemen die Ausführung von .cmd und .bat gesperrt sind.
- Fixes
- PowerShell-Inkompatibilitäten mit `set /p` entfernt

View File

@ -47,12 +47,19 @@ Sie ist vollständig lokal lauffähig ganz ohne Installation von externen To
start.cmd
```
Alternativ in PowerShell:
Alternativ in PowerShell:
```powershell
cmd /c start.cmd
```
⚠️ **Alternative 2 falls die Ausführung per Doppelklick auf .bat oder .cmd gesperrt ist:**
> Doppelklick auf -> `start.pyw`
Es ist möglich das beim ersten mal gefragt wird womit das Programm gestartet werden soll.
Einfach die Python-Installation suchen und `python.exe` wählen.
### 🐧 Für Linux / macOS:
1. Stelle sicher, dass Python 3.8+ installiert ist:

View File

@ -1 +1 @@
1.0.0
1.0.1

3
start.pyw Normal file
View File

@ -0,0 +1,3 @@
import subprocess, os
os.chdir(os.path.dirname(__file__))
subprocess.run(["python", "app/main.py"])