forked from onmyway133/FinderGo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·20 lines (16 loc) · 927 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
set -euo pipefail
iTerm=iterm.scpt
terminal=terminal.scpt
hyper=hyper.scpt
vscode=vscode.scpt
DOWNLOAD_ITERM_URI=https://raw.githubusercontent.com/onmyway133/FinderGo/master/FinderSyncExtension/Scripts/${iTerm}
DOWNLOAD_TERMINAL_URI=https://raw.githubusercontent.com/onmyway133/FinderGo/master/FinderSyncExtension/Scripts/${terminal}
DOWNLOAD_HYPER_URI=https://raw.githubusercontent.com/onmyway133/FinderGo/master/FinderSyncExtension/Scripts/${hyper}
DOWNLOAD_VSCODE_URI=https://raw.githubusercontent.com/Qianli-Ma/FinderGo/master/FinderSyncExtension/Scripts/${vscode}
SCRIPT_DIR="${HOME}/Library/Application Scripts/com.onmyway133.FinderGo.FinderSyncExtension"
mkdir -p "${SCRIPT_DIR}"
curl $DOWNLOAD_ITERM_URI -o "${SCRIPT_DIR}/${iTerm}"
# curl $DOWNLOAD_TERMINAL_URI -o "${SCRIPT_DIR}/${terminal}"
# curl $DOWNLOAD_HYPER_URI -o "${SCRIPT_DIR}/${hyper}"
vurl $DOWNLOAD_VSCODE_URI -o "${SCRIPT_DIR}/${vscode}"