generated from SteamDeckHomebrew/Plugin-Template
-
Notifications
You must be signed in to change notification settings - Fork 9
76 lines (61 loc) · 2.04 KB
/
push.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Builder
on: ["push", "pull_request", "workflow_dispatch"]
jobs:
build:
name: Build SDH-CSSLoader for Decky
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up NodeJS 20
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install JS dependencies
run: |
npm i -g pnpm
pnpm install
- name: Build Frontend
run: |
pnpm run build
- name: Package Release
run: |
mkdir "SDH-CssLoader"
cp *.py "./SDH-CssLoader"
cp *.json "./SDH-CssLoader"
cp LICENSE "./SDH-CssLoader"
cp README.md "./SDH-CssLoader"
cp -r dist "./SDH-CssLoader"
mkdir upload
mv "./SDH-CssLoader" ./upload
- name: Upload package artifact
uses: actions/upload-artifact@v3
with:
name: SDH-CSSLoader-Decky
path: ./upload
build-standalone-win:
name: Build SDH-CSSLoader Standalone for Windows
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python 3.10.2
uses: actions/setup-python@v4
with:
python-version: "3.10.2"
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller==5.5
pip install -r requirements.txt
- name: Build Python Backend
run: pyinstaller --noconfirm --onefile --add-data "./assets;/assets" --name "CssLoader-Standalone" ./main.py ./css_win_tray.py
- name: Build Python Backend Headless
run: pyinstaller --noconfirm --noconsole --onefile --add-data "./assets;/assets" --name "CssLoader-Standalone-Headless" ./main.py ./css_win_tray.py
- name: Upload package artifact
uses: actions/upload-artifact@v3
with:
name: SDH-CSSLoader-Win-Standalone
path: |
./dist/CssLoader-Standalone.exe
./dist/CssLoader-Standalone-Headless.exe