Skip to content

Commit 27c0b1d

Browse files
authored
Update main.yml
1 parent 5d2a6fd commit 27c0b1d

File tree

1 file changed

+20
-16
lines changed

1 file changed

+20
-16
lines changed

.github/workflows/main.yml

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,36 @@
11
name: Multi-OS Build
22

3-
on:
4-
push:
5-
branches: [ "main" ]
6-
workflow_dispatch:
3+
on: [push, workflow_dispatch]
74

85
jobs:
9-
build-windows:
10-
runs-on: windows-latest
6+
build:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
# Здесь мы указываем все три системы сразу
11+
os: [windows-latest, ubuntu-latest, macos-latest]
12+
1113
steps:
1214
- uses: actions/checkout@v4
13-
14-
- name: Set up Python
15-
uses: actions/setup-python@v5
15+
- uses: actions/setup-python@v5
1616
with:
1717
python-version: '3.10'
1818

1919
- name: Install dependencies
20-
run: |
21-
python -m pip install --upgrade pip
22-
pip install pyinstaller
20+
run: pip install pyinstaller
2321

24-
- name: Build EXE
22+
- name: Build App
2523
run: |
26-
pyinstaller --noconsole --onefile gui_app.py
24+
# Для Windows добавляем иконку, для остальных — просто собираем
25+
if ("${{ matrix.os }}" -eq "windows-latest") {
26+
pyinstaller --noconsole --onefile --icon=shadps4-emulator.ico gui_app.py
27+
} else {
28+
pyinstaller --noconsole --onefile gui_app.py
29+
}
30+
shell: pwsh
2731

2832
- name: Upload Artifact
2933
uses: actions/upload-artifact@v4
3034
with:
31-
name: shadPS4-Explorer-Windows
32-
path: dist/*.exe
35+
name: Explorer-${{ matrix.os }}
36+
path: dist/*

0 commit comments

Comments
 (0)