Add install.sh and packaged notion-timer.streamDeckPlugin
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,2 @@
|
||||
node_modules/
|
||||
.DS_Store
|
||||
*.streamDeckPlugin
|
||||
|
||||
BIN
Notion Timer.streamDeckPlugin
Normal file
BIN
Notion Timer.streamDeckPlugin
Normal file
Binary file not shown.
15
install.sh
Normal file
15
install.sh
Normal 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."
|
||||
BIN
notion-timer.streamDeckPlugin
Normal file
BIN
notion-timer.streamDeckPlugin
Normal file
Binary file not shown.
@@ -4,6 +4,7 @@
|
||||
"description": "Notion time tracking toggle for Stream Deck",
|
||||
"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",
|
||||
"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",
|
||||
"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\"",
|
||||
|
||||
Reference in New Issue
Block a user