-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathpackage.json
More file actions
75 lines (75 loc) · 3.93 KB
/
package.json
File metadata and controls
75 lines (75 loc) · 3.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
"name": "moondeck",
"version": "1.11.3",
"description": "MoonDeck lets you play any of your Steam games via Moonlight without needing to add them to Sunshine first, providing a similar experience to GeForce GameStream or Steam Remote Play.",
"type": "module",
"scripts": {
"setup": "pnpm i && ([ -f ./cli/decky ] || pnpm run setup:cli) && (which docker >/dev/null || echo 'Docker not found, you will need it for backend development.')",
"setup:cli": "mkdir -p cli && case \"$(uname -s)-$(uname -m)\" in 'Linux-x86_64') url=decky-linux-x86_64 ;; 'Darwin-x86_64') url=decky-macOS-x86_64 ;; 'Darwin-arm64') url=decky-macOS-aarch64 ;; *) echo \"Unsupported system: $(uname -s)-$(uname -m)\"; exit 1 ;; esac && curl -L \"https://github.com/SteamDeckHomebrew/cli/releases/latest/download/$url\" -o ./cli/decky && chmod +x ./cli/decky",
"build": "rollup -c",
"build:plugin": "pnpm run build && ./cli/decky plugin build -s directory",
"build:deploy": "pnpm run build:plugin && pnpm run deploy",
"deploy": "dotenv -- sh -c \"pnpm --silent run deploy:dotenv 'pnpm --silent run deploy:scp && pnpm --silent run deploy:rmdir && pnpm --silent run deploy:mkdir && pnpm --silent run deploy:chown && pnpm --silent run deploy:extract && pnpm --silent run deploy:restart'\"",
"deploy:dotenv": "set -e; echo \"🛠️ Setting up ENV\"; export PLUGIN_SAFE_NAME=$(echo \"$PLUGIN_NAME\" | tr ' ' '-'); PLUGIN_DIR=\"$DECK_DIR/homebrew/plugins/$PLUGIN_SAFE_NAME\" OUT_FILE=\"out/$PLUGIN_NAME.zip\" TMP_FILE=\"/tmp/$PLUGIN_NAME.zip\" SHARED_OPTS=\"$DECK_PORT -o StrictHostKeyChecking=no -o ConnectTimeout=10 $DECK_KEY\" SCP_OPTS=\"-q -P $SHARED_OPTS\" SSH_OPTS=\"-C -p $SHARED_OPTS $DECK_USER@$DECK_IP\" SUDO=\"sudo -p '' -S\" sh -c \"$@\"",
"deploy:scp": "echo \"📤 Deploying '$OUT_FILE' to $DECK_USER@$DECK_IP:'$TMP_FILE'\" && scp $SCP_OPTS \"$OUT_FILE\" $DECK_USER@$DECK_IP:\"$TMP_FILE\"",
"deploy:rmdir": "echo \"🗑️ Cleaning up '$PLUGIN_DIR'\" && echo \"$DECK_PASS\" | ssh $SSH_OPTS \"$SUDO -- rm -rf '$PLUGIN_DIR'\"",
"deploy:mkdir": "echo \"📁 Creating '$PLUGIN_DIR'\" && echo \"$DECK_PASS\" | ssh $SSH_OPTS \"$SUDO -- mkdir -m 755 -p '$PLUGIN_DIR'\"",
"deploy:chown": "echo \"🔑 Changing ownership for '$PLUGIN_DIR'\" && echo \"$DECK_PASS\" | ssh $SSH_OPTS \"$SUDO chown $DECK_USER:$DECK_USER '$PLUGIN_DIR'\"",
"deploy:extract": "echo \"📦 Extracting '$TMP_FILE' to '$PLUGIN_DIR'\" && echo \"$DECK_PASS\" | ssh $SSH_OPTS \"$SUDO -- bsdtar -xzp -f '$TMP_FILE' -C '$PLUGIN_DIR' --strip-components=1 --fflags\"",
"deploy:restart": "echo \"♻️ Restarting Decky\" && echo \"$DECK_PASS\" | ssh $SSH_OPTS \"$SUDO -- systemctl restart plugin_loader\"",
"watch": "rollup -c -w",
"test": "npx eslint src/**"
},
"repository": {
"type": "git",
"url": "git+https://github.com/FrogTheFrog/moondeck"
},
"keywords": [
"decky",
"plugin",
"plugin-template",
"steam-deck",
"deck"
],
"author": "FrogTheFrog",
"license": "GNU GPLv3",
"bugs": {
"url": "https://github.com/FrogTheFrog/moondeck/issues"
},
"homepage": "https://github.com/FrogTheFrog/moondeck#readme",
"devDependencies": {
"@decky/rollup": "^1.0.2",
"@decky/ui": "^4.11.1",
"@eslint/js": "^9.39.1",
"@stylistic/eslint-plugin": "^5.6.1",
"@types/lodash": "^4.17.21",
"@types/react": "19.2.7",
"@types/react-dom": "19.2.3",
"@types/webpack": "^5.28.5",
"dotenv-cli": "^11.0.0",
"eslint": "^9.39.1",
"rollup": "^4.53.3",
"typescript": "^5.9.3",
"typescript-eslint": "^8.48.0"
},
"dependencies": {
"@decky/api": "^1.1.3",
"async-mutex": "^0.5.0",
"ip-regex": "^5.0.0",
"lodash": "^4.17.21",
"mobx": "^6.15.0",
"promise-throttle-all": "^1.1.1",
"react-icons": "^5.5.0",
"rxjs": "^7.8.2",
"ts-bidirectional-map": "^1.0.2",
"tslib": "^2.8.1"
},
"pnpm": {
"peerDependencyRules": {
"ignoreMissing": [
"react",
"react-dom"
]
}
}
}