-
Notifications
You must be signed in to change notification settings - Fork 84
/
Copy pathmake_bindist.sh
141 lines (136 loc) · 2.85 KB
/
make_bindist.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
#!/usr/bin/env bash
DISTDIR=dist/horizon
BINDIR=dist/horizon/bin
rm -rf dist
mkdir -p $BINDIR
cp build/horizon-{eda,imp}.exe $BINDIR
strip $BINDIR/horizon-*
LIBS=(
libstdc++-6.dll\
libgcc_s_seh-1.dll\
libglibmm-2.4-1.dll\
libglib-2.0-0.dll\
libgio-2.0-0.dll\
libgiomm-2.4-1.dll\
libwinpthread-1.dll\
libsqlite3-0.dll\
libgmodule-2.0-0.dll\
libgobject-2.0-0.dll\
zlib1.dll\
libintl-8.dll\
libsigc-2.0-0.dll\
libffi-8.dll\
libiconv-2.dll\
libpcre2-8-0.dll\
libatkmm-1.6-1.dll\
libatk-1.0-0.dll\
libgtk-3-0.dll\
libgtkmm-3.0-1.dll\
libpango-1.0-0.dll\
libpangomm-1.4-1.dll\
libcairomm-1.0-1.dll\
libcairo-2.dll\
libpangocairo-1.0-0.dll\
libgdk-3-0.dll\
libgdkmm-3.0-1.dll\
libgdk_pixbuf-2.0-0.dll\
libpangoft2-1.0-0.dll\
libpangowin32-1.0-0.dll\
libfontconfig-1.dll\
libfreetype-6.dll\
libcairo-gobject-2.dll\
libepoxy-0.dll\
libharfbuzz-0.dll\
libpixman-1-0.dll\
libpng16-16.dll\
libexpat-1.dll\
libbz2-1.dll\
libgraphite2.dll\
libjpeg-8.dll\
librsvg-2-2.dll\
libxml2-2.dll\
liblzma-5.dll\
libtiff-6.dll\
libzmq.dll\
libsodium-26.dll\
libcurl-4.dll\
libgit2-1.9.dll\
libidn2-0.dll\
libssh2-1.dll\
libunistring-5.dll\
libTKBO.dll\
libTKBRep.dll\
libTKCAF.dll\
libTKCDF.dll\
libTKernel.dll\
libTKG2d.dll\
libTKG3d.dll\
libTKGeomAlgo.dll\
libTKGeomBase.dll\
libTKHLR.dll\
libTKLCAF.dll\
libTKMath.dll\
libTKMesh.dll\
libTKPrim.dll\
libTKService.dll\
libTKShHealing.dll\
libTKSTEP.dll\
libTKSTEP209.dll\
libTKSTEPAttr.dll\
libTKSTEPBase.dll\
libTKTopAlgo.dll\
libTKV3d.dll\
libTKXCAF.dll\
libTKXDESTEP.dll\
libTKXSBase.dll\
libTKIGES.dll\
libTKXDE.dll\
libTKVCAF.dll\
libTKBool.dll\
libtbb12.dll\
libtbbmalloc.dll\
libbrotlicommon.dll\
libbrotlidec.dll\
libfribidi-0.dll\
libhttp_parser-2.dll\
libpsl-5.dll\
libthai-0.dll\
libdatrie-1.dll\
libcrypto-3-x64.dll\
libpodofo.dll\
libidn-12.dll\
libarchive-13.dll\
libzstd.dll\
liblz4.dll\
libb2-1.dll\
libdeflate.dll\
libwebp-7.dll\
libjbig-0.dll\
libLerc.dll\
libsharpyuv-0.dll\
libssl-3-x64.dll\
gspawn-win64-helper.exe\
gspawn-win64-helper-console.exe
)
for LIB in "${LIBS[@]}"
do
cp /mingw64/bin/$LIB $BINDIR
done
mkdir -p $DISTDIR/share/icons
cp -r /mingw64/share/icons/Adwaita $DISTDIR/share/icons
cp -r /mingw64/share/icons/hicolor $DISTDIR/share/icons
rm -rf $DISTDIR/share/icons/Adwaita/cursors
mkdir -p $DISTDIR/lib
cp -r /mingw64/lib/gdk-pixbuf-2.0 $DISTDIR/lib
gdk-pixbuf-query-loaders > $DISTDIR/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
rm $DISTDIR/lib/gdk-pixbuf-*/*/loaders/*.a
mkdir -p $DISTDIR/share/glib-2.0/schemas
cp /mingw64/share/glib-2.0/schemas/gschemas.compiled $DISTDIR/share/glib-2.0/schemas
mkdir -p $DISTDIR/lib
cp -r /mingw64/lib/engines-3 $DISTDIR/lib
cp -r /mingw64/lib/ossl-modules $DISTDIR/lib
git log -10 | unix2dos > dist/log.txt
if [ "$1" != "-n" ]; then
cd dist
zip -r horizon-$(date +%Y-%m-%d-%H%M).zip horizon log.txt
fi