-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathwindows-arm64.sh
executable file
·42 lines (33 loc) · 1.05 KB
/
windows-arm64.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
#!/bin/bash
set -e
export PATH="/opt/aarch64-w64-mingw32/bin:$PATH"
cmake . -B build/ \
-DCMAKE_BUILD_TYPE="Release" \
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION:BOOL="ON" \
-DCMAKE_C_COMPILER="aarch64-w64-mingw32-clang" \
-DCMAKE_C_FLAGS="-static -s" \
-DCMAKE_CXX_COMPILER="aarch64-w64-mingw32-clang++" \
-DCMAKE_CXX_FLAGS="-static -s"
cmake --build build/ -j$(nproc)
source build/config/config.sh
VERSION=$VERSION-windows-arm64
source package/common.sh
export _platform="windows"
export _archive="7z"
export _url_extension="url"
export _binary_suffix=".exe"
_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