forked from kaoh/globalplatform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwindows-bundle.sh
29 lines (23 loc) · 851 Bytes
/
windows-bundle.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
#!/bin/sh
dirName="gpshell-bundle"
rm -rf $dirName
unzip gpshell-binary*.zip -d $dirName
unzip zlib-1.2.8/zlib-1.2.8.zip -d $dirName
# get gpshell directory
dirNamegpshell=""
for gpshell in $dirName/gpshell-binary*
do
dirNamegpshell=$gpshell;
break;
done
cp $dirNamegpshell/lib/globalplatform.dll $dirNamegpshell/bin
cp $dirNamegpshell/lib/gppcscconnectionplugin.dll $dirNamegpshell/bin
cp /c/Program\ Files\ \(x86\)/OpenSSL-Win32/libcrypto*.dll $dirNamegpshell/bin
cp /c/Program\ Files\ \(x86\)/OpenSSL-Win32/libssl*.dll $dirNamegpshell/bin
cp /c/Program\ Files\ \(x86\)/OpenSSL-Win32/libeay*.dll $dirNamegpshell/bin
cp $dirName/zlib-1.2.8/zlibwapi.dll $dirNamegpshell/bin
rm -f $dirNamegpshell/doc/CMakeLists.txt
rm -f $dirNamegpshell/doc/README.md
rm -rf $dirNamegpshell/include
rm -rf $dirNamegpshell/lib
rm -rf $dirName/zlib-1.2.8