test
This commit is contained in:
parent
a3a944b9c8
commit
87f661f2a6
1 changed files with 5 additions and 7 deletions
|
|
@ -1,7 +1,7 @@
|
|||
name: Build and Publish Release
|
||||
|
||||
on:
|
||||
push: # Оставил для тестов, потом можно закомментировать
|
||||
push:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
|
|
@ -43,14 +43,14 @@ jobs:
|
|||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Python dependencies (Windows)
|
||||
# Устанавливаем зависимости именно во внутренний Python внутри Wine
|
||||
# Используем новый гарантированный путь из нашего Dockerfile (C:\python311)
|
||||
run: |
|
||||
xvfb-run wine "C:\Program Files\Python311\python.exe" -m pip install -r requirements.txt
|
||||
xvfb-run wine "C:\python311\python.exe" -m pip install -r requirements.txt
|
||||
|
||||
- name: Build Windows executable
|
||||
# Используем xvfb-run и прямой путь к исполняемому файлу
|
||||
# Теперь PyInstaller вызывается через гарантированно существующий экзешник
|
||||
run: |
|
||||
xvfb-run wine "C:\Program Files\Python311\python.exe" -m PyInstaller --onefile --windowed --name factorio-mod-sync-windows main.py
|
||||
xvfb-run wine "C:\python311\python.exe" -m PyInstaller --onefile --windowed --name factorio-mod-sync-windows main.py
|
||||
|
||||
- name: Upload Windows artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
|
|
@ -62,7 +62,6 @@ jobs:
|
|||
name: Upload Assets to Release
|
||||
needs: [build-linux, build-windows]
|
||||
runs-on: ubuntu-latest
|
||||
# Запускается при создании релиза или если ты вручную нажал push (для теста)
|
||||
if: github.event_name == 'release' || github.event_name == 'push'
|
||||
steps:
|
||||
- name: Download all artifacts
|
||||
|
|
@ -71,7 +70,6 @@ jobs:
|
|||
path: artifacts
|
||||
|
||||
- name: Add files to Forgejo Release
|
||||
# Для Forgejo лучше использовать нативный action или проверь совместимость этого
|
||||
uses: https://github.com/softprops/action-gh-release@v2
|
||||
with:
|
||||
fail_on_unmatched_files: false
|
||||
|
|
|
|||
Loading…
Reference in a new issue