-
Notifications
You must be signed in to change notification settings - Fork 0
/
comp
executable file
·65 lines (63 loc) · 1.23 KB
/
comp
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
64
65
#! /bin/bash
v2() {
cp prep/v2/vite.config.js vite.config.js
cp prep/v2/tauri.conf.json src-tauri
cp prep/v2/package.json package.json
}
v1() {
cp prep/v1/vite.config.js vite.config.js
cp prep/v1/tauri.conf.json src-tauri
cp prep/v1/package.json package.json
}
rm package-lock.json src-tauri/Cargo.lock
case $1 in
""| "help"| "--help"| "-h")
source scripts/error.sh
;;
"v1")
v1
case $2 in
"stable")
cp prep/v1/stable/Cargo.toml src-tauri
;;
"nightly")
cp prep/v1/nightly/Cargo.toml src-tauri
;;
*)
source scripts/error.sh
;;
esac
;;
"v2")
v2
case $2 in
"stable")
cp prep/v2/stable/Cargo.toml src-tauri
;;
"nightly")
cp prep/v2/nightly/Cargo.toml src-tauri
;;
*)
source scripts/error.sh
;;
esac
;;
*)
source scripts/error.sh
;;
esac
#source ./scripts/prep.sh $1 $2
case $3 in
"build"| "")
source scripts/build/delegate.sh
;;
"dev")
source scripts/dev/delegate.sh
;;
"workflow")
exit
;;
*)
exit
;;
esac