diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d7d7c63..5fc6d8d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,12 +31,10 @@ jobs: cache: 'pip' cache-dependency-path: 'requirements.txt' - # 🔧 FIX: MSVC setup без явного toolset — автоопределение - name: 🔧 Setup MSVC environment uses: ilammy/msvc-dev-cmd@v1 with: arch: x64 - # toolset убран — автоопределение работает надёжнее - name: 📦 Install dependencies run: | @@ -44,6 +42,14 @@ jobs: pip install -r requirements.txt pip install nuitka + # 🔍 Отладка: проверить версию Nuitka и доступные флаги + - name: 🔍 Debug Nuitka + run: | + nuitka --version + nuitka --help | findstr "windows" + shell: pwsh + + # 🛠️ Сборка с ПРАВИЛЬНЫМИ флагами метаданных - name: 🛠️ Compile with Nuitka run: | nuitka ` @@ -56,19 +62,31 @@ jobs: --nofollow-import-to=pytest,setuptools,pip,wheel ` --python-flag=no_site ` --output-filename=YandexMusicDownloader.exe ` - --windows-file-version=${{ github.ref_name || github.event.inputs.version }}.0 ` - --windows-product-version=${{ github.ref_name || github.event.inputs.version }}.0 ` - --windows-company-name="KromSystems" ` - --windows-product-name="Yandex Music Downloader" ` - --windows-file-description="Download tracks from Yandex Music in maximum quality" ` + --file-version=${{ github.ref_name || github.event.inputs.version }}.0 ` + --product-version=${{ github.ref_name || github.event.inputs.version }}.0 ` + --file-description="Download tracks from Yandex Music in maximum quality" ` + --product-name="Yandex Music Downloader" ` + --company-name="KromSystems" ` --copyright="© 2026 KromSystems. Powered by J.A.R.V.I.S. core" ` - --windows-app-name="YandexMusicDownloader" ` main.py shell: pwsh + continue-on-error: false # Остановить сборку при ошибке компиляции + + # ✅ Проверка, что .exe создан + - name: ✅ Verify executable + run: | + if (Test-Path "dist\YandexMusicDownloader.exe") { + Write-Host "✓ YandexMusicDownloader.exe создан" -ForegroundColor Green + Get-ChildItem "dist\YandexMusicDownloader.exe" | Select-Object Name, Length + } else { + Write-Error "✗ Файл не найден! Проверьте логи компиляции выше." + exit 1 + } + shell: pwsh - name: 📦 Prepare release assets run: | - mkdir release-assets + mkdir release-assets -ErrorAction SilentlyContinue Copy-Item "dist\YandexMusicDownloader.exe" "release-assets\" Copy-Item "README.md" "release-assets\" Copy-Item "LICENSE" "release-assets\" -ErrorAction SilentlyContinue @@ -113,5 +131,4 @@ jobs: - name: ✅ Build complete run: | Write-Host "🎉 Сборка завершена!" -ForegroundColor Green - Write-Host "📦 Файл: YandexMusicDownloader.exe" -ForegroundColor Cyan shell: pwsh