update for new react, also support linux aarch64 builds

This commit is contained in:
AAGaming 2025-11-20 00:38:21 -05:00
commit b25d4f81be
No known key found for this signature in database
GPG key ID: 00CFCD925A3E0C50
5 changed files with 329 additions and 263 deletions

11
.vscode/setup.sh vendored
View file

@ -54,14 +54,19 @@ 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
curl -L -o "$(pwd)"/cli/decky "https://github.com/SteamDeckHomebrew/cli/releases/latest/download/decky-linux-aarch64"
fi fi
if [[ "$SYSTEM_ARCH" =~ "arm64" ]]; then if [[ "$SYSTEM_ARCH" =~ "Darwin" ]]; then
curl -L -o "$(pwd)"/cli/decky "https://github.com/SteamDeckHomebrew/cli/releases/latest/download/decky-macOS-aarch64" curl -L -o "$(pwd)"/cli/decky "https://github.com/SteamDeckHomebrew/cli/releases/latest/download/decky-macOS-aarch64"
fi fi
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 chmod +x "$(pwd)"/cli/decky
echo "Decky CLI tool is now installed and you can build plugins into easy zip files using the "Build Zip" Task in vscodium." echo "Decky CLI tool is now installed and you can build plugins into easy zip files using the "Build Zip" Task in vscodium."
fi fi

10
.vscode/tasks.json vendored
View file

@ -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": []
}, },
] ]

View file

@ -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

File diff suppressed because it is too large Load diff

View file

@ -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,