mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Upload windows build script
This commit is contained in:
parent
bb836b955d
commit
96f7a9e2c5
18
windows/build.sh
Normal file
18
windows/build.sh
Normal file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
# Builds qTox for Windows and prepares a redistribuable .zip archive
|
||||
export PATH=/root/mxe/usr/bin:$PATH
|
||||
tar xvf libs.tar.gz
|
||||
tar xvf libtoxcore-win32.tar.gz -C libs
|
||||
/root/mxe/usr/i686-pc-mingw32.shared/qt5/bin/qmake
|
||||
make clean
|
||||
make -j4 || { echo 'make failed, aborting' ; exit 1; }
|
||||
|
||||
rm -rf qTox-win32
|
||||
rm -rf qTox-win32.zip
|
||||
mkdir qTox-win32
|
||||
tar xvf qtox-dlls.tar.gz -C qTox-win32
|
||||
cp libs/bin/* qTox-win32
|
||||
cp release/qtox.exe qTox-win32
|
||||
rm -rf qTox-win32.zip
|
||||
zip -r qTox-win32.zip qTox-win32
|
||||
chmod 777 qTox-win32.zip
|
Loading…
Reference in New Issue
Block a user