mirror of
https://github.com/SteamDeckHomebrew/decky-plugin-template.git
synced 2025-11-26 18:03: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"
|
curl -L -o "$(pwd)"/cli/decky "https://github.com/SteamDeckHomebrew/cli/releases/latest/download/decky-macOS-x86_64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
elif [[ "$SYSTEM_ARCH" =~ "arm64" || "$SYSTEM_ARCH" =~ "aarch64" ]]; then
|
||||||
echo "System Arch not found! The only supported systems are Linux x86_64 and Apple x86_64/ARM64, not $SYSTEM_ARCH"
|
if [[ "$SYSTEM_ARCH" =~ "Linux" ]]; then
|
||||||
fi
|
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
|
else
|
||||||
curl -L -o "$(pwd)"/cli/decky "https://github.com/SteamDeckHomebrew/cli/releases/latest/download/decky-macOS-aarch64"
|
echo "System Arch not found! The only supported systems are Linux x86_64/ARM64 and Apple x86_64/ARM64, not $SYSTEM_ARCH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chmod +x "$(pwd)"/cli/decky
|
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",
|
"detail": "chmods plugins folder to prevent perms issues",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"group": "none",
|
"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": []
|
"problemMatcher": []
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
|
||||||
13
package.json
13
package.json
|
|
@ -26,16 +26,17 @@
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/SteamDeckHomebrew/decky-plugin-template#readme",
|
"homepage": "https://github.com/SteamDeckHomebrew/decky-plugin-template#readme",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@decky/rollup": "^1.0.1",
|
"@decky/rollup": "^1.0.2",
|
||||||
"@decky/ui": "^4.7.2",
|
"@decky/ui": "^4.11.0",
|
||||||
"@types/react": "18.3.3",
|
"@rollup/rollup-linux-x64-musl": "^4.53.3",
|
||||||
"@types/react-dom": "18.3.0",
|
"@types/react": "19.1.1",
|
||||||
|
"@types/react-dom": "19.1.1",
|
||||||
"@types/webpack": "^5.28.5",
|
"@types/webpack": "^5.28.5",
|
||||||
"rollup": "^4.22.5",
|
"rollup": "^4.53.3",
|
||||||
"typescript": "^5.6.2"
|
"typescript": "^5.6.2"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@decky/api": "^1.1.2",
|
"@decky/api": "^1.1.3",
|
||||||
"react-icons": "^5.3.0",
|
"react-icons": "^5.3.0",
|
||||||
"tslib": "^2.7.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",
|
"outDir": "dist",
|
||||||
"module": "ESNext",
|
"module": "ESNext",
|
||||||
"target": "ES2020",
|
"target": "ES2020",
|
||||||
"jsx": "react",
|
"jsx": "react-jsx",
|
||||||
"jsxFactory": "window.SP_REACT.createElement",
|
|
||||||
"jsxFragmentFactory": "window.SP_REACT.Fragment",
|
|
||||||
"declaration": false,
|
"declaration": false,
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"noUnusedLocals": true,
|
"noUnusedLocals": true,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue