Skip to content

Commit c5867b6

Browse files
authored
Update main.yml
1 parent 79f0aef commit c5867b6

File tree

1 file changed

+22
-23
lines changed

1 file changed

+22
-23
lines changed

.github/workflows/main.yml

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,31 @@ name: Multi-OS Build
22

33
on:
44
push:
5-
branches: [ main ] # Сборка начнется, как только ты отправишь код
5+
branches: [ "main" ]
6+
workflow_dispatch:
67

78
jobs:
8-
build:
9-
strategy:
10-
matrix:
11-
os: [windows-latest, ubuntu-latest, macos-latest]
12-
runs-on: ${{ matrix.os }}
13-
9+
build-windows:
10+
runs-on: windows-latest
1411
steps:
15-
- uses: actions/checkout@v3
16-
- name: Set up Python
17-
uses: actions/setup-python@v4
18-
with:
19-
python-version: '3.10'
12+
- uses: actions/checkout@v4 # Обновлено до v4
13+
14+
- name: Set up Python
15+
uses: actions/setup-python@v5 # Обновлено до v5
16+
with:
17+
python-version: '3.10'
2018

21-
- name: Install PyInstaller
22-
run: pip install pyinstaller
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install pyinstaller
2323
24-
- name: Build App
25-
run: |
26-
# Для Windows собираем .exe, для остальных исполняемый файл
27-
pyinstaller --noconsole --onefile gui_app.py
24+
- name: Build EXE
25+
run: |
26+
pyinstaller --noconsole --onefile --icon=shadps4-emulator.ico gui_app.py
2827
29-
- name: Upload Artifact
30-
uses: actions/upload-artifact@v3
31-
with:
32-
name: shadPS4-Explorer-${{ matrix.os }}
33-
path: dist/*
28+
- name: Upload Artifact
29+
uses: actions/upload-artifact@v4 # ИСПРАВЛЕНИЕ ОШИБКИ: замена v3 на v4
30+
with:
31+
name: shadPS4-Explorer-Windows
32+
path: dist/*.exe

0 commit comments

Comments
 (0)