mirror of
https://github.com/SteamDeckHomebrew/decky-plugin-template.git
synced 2025-11-25 09:23:32 -06:00
update for new react, also support linux aarch64 builds
This commit is contained in:
parent
8262602460
commit
b25d4f81be
5 changed files with 329 additions and 263 deletions
15
.vscode/setup.sh
vendored
15
.vscode/setup.sh
vendored
|
|
@ -54,12 +54,17 @@ if ! test -f "$CLI_INSTALLED"; then
|
|||
curl -L -o "$(pwd)"/cli/decky "https://github.com/SteamDeckHomebrew/cli/releases/latest/download/decky-macOS-x86_64"
|
||||
fi
|
||||
|
||||
else
|
||||
echo "System Arch not found! The only supported systems are Linux x86_64 and Apple x86_64/ARM64, not $SYSTEM_ARCH"
|
||||
fi
|
||||
elif [[ "$SYSTEM_ARCH" =~ "arm64" || "$SYSTEM_ARCH" =~ "aarch64" ]]; then
|
||||
if [[ "$SYSTEM_ARCH" =~ "Linux" ]]; then
|
||||
curl -L -o "$(pwd)"/cli/decky "https://github.com/SteamDeckHomebrew/cli/releases/latest/download/decky-linux-aarch64"
|
||||
fi
|
||||
|
||||
if [[ "$SYSTEM_ARCH" =~ "Darwin" ]]; then
|
||||
curl -L -o "$(pwd)"/cli/decky "https://github.com/SteamDeckHomebrew/cli/releases/latest/download/decky-macOS-aarch64"
|
||||
fi
|
||||
|
||||
if [[ "$SYSTEM_ARCH" =~ "arm64" ]]; then
|
||||
curl -L -o "$(pwd)"/cli/decky "https://github.com/SteamDeckHomebrew/cli/releases/latest/download/decky-macOS-aarch64"
|
||||
else
|
||||
echo "System Arch not found! The only supported systems are Linux x86_64/ARM64 and Apple x86_64/ARM64, not $SYSTEM_ARCH"
|
||||
fi
|
||||
|
||||
chmod +x "$(pwd)"/cli/decky
|
||||
|
|
|
|||
10
.vscode/tasks.json
vendored
10
.vscode/tasks.json
vendored
|
|
@ -135,7 +135,15 @@
|
|||
"detail": "chmods plugins folder to prevent perms issues",
|
||||
"type": "shell",
|
||||
"group": "none",
|
||||
"command": "ssh ${config:deckuser}@${config:deckip} -p ${config:deckport} ${config:deckkey} 'echo '${config:deckpass}' | sudo -S chmod -R ug+rw ${config:deckdir}/homebrew/plugins/'",
|
||||
"command": "ssh ${config:deckuser}@${config:deckip} -p ${config:deckport} ${config:deckkey} 'echo '${config:deckpass}' | sudo -S chown ${config:deckuser} ${config:deckdir}/homebrew/plugins/'",
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "restartdecky",
|
||||
"detail": "restarts decky",
|
||||
"type": "shell",
|
||||
"group": "none",
|
||||
"command": "ssh ${config:deckuser}@${config:deckip} -p ${config:deckport} ${config:deckkey} 'echo '${config:deckpass}' | sudo -S systemctl restart plugin_loader'",
|
||||
"problemMatcher": []
|
||||
},
|
||||
]
|
||||
|
|
|
|||
13
package.json
13
package.json
|
|
@ -26,16 +26,17 @@
|
|||
},
|
||||
"homepage": "https://github.com/SteamDeckHomebrew/decky-plugin-template#readme",
|
||||
"devDependencies": {
|
||||
"@decky/rollup": "^1.0.1",
|
||||
"@decky/ui": "^4.7.2",
|
||||
"@types/react": "18.3.3",
|
||||
"@types/react-dom": "18.3.0",
|
||||
"@decky/rollup": "^1.0.2",
|
||||
"@decky/ui": "^4.11.0",
|
||||
"@rollup/rollup-linux-x64-musl": "^4.53.3",
|
||||
"@types/react": "19.1.1",
|
||||
"@types/react-dom": "19.1.1",
|
||||
"@types/webpack": "^5.28.5",
|
||||
"rollup": "^4.22.5",
|
||||
"rollup": "^4.53.3",
|
||||
"typescript": "^5.6.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"@decky/api": "^1.1.2",
|
||||
"@decky/api": "^1.1.3",
|
||||
"react-icons": "^5.3.0",
|
||||
"tslib": "^2.7.0"
|
||||
},
|
||||
|
|
|
|||
550
pnpm-lock.yaml
generated
550
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
|
|
@ -3,9 +3,7 @@
|
|||
"outDir": "dist",
|
||||
"module": "ESNext",
|
||||
"target": "ES2020",
|
||||
"jsx": "react",
|
||||
"jsxFactory": "window.SP_REACT.createElement",
|
||||
"jsxFragmentFactory": "window.SP_REACT.Fragment",
|
||||
"jsx": "react-jsx",
|
||||
"declaration": false,
|
||||
"moduleResolution": "node",
|
||||
"noUnusedLocals": true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue