Skip to content

Commit

Permalink
refactor: use new decky API
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
eXhumer authored and jfernandez committed Oct 8, 2024
1 parent 6246942 commit dfd01aa
Show file tree
Hide file tree
Showing 36 changed files with 1,355 additions and 930 deletions.
2 changes: 0 additions & 2 deletions .devcontainer/Dockerfile

This file was deleted.

8 changes: 0 additions & 8 deletions .devcontainer/devcontainer.json

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/build-backend.yml

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/build-plugin-snapshot-zip.yml

This file was deleted.

46 changes: 46 additions & 0 deletions .github/workflows/dev-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: dev-build
run-name: Build plugin for development
on:
push:
branches:
- main
workflow_dispatch:

jobs:
build-plugin:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup latest Node.js
uses: actions/setup-node@v4
with:
node-version: latest

- name: Setup PNPM@9
uses: pnpm/action-setup@v4
with:
version: 9

- name: Build frontend from source
run: |
pnpm i
pnpm run build
- name: Download Decky Plugin CLI
run: |
mkdir $(pwd)/cli
curl -L -o $(pwd)/cli/decky "https://github.com/SteamDeckHomebrew/cli/releases/latest/download/decky-linux-x86_64"
chmod +x $(pwd)/cli/decky
- name: Build plugin
run: |
$(pwd)/cli/decky plugin build $(pwd)
unzip "out/Controller Tools.zip" -d "out/Controller Tools"
- name: Upload plugin
uses: actions/upload-artifact@v4
with:
name: Controller Tools
path: out/Controller Tools/*
26 changes: 5 additions & 21 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,8 @@ lib-cov
*.gz
*.swp

pids
logs
results
tmp

# Coverage reports
coverage

# API keys and secrets
.env

# Dependency directory
node_modules
bower_components

# Editors
.idea
*.iml

# OS metadata
.DS_Store
Expand All @@ -41,13 +25,13 @@ Thumbs.db
# Ignore built ts files
dist/

__pycache__/

/.yalc
yalc.lock

.vscode/settings.json

# Ignore output folder

backend/out

.pnpm-store/
cli/
deck.json
out/
12 changes: 0 additions & 12 deletions .vscode/config.sh

This file was deleted.

7 changes: 0 additions & 7 deletions .vscode/defsettings.json

This file was deleted.

29 changes: 0 additions & 29 deletions .vscode/launch.json

This file was deleted.

148 changes: 0 additions & 148 deletions .vscode/tasks.json

This file was deleted.

26 changes: 0 additions & 26 deletions Dockerfile

This file was deleted.

Loading

0 comments on commit dfd01aa

Please sign in to comment.