-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathlinux-amd64.sh
executable file
·41 lines (33 loc) · 1.05 KB
/
linux-amd64.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
#!/bin/bash
set -e
cmake . -B build/ \
-DCMAKE_BUILD_TYPE="Release" \
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION:BOOL="ON" \
-DCMAKE_C_COMPILER="x86_64-alpine-linux-musl-gcc" \
-DCMAKE_C_FLAGS="-static-pie -s" \
-DCMAKE_CXX_COMPILER="x86_64-alpine-linux-musl-g++" \
-DCMAKE_CXX_FLAGS="-static-pie -s"
cmake --build build/ -j$(nproc)
source build/config/config.sh
VERSION=$VERSION-linux-amd64
source package/common.sh
export _platform="unix"
export _archive="tar.xz"
export _url_extension="desktop"
export _script_extension="sh"
export _binary_suffix=""
_Dist="字体合并补全工具-压缩字库-$VERSION" \
_dist="WarFontMerger-XS-$VERSION" \
_cjk="WFM-Sans-CJK-XS-Regular" \
_latin="WFM-Sans-LCG-Apache-Regular" \
package_sc
_Dist="字体合并补全工具-简体中文-$VERSION" \
_dist="WarFontMerger-SC-$VERSION" \
_cjk="WFM-Sans-CJK-SC-Medium" \
_latin="WFM-Sans-LCG-Medium" \
package_sc
_Dist="字型合併補全工具-傳統字形-$VERSION" \
_dist="WarFontMerger-CL-$VERSION" \
_cjk="WFM-Sans-CJK-CL-Medium" \
_latin="WFM-Sans-LCG-Medium" \
package_tc