mirror of
https://github.com/RoyalnetworkTR/turkanime-client.git
synced 2026-09-25 06:00:09 +03:00
Co-authored-by: barkeser2002 <45911502+barkeser2002@users.noreply.github.com>
3.1 KiB
3.1 KiB
TurkAnime GUI - Unified Build
Bu sürüm, Python backend ve Next.js frontend'i tek bir executable dosyada birleştirir.
Özellikler
- ✅ Tek executable dosya (backend + frontend birlikte)
- ✅ Otomatik GitHub Release
- ✅ Python içinde Next.js frontend
- ✅ LiveChart.me entegrasyonu
- ✅ AniList ilerleme takibi
- ✅ Gelişmiş başlık eşleştirme
Kurulum
İndirme
Releases sayfasından işletim sisteminize uygun dosyayı indirin:
- Windows:
turkanime-gui-unified-windows.exe - Linux:
turkanime-gui-unified-linux - macOS:
turkanime-gui-unified-macos
Çalıştırma
Windows
turkanime-gui-unified-windows.exe
Linux/macOS
chmod +x turkanime-gui-unified-linux # veya -macos
./turkanime-gui-unified-linux # veya -macos
Uygulama başladığında, tarayıcınızda http://localhost:8000 adresini açın.
Geliştirme
Build Süreci
-
Frontend Build
cd frontend npm install npm run build -
Python Paketleme
python build_unified.py -
Manuel Build
# Frontend'i build et cd frontend && npm run build && cd .. # Build output'u kopyala cp -r frontend/out frontend_build # PyInstaller ile paketле pyinstaller turkanime-gui-unified.spec
Otomatik Build (GitHub Actions)
Her tag push'unda otomatik olarak build edilir:
git tag v10.0.0
git push origin v10.0.0
Mimari
turkanime-gui-unified.exe
├── Python Backend (FastAPI)
│ ├── API Endpoints (/api/*)
│ ├── LiveChart.me Client
│ ├── Title Matcher
│ └── AniList Integration
├── Next.js Frontend (Static)
│ ├── HTML/CSS/JS
│ ├── React Components
│ └── API Client
└── Embedded Resources
├── mpv/ffmpeg (Windows)
└── Icons/Assets
API Endpoints
Backend aynı process içinde çalışır ve şu endpoint'leri sağlar:
GET /- Frontend (Next.js app)GET /api/anime/current-season- Güncel sezonGET /api/anime/search- Anime aramaPOST /api/titles/match- Başlık eşleştirmePOST /api/anilist/progress- İlerleme güncelleme
Swagger dokümantasyonu: http://localhost:8000/docs
Avantajlar
- Tek Dosya: Tüm uygulama tek executable'da
- Kolay Dağıtım: Sadece bir dosya paylaş
- Hızlı Başlatma: Node.js runtime gerektirmez
- Güvenlik: Kaynak kodu executable içinde
- Otomatik Release: GitHub Actions ile otomatik build
Sorun Giderme
Port Kulımda
Eğer 8000 portu kullanımdaysa:
# Windows
turkanime-gui-unified-windows.exe --port 8080
# Linux/macOS
./turkanime-gui-unified-linux --port 8080
Frontend Görünmüyor
- Executable ile aynı dizinde
frontend_buildklasörü olmalı - PyInstaller spec dosyası frontend_build'i include ediyor mu kontrol edin
API Çalışmıyor
- Console çıktılarını kontrol edin
http://localhost:8000/api/healthendpoint'ini test edin
Lisans
CC-BY-NC-ND-4.0