-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathui-designer.sh
More file actions
executable file
·63 lines (55 loc) · 1.34 KB
/
ui-designer.sh
File metadata and controls
executable file
·63 lines (55 loc) · 1.34 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/sh
source ./.terminal/ui.sh
function print_usage {
echo "Usage: ./ui-designer.sh [--version|--help]"
echo ""
echo " --version display the project version"
echo " --help get more information"
echo ""
}
case "${1}" in
--help )
print_usage
exit 0
;;
--version )
echo "Version 1.0.0"
exit 0
;;
* )
;;
esac
##
## Sketch.
##
## Sketch is the all-in-one platform for digital design — with collaborative design tools,
## prototyping and developer handoff.
##
## See more: https://www.sketch.com.
##
step "Install Sketch"
sketch_output="$(brew install --cask sketch 2>&1 >/dev/null)"
if [ $? -eq 0 ]; then
success "Sucessfully installed Sketch"
elif echo "$sketch_output" | grep -i "It seems there is already an App"; then
success "Sketch is already installed"
else
error "Fail to install Sketch."
fi
##
## Figma.
##
## Figma is a collaborative web application for interface design, with additional offline features
## enabled by desktop applications for macOS and Windows.
##
## See more: https://www.figma.com.
##
step "Install Figma"
figma_output="$(brew install --cask figma 2>&1 >/dev/null)"
if [ $? -eq 0 ]; then
success "Sucessfully installed Figma"
elif echo "$figma_output" | grep -i "It seems there is already an App"; then
success "Figma is already installed"
else
error "Fail to install Figma."
fi