forked from txthinking/blackwhite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·52 lines (45 loc) · 1.41 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
go run pac.go \
-m white \
-d file://$(pwd)/white.list \
-c file://$(pwd)/white_cidr.list \
-p 'SOCKS5 127.0.0.1:1080; SOCKS 127.0.0.1:1080; DIRECT' \
> white.pac
./node_modules/.bin/uglifyjs --compress --mangle -- white.pac > _
mv _ white.pac
go run pac.go \
-m black \
-d file://$(pwd)/black.list \
-c file://$(pwd)/black_cidr.list \
-p 'SOCKS5 127.0.0.1:1080; SOCKS 127.0.0.1:1080; DIRECT' \
> black.pac
./node_modules/.bin/uglifyjs --compress --mangle -- black.pac > _
mv _ black.pac
go run pac.go \
-m global \
-p 'SOCKS5 127.0.0.1:1080; SOCKS 127.0.0.1:1080; DIRECT' \
> global.pac
./node_modules/.bin/uglifyjs --compress --mangle -- global.pac > _
mv _ global.pac
go run pac.go \
-m white \
-d file://$(pwd)/white.list \
-c file://$(pwd)/white_cidr.list \
-p 'PROXY 127.0.0.1:8080; DIRECT' \
> http_white.pac
./node_modules/.bin/uglifyjs --compress --mangle -- http_white.pac > _
mv _ http_white.pac
go run pac.go \
-m black \
-d file://$(pwd)/black.list \
-c file://$(pwd)/black_cidr.list \
-p 'PROXY 127.0.0.1:8080; DIRECT' \
> http_black.pac
./node_modules/.bin/uglifyjs --compress --mangle -- http_black.pac > _
mv _ http_black.pac
go run pac.go \
-m global \
-p 'PROXY 127.0.0.1:8080; DIRECT' \
> http_global.pac
./node_modules/.bin/uglifyjs --compress --mangle -- http_global.pac > _
mv _ http_global.pac