Update build.yml
This commit is contained in:
1 parent
7626a790f8
commit
3969c83eaf
1 file changed
+27
-10
+27
-10
@@ -31,12 +31,10 @@ jobs:
|
|||||||
cache: 'pip'
|
cache: 'pip'
|
||||||
cache-dependency-path: 'requirements.txt'
|
cache-dependency-path: 'requirements.txt'
|
||||||
|
|
||||||
# 🔧 FIX: MSVC setup без явного toolset — автоопределение
|
|
||||||
- name: 🔧 Setup MSVC environment
|
- name: 🔧 Setup MSVC environment
|
||||||
uses: ilammy/msvc-dev-cmd@v1
|
uses: ilammy/msvc-dev-cmd@v1
|
||||||
with:
|
with:
|
||||||
arch: x64
|
arch: x64
|
||||||
# toolset убран — автоопределение работает надёжнее
|
|
||||||
|
|
||||||
- name: 📦 Install dependencies
|
- name: 📦 Install dependencies
|
||||||
run: |
|
run: |
|
||||||
@@ -44,6 +42,14 @@ jobs:
|
|||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
pip install nuitka
|
pip install nuitka
|
||||||
|
|
||||||
|
# 🔍 Отладка: проверить версию Nuitka и доступные флаги
|
||||||
|
- name: 🔍 Debug Nuitka
|
||||||
|
run: |
|
||||||
|
nuitka --version
|
||||||
|
nuitka --help | findstr "windows"
|
||||||
|
shell: pwsh
|
||||||
|
|
||||||
|
# 🛠️ Сборка с ПРАВИЛЬНЫМИ флагами метаданных
|
||||||
- name: 🛠️ Compile with Nuitka
|
- name: 🛠️ Compile with Nuitka
|
||||||
run: |
|
run: |
|
||||||
nuitka `
|
nuitka `
|
||||||
@@ -56,19 +62,31 @@ jobs:
|
|||||||
--nofollow-import-to=pytest,setuptools,pip,wheel `
|
--nofollow-import-to=pytest,setuptools,pip,wheel `
|
||||||
--python-flag=no_site `
|
--python-flag=no_site `
|
||||||
--output-filename=YandexMusicDownloader.exe `
|
--output-filename=YandexMusicDownloader.exe `
|
||||||
--windows-file-version=${{ github.ref_name || github.event.inputs.version }}.0 `
|
--file-version=${{ github.ref_name || github.event.inputs.version }}.0 `
|
||||||
--windows-product-version=${{ github.ref_name || github.event.inputs.version }}.0 `
|
--product-version=${{ github.ref_name || github.event.inputs.version }}.0 `
|
||||||
--windows-company-name="KromSystems" `
|
--file-description="Download tracks from Yandex Music in maximum quality" `
|
||||||
--windows-product-name="Yandex Music Downloader" `
|
--product-name="Yandex Music Downloader" `
|
||||||
--windows-file-description="Download tracks from Yandex Music in maximum quality" `
|
--company-name="KromSystems" `
|
||||||
--copyright="© 2026 KromSystems. Powered by J.A.R.V.I.S. core" `
|
--copyright="© 2026 KromSystems. Powered by J.A.R.V.I.S. core" `
|
||||||
--windows-app-name="YandexMusicDownloader" `
|
|
||||||
main.py
|
main.py
|
||||||
shell: pwsh
|
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
|
- name: 📦 Prepare release assets
|
||||||
run: |
|
run: |
|
||||||
mkdir release-assets
|
mkdir release-assets -ErrorAction SilentlyContinue
|
||||||
Copy-Item "dist\YandexMusicDownloader.exe" "release-assets\"
|
Copy-Item "dist\YandexMusicDownloader.exe" "release-assets\"
|
||||||
Copy-Item "README.md" "release-assets\"
|
Copy-Item "README.md" "release-assets\"
|
||||||
Copy-Item "LICENSE" "release-assets\" -ErrorAction SilentlyContinue
|
Copy-Item "LICENSE" "release-assets\" -ErrorAction SilentlyContinue
|
||||||
@@ -113,5 +131,4 @@ jobs:
|
|||||||
- name: ✅ Build complete
|
- name: ✅ Build complete
|
||||||
run: |
|
run: |
|
||||||
Write-Host "🎉 Сборка завершена!" -ForegroundColor Green
|
Write-Host "🎉 Сборка завершена!" -ForegroundColor Green
|
||||||
Write-Host "📦 Файл: YandexMusicDownloader.exe" -ForegroundColor Cyan
|
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
Reference in new issue
Block a user