Skip to content

Commit dfd01aa

Browse files
eXhumerjfernandez
authored andcommitted
refactor: use new decky API
* modernize main.py * use settings API instead of backend * fix frontend for new decky API * use decky/cli to make plugin Signed-off-by: eXhumer <[email protected]>
1 parent 6246942 commit dfd01aa

36 files changed

+1355
-930
lines changed

.devcontainer/Dockerfile

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

.devcontainer/devcontainer.json

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

.github/workflows/build-backend.yml

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

.github/workflows/build-plugin-snapshot-zip.yml

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

.github/workflows/dev-build.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: dev-build
2+
run-name: Build plugin for development
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
jobs:
10+
build-plugin:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Setup latest Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: latest
20+
21+
- name: Setup PNPM@9
22+
uses: pnpm/action-setup@v4
23+
with:
24+
version: 9
25+
26+
- name: Build frontend from source
27+
run: |
28+
pnpm i
29+
pnpm run build
30+
31+
- name: Download Decky Plugin CLI
32+
run: |
33+
mkdir $(pwd)/cli
34+
curl -L -o $(pwd)/cli/decky "https://github.com/SteamDeckHomebrew/cli/releases/latest/download/decky-linux-x86_64"
35+
chmod +x $(pwd)/cli/decky
36+
37+
- name: Build plugin
38+
run: |
39+
$(pwd)/cli/decky plugin build $(pwd)
40+
unzip "out/Controller Tools.zip" -d "out/Controller Tools"
41+
42+
- name: Upload plugin
43+
uses: actions/upload-artifact@v4
44+
with:
45+
name: Controller Tools
46+
path: out/Controller Tools/*

.gitignore

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,8 @@ lib-cov
1515
*.gz
1616
*.swp
1717

18-
pids
19-
logs
20-
results
21-
tmp
22-
23-
# Coverage reports
24-
coverage
25-
26-
# API keys and secrets
27-
.env
28-
2918
# Dependency directory
3019
node_modules
31-
bower_components
32-
33-
# Editors
34-
.idea
35-
*.iml
3620

3721
# OS metadata
3822
.DS_Store
@@ -41,13 +25,13 @@ Thumbs.db
4125
# Ignore built ts files
4226
dist/
4327

44-
__pycache__/
45-
46-
/.yalc
47-
yalc.lock
48-
4928
.vscode/settings.json
5029

5130
# Ignore output folder
5231

5332
backend/out
33+
34+
.pnpm-store/
35+
cli/
36+
deck.json
37+
out/

.vscode/config.sh

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

.vscode/defsettings.json

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

.vscode/launch.json

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

.vscode/tasks.json

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

0 commit comments

Comments
 (0)