-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.sh
executable file
·32 lines (27 loc) · 941 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh
rm sn-vscode-theme.zip
zip -r sn-vscode-theme.zip . -x build -x .\* -x \*.zip -x node_modules/\*
if [ -z $1 ]; then
exit 0
fi
if [ $1 = "debug" ]; then
unameOut="$(uname -s)"
case "${unameOut}" in
Linux*) machine=Linux;;
Darwin*) machine=Mac;;
CYGWIN*) machine=Cygwin;;
MINGW*) machine=MinGw;;
*) machine="UNKNOWN:${unameOut}"
esac
if [ $machine == "Linux" ];
then
if [ -d "$HOME/.var/app/org.standardnotes.standardnotes/config/Standard Notes/Extensions/vscode-theme" ];
then
rm -fr "$HOME/.var/app/org.standardnotes.standardnotes/config/Standard Notes/Extensions/vscode-theme/"*
else
mkdir -p "$HOME/.var/app/org.standardnotes.standardnotes/config/Standard Notes/Extensions/vscode-theme"
fi
fi
unzip sn-vscode-theme.zip -d "$HOME/.var/app/org.standardnotes.standardnotes/config/Standard Notes/Extensions/vscode-theme"
fi
exit 0