diff --git a/.gitignore b/.gitignore index aeb1d47..2752eb9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ node_modules/ .DS_Store -*.streamDeckPlugin diff --git a/Notion Timer.streamDeckPlugin b/Notion Timer.streamDeckPlugin new file mode 100644 index 0000000..b4dddb9 Binary files /dev/null and b/Notion Timer.streamDeckPlugin differ diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..43a994c --- /dev/null +++ b/install.sh @@ -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." diff --git a/notion-timer.streamDeckPlugin b/notion-timer.streamDeckPlugin new file mode 100644 index 0000000..97d8dd5 Binary files /dev/null and b/notion-timer.streamDeckPlugin differ diff --git a/package.json b/package.json index 3aad0d7..bec2286 100644 --- a/package.json +++ b/package.json @@ -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\"",