Compare commits

..

3 commits
v1.1 ... main

Author SHA1 Message Date
401cc652a2 edit final
All checks were successful
Build and Publish Release / Build Linux (release) Successful in 3m0s
Build and Publish Release / Build Windows (release) Successful in 4m37s
Build and Publish Release / Upload Assets to Release (release) Successful in 11s
2026-05-02 17:51:31 +05:00
2658b5f5bf edit 3
Some checks failed
Build and Publish Release / Build Linux (release) Successful in 2m0s
Build and Publish Release / Build Windows (release) Successful in 4m42s
Build and Publish Release / Upload Assets to Release (release) Failing after 8s
2026-05-02 17:41:04 +05:00
723e8d7b6e edit 2
Some checks failed
Build and Publish Release / Build Linux (release) Successful in 2m13s
Build and Publish Release / Build Windows (release) Successful in 4m42s
Build and Publish Release / Upload Assets to Release (release) Failing after 22s
2026-05-02 17:25:27 +05:00

View file

@ -10,16 +10,15 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: '3.11' python-version: '3.11'
- name: Install system dependencies (Tkinter) - name: Install system dependencies (Tkinter)
# В Ubuntu для работы Tkinter необходим системный пакет python3-tk run: apt-get update && apt-get install -y python3-tk
run: sudo apt-get update && sudo apt-get install -y python3-tk
- name: Install Python dependencies - name: Install Python dependencies
run: | run: |
@ -28,7 +27,6 @@ jobs:
pip install pyinstaller pip install pyinstaller
- name: Build Linux executable - name: Build Linux executable
# Флаг --windowed убирает консоль, --onefile собирает все в один файл
run: pyinstaller --onefile --windowed --name factorio-mod-sync-linux main.py run: pyinstaller --onefile --windowed --name factorio-mod-sync-linux main.py
- name: Upload Linux artifact - name: Upload Linux artifact
@ -40,12 +38,14 @@ jobs:
build-windows: build-windows:
name: Build Windows name: Build Windows
runs-on: ubuntu-latest runs-on: ubuntu-latest
# Используем контейнер с настроенным Wine и Python 3.11 под Windows
container: container:
image: tobix/pywine:3.11 image: tobix/pywine:3.11
steps: steps:
- name: Install Node.js and Git (required for Actions)
run: apt-get update && apt-get install -y nodejs git
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Install Python dependencies (Windows) - name: Install Python dependencies (Windows)
run: | run: |
@ -69,13 +69,14 @@ jobs:
steps: steps:
- name: Download all artifacts - name: Download all artifacts
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with:
path: artifacts
- name: Add files to Forgejo Release - name: Add files to Forgejo Release
uses: softprops/action-gh-release@v1 uses: https://github.com/softprops/action-gh-release@v2
with: with:
files: | files: |
linux-build/factorio-mod-sync-linux artifacts/linux-build/factorio-mod-sync-linux
windows-build/factorio-mod-sync-windows.exe artifacts/windows-build/factorio-mod-sync-windows.exe
env: env:
# В Forgejo GITHUB_TOKEN автоматически мапится на внутренний токен доступа
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}