forked from therecipe/env_darwin_amd64_513
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.sh
executable file
·46 lines (26 loc) · 1.04 KB
/
init.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
#!/bin/bash
set -ev
QT_ROOT=$HOME
QT_VERSION=5.13.0
rm -rf ./${QT_VERSION}
rm -rf ./Licenses
rsync -avz $QT_ROOT/Qt/${QT_VERSION}/clang_64 ./${QT_VERSION}/
rsync -avz $QT_ROOT/Qt/Licenses .
rm -rf ./${QT_VERSION}/clang_64/{doc,phrasebooks}
rm -rf ./${QT_VERSION}/clang_64/lib/{cmake,pkgconfig,libQt5Bootstrap.a}
set +e
for v in *.jsc *.log *.pro *.pro.user *.qmake.stash *.qmlc .DS_Store *_debug* *.dSYM *.la *.prl; do
find . -maxdepth 8 -name ${v} -exec rm -rf {} \;
done
set -e
mkdir -p ./${QT_VERSION}/clang_64/_bin
for v in macdeployqt moc qmake qmlcachegen qmlimportscanner qt.conf rcc uic; do
mv ./${QT_VERSION}/clang_64/bin/${v} ./${QT_VERSION}/clang_64/_bin/
done
rm -rf ./${QT_VERSION}/clang_64/bin && mv ./${QT_VERSION}/clang_64/_bin ./${QT_VERSION}/clang_64/bin
find ./${QT_VERSION}/clang_64/bin -type f ! -name "qt.conf" -exec strip -x {} \;
mv $QT_ROOT/Qt $QT_ROOT/Qt_orig
go run ./patch.go
gzip -n ./${QT_VERSION}/clang_64/lib/QtWebEngineCore.framework/Versions/Current/QtWebEngineCore
du -sh ./5*
#$(go env GOPATH)/bin/qtsetup