Add install.sh and packaged notion-timer.streamDeckPlugin

This commit is contained in:
pdmarf
2026-04-10 20:54:45 +01:00
parent 7fe0841024
commit c47161546b
5 changed files with 16 additions and 1 deletions

1
.gitignore vendored
View File

@@ -1,3 +1,2 @@
node_modules/ node_modules/
.DS_Store .DS_Store
*.streamDeckPlugin

Binary file not shown.

15
install.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
set -e
GITEA="http://100.120.125.113:3000"
REPO="pdm/stream_deck_notion_timer"
TMP_DIR=$(mktemp -d)
PLUGIN_FILE="${TMP_DIR}/notion-timer.streamDeckPlugin"
echo "Downloading Notion Timer..."
curl -sL "${GITEA}/${REPO}/raw/branch/master/notion-timer.streamDeckPlugin" -o "${PLUGIN_FILE}"
echo "Installing — Stream Deck will open automatically..."
open "${PLUGIN_FILE}"
echo "Done. Click a timer button to configure your Notion credentials."

Binary file not shown.

View File

@@ -4,6 +4,7 @@
"description": "Notion time tracking toggle for Stream Deck", "description": "Notion time tracking toggle for Stream Deck",
"scripts": { "scripts": {
"build": "esbuild src/plugin.ts --bundle --platform=node --target=node20 --outfile=com.pdma.notion-timer.sdPlugin/bin/plugin.js --external:electron && node scripts/sign.js", "build": "esbuild src/plugin.ts --bundle --platform=node --target=node20 --outfile=com.pdma.notion-timer.sdPlugin/bin/plugin.js --external:electron && node scripts/sign.js",
"package": "npm run build && zip -r notion-timer.streamDeckPlugin com.pdma.notion-timer.sdPlugin && echo 'Packaged: notion-timer.streamDeckPlugin'",
"dev": "esbuild src/plugin.ts --bundle --platform=node --target=node20 --outfile=com.pdma.notion-timer.sdPlugin/bin/plugin.js --external:electron --watch", "dev": "esbuild src/plugin.ts --bundle --platform=node --target=node20 --outfile=com.pdma.notion-timer.sdPlugin/bin/plugin.js --external:electron --watch",
"sign": "node scripts/sign.js", "sign": "node scripts/sign.js",
"link": "ln -sf \"$(pwd)/com.pdma.notion-timer.sdPlugin\" \"$HOME/Library/Application Support/com.elgato.StreamDeck/Plugins/com.pdma.notion-timer.sdPlugin\"", "link": "ln -sf \"$(pwd)/com.pdma.notion-timer.sdPlugin\" \"$HOME/Library/Application Support/com.elgato.StreamDeck/Plugins/com.pdma.notion-timer.sdPlugin\"",