This repository was archived by the owner on Sep 19, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +15
-9
lines changed Expand file tree Collapse file tree 4 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 1
1
cache /
2
2
data /
3
+ /build /*
4
+ ! /build /PKGBUILD
5
+ venv /
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ set -eo pipefail
2
3
3
4
SHELL_FOLDER=$( dirname $( readlink -f " $0 " ) )
4
5
@@ -11,13 +12,6 @@ find_downloader(){
11
12
# 寻找下载器
12
13
# 会设置 $downloader 和 $down_out_op 变量
13
14
14
- # 寻找 aria2c
15
- if type aria2c > /dev/null 2>&1 ; then
16
- downloader=aria2c
17
- down_out_op=-o
18
- return
19
- fi
20
-
21
15
# 寻找 wget
22
16
if type wget > /dev/null 2>&1 ; then
23
17
downloader=wget
@@ -32,6 +26,15 @@ find_downloader(){
32
26
return
33
27
fi
34
28
29
+ # 寻找 aria2c
30
+ # Preferring aria2 causes "address already in use" when there is existing aria2 instance
31
+ # So move it to the end of the searching list
32
+ if type aria2c > /dev/null 2>&1 ; then
33
+ downloader=aria2c
34
+ down_out_op=-o
35
+ return
36
+ fi
37
+
35
38
echo " 未找到合适的下载器,请安装 aria2c/wget/curl 之一后重试。" >&2
36
39
}
37
40
@@ -162,4 +165,3 @@ cp ../cache/rime-symbols/opencc/* opencc
162
165
echo 开始构建部署二进制
163
166
rime_deployer --compile clover.schema.yaml . /usr/share/rime-data || exit
164
167
rm -rf build/* .txt
165
-
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ set -euo pipefail
2
3
3
4
ver=" $1 "
4
5
@@ -7,4 +8,4 @@ rm -rf clover.schema-$ver.zip
7
8
rm -rf clover.schema-build-$ver .zip
8
9
zip -5 clover.schema-$ver .zip * .yaml opencc/*
9
10
zip -5 clover.schema-build-$ver .zip * .yaml opencc/* build/*
10
-
11
+ cp clover.schema-build- $ver .zip ../build
You can’t perform that action at this time.
0 commit comments