File tree Expand file tree Collapse file tree 2 files changed +29
-15
lines changed
Expand file tree Collapse file tree 2 files changed +29
-15
lines changed Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ STREAMDECK_PLUGIN_URL=" https://github.com/pedropombeiro/streamdeck-linakdesk/releases/latest/download/com.pedropombeiro.streamdeck-linakdesk.streamDeckPlugin"
4+ STREAMDECK_PLUGIN_VERSION_URL=" https://github.com/pedropombeiro/streamdeck-linakdesk/releases/latest/download/VERSION.txt"
5+ STREAMDECK_PLUGIN_DOWNLOAD_DIR=" ${HOME} /Downloads"
6+ STREAMDECK_PLUGIN_DOWNLOAD_PATH=" ${STREAMDECK_PLUGIN_DOWNLOAD_DIR} /com.pedropombeiro.streamdeck-linakdesk.streamDeckPlugin"
7+ STREAMDECK_PLUGIN_VERSION_PATH=" ${STREAMDECK_PLUGIN_DOWNLOAD_DIR} /com.pedropombeiro.streamdeck-linakdesk.version"
8+
9+ if [[ ! -d " /Applications/Elgato Stream Deck.app" ]]; then
10+ exit 0
11+ fi
12+
13+ mkdir -p " ${STREAMDECK_PLUGIN_DOWNLOAD_DIR} "
14+
15+ latest_version=" $( curl -fsSL " ${STREAMDECK_PLUGIN_VERSION_URL} " ) "
16+ installed_version=" "
17+ if [[ -f " ${STREAMDECK_PLUGIN_VERSION_PATH} " ]]; then
18+ installed_version=" $( < " ${STREAMDECK_PLUGIN_VERSION_PATH} " ) "
19+ fi
20+
21+ if [[ -n " ${latest_version} " && " ${latest_version} " == " ${installed_version} " ]]; then
22+ exit 0
23+ fi
24+
25+ printf ' %s
26+ ' " Installing Linak Desk Control Stream Deck plugin ${latest_version} "
27+ curl -fsSL " ${STREAMDECK_PLUGIN_URL} " -o " ${STREAMDECK_PLUGIN_DOWNLOAD_PATH} "
28+ printf ' %s' " ${latest_version} " > " ${STREAMDECK_PLUGIN_VERSION_PATH} "
29+ open " ${STREAMDECK_PLUGIN_DOWNLOAD_PATH} "
Original file line number Diff line number Diff line change @@ -47,21 +47,6 @@ Thumbs.db
4747.config /pgcli /config
4848.config /sesh /sesh.toml
4949.config /tmux /tmux.platform.conf
50- .config /yadm /bootstrap.d /000-ensure-machine-class.sh
51- .config /yadm /bootstrap.d /001-enable-touchid-on-terminal.sh
52- .config /yadm /bootstrap.d /002-install-launch-agents.sh
53- .config /yadm /bootstrap.d /003-install-launch-daemons.sh
54- .config /yadm /bootstrap.d /005-software-install.sh
55- .config /yadm /bootstrap.d /015-allow-ssh-in-firewall.sh
56- .config /yadm /bootstrap.d /020-disable-spotlight-indexing.sh
57- .config /yadm /bootstrap.d /025-link-to-user-home-mise.toml.sh
58- .config /yadm /bootstrap.d /035-add-gdk-to-etc-hosts.sh
59- .config /yadm /bootstrap.d /900-install-nginx.sh
60- .config /yadm /bootstrap.d /915-install-tmux-terminfo.sh
61- .config /yadm /bootstrap.d /930-regular-install.sh
62- .config /yadm /bootstrap.d /940-open-apps-at-login.sh
63- .config /yadm /bootstrap.d /945-open-apps-for-first-time.sh
64- .config /yadm /bootstrap.d /950-install-gdk.sh
6550.config /yadm /config_templates /LaunchAgents /fcgiwrap.plist
6651.config /yadm /config_templates /LaunchDaemons /org.gitlab1.ifconfig.plist
6752.config /yadm /config_templates /nginx /bin /trigger-alfred.sh
You can’t perform that action at this time.
0 commit comments