-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinit.sh
More file actions
executable file
·25 lines (20 loc) · 757 Bytes
/
init.sh
File metadata and controls
executable file
·25 lines (20 loc) · 757 Bytes
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
#!/bin/sh
# Based on a code by Krystian Safjan: See: https://safjan.com/bash-determine-if-linux-or-macos/
# License: (CC BY-SA 4.0)
unameOut="$(uname -s)"
case "${unameOut}" in
Linux*) machine=Linux;;
Darwin*) machine=Mac;;
CYGWIN*) machine=Cygwin;;
MINGW*) machine=MinGw;;
*) machine="UNKNOWN:${unameOut}"
esac
npm install
mkdir ./dist
cargo install --path ./src-tauri
# curl https://use.fontawesome.com/releases/v6.4.0/fontawesome-free-6.4.0-web.zip -o ./fontawesome-free-6.4.0-web.zip
#if [ "$machine" = "Mac" ]; then # unzip doesn't seem to create directories in macOs
# mkdir -p ./src/assets/css
#fi
# unzip -u fontawesome-free-6.4.0-web.zip -d ./src/assets/css
# rm ./fontawesome-free-6.4.0-web.zip