Skip to content

Commit c609495

Browse files
committed
update github actions
1 parent dfc899c commit c609495

File tree

5 files changed

+64
-42
lines changed

5 files changed

+64
-42
lines changed

.github/workflows/build-mac.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build macos release
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build:
8+
runs-on: macos-latest
9+
10+
steps:
11+
- name: setup python
12+
uses: actions/setup-python@v3
13+
with:
14+
python-version: "3.10"
15+
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install -r requirements.txt
23+
24+
- name: Build
25+
run: python pyinstaller.py
26+
27+
- name: Upload build artifacts
28+
uses: actions/upload-artifact@v3
29+
with:
30+
path: dist/ps2mc-browser.app

.github/workflows/build-windows.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build windows release
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build:
8+
runs-on: windows-latest
9+
10+
steps:
11+
- name: setup python
12+
uses: actions/setup-python@v3
13+
with:
14+
python-version: "3.10"
15+
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install -r requirements.txt
23+
24+
- name: Build
25+
run: python pyinstaller.py
26+
27+
- name: Upload build artifacts
28+
uses: actions/upload-artifact@v3
29+
with:
30+
path: dist/ps2mc-browser.exe

.github/workflows/python-app.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ __pycache__/
99
**/*.iml
1010
*test.py
1111
.pytest_cache
12-
.venv
12+
.venv
13+
ps2mc-browser.spec

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
moderngl==5.8.2
22
numpy==1.26.4
33
PyGLM==2.7.1
4-
wxPython==4.2.1
4+
wxPython==4.2.1
5+
pyinstaller==6.11.1

0 commit comments

Comments
 (0)