Compare commits
No commits in common. "main" and "v1.1.1.1.1" have entirely different histories.
main
...
v1.1.1.1.1
1 changed files with 11 additions and 9 deletions
|
|
@ -10,15 +10,16 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
|
|
||||||
- name: Install system dependencies (Tkinter)
|
- name: Install system dependencies (Tkinter)
|
||||||
run: apt-get update && apt-get install -y python3-tk
|
# В Ubuntu для работы Tkinter необходим системный пакет python3-tk
|
||||||
|
run: sudo apt-get update && sudo apt-get install -y python3-tk
|
||||||
|
|
||||||
- name: Install Python dependencies
|
- name: Install Python dependencies
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -27,6 +28,7 @@ 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
|
||||||
|
|
@ -38,6 +40,7 @@ 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:
|
||||||
|
|
@ -45,7 +48,7 @@ jobs:
|
||||||
run: apt-get update && apt-get install -y nodejs git
|
run: apt-get update && apt-get install -y nodejs git
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install Python dependencies (Windows)
|
- name: Install Python dependencies (Windows)
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -69,14 +72,13 @@ 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: https://github.com/softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
artifacts/linux-build/factorio-mod-sync-linux
|
linux-build/factorio-mod-sync-linux
|
||||||
artifacts/windows-build/factorio-mod-sync-windows.exe
|
windows-build/factorio-mod-sync-windows.exe
|
||||||
env:
|
env:
|
||||||
|
# В Forgejo GITHUB_TOKEN автоматически мапится на внутренний токен доступа
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
Loading…
Reference in a new issue