mirror of
https://github.com/RoyalnetworkTR/turkanime-client.git
synced 2026-09-25 06:00:09 +03:00
- Added inclusion of TurkAnimu.png and TurkAnimu.ico for sdist and wheel formats. - Changed dev-dependencies section to group.dev.dependencies and added toml as a dependency. Update download directory setting in Dosyalar class to use the user's Downloads folder. Enhance MainWindow with User ID entry and automatic update check functionality. - Added a new section for other settings in the GUI. - Implemented silent update check method. Refactor UpdateManager to read current version from pyproject.toml if not provided. - Updated download directory retrieval to use the path from ayarlar.json.
63 lines
1.2 KiB
Batchfile
63 lines
1.2 KiB
Batchfile
@echo off
|
|
echo.
|
|
echo ========================================
|
|
echo TurkAnime Downloader PyPI Publisher
|
|
echo ========================================
|
|
echo.
|
|
|
|
echo Checking for twine...
|
|
cd ..
|
|
python -m pip show twine > nul 2>&1
|
|
if %errorlevel% neq 0 (
|
|
echo twine not found. Installing...
|
|
python -m pip install twine
|
|
) else (
|
|
echo twine is already installed.
|
|
)
|
|
|
|
echo.
|
|
echo Cleaning up old build directories...
|
|
if exist "dist" (
|
|
echo Removing dist directory...
|
|
rmdir /s /q ..\dist\*
|
|
)
|
|
if exist "build" (
|
|
echo Removing build directory...
|
|
rmdir /s /q ..\build
|
|
)
|
|
echo Cleanup complete.
|
|
echo.
|
|
|
|
echo Building the project using Poetry...
|
|
poetry build
|
|
if %errorlevel% neq 0 (
|
|
echo.
|
|
echo !!!!!!!!!!!!!!!!!!!!!!!!
|
|
echo Poetry build failed.
|
|
echo !!!!!!!!!!!!!!!!!!!!!!!!
|
|
echo.
|
|
pause
|
|
exit /b %errorlevel%
|
|
)
|
|
echo Build successful.
|
|
echo.
|
|
|
|
echo Uploading packages to PyPI...
|
|
python -m twine upload ..\dist\*
|
|
if %errorlevel% neq 0 (
|
|
echo.
|
|
echo !!!!!!!!!!!!!!!!!!!!!!!!
|
|
echo Upload failed.
|
|
echo !!!!!!!!!!!!!!!!!!!!!!!!
|
|
echo.
|
|
pause
|
|
exit /b %errorlevel%
|
|
)
|
|
|
|
echo.
|
|
echo ========================================
|
|
echo Successfully published to PyPI!
|
|
echo ========================================
|
|
echo.
|
|
pause
|