Created
November 20, 2020 13:23
-
-
Save LAGonauta/b44d68781d646ecb74d137c1abe57160 to your computer and use it in GitHub Desktop.
Script for building Dino 64-bit on MSYS2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pacman -S --needed \ | |
mingw64/mingw-w64-x86_64-gcc \ | |
mingw64/mingw-w64-x86_64-cmake \ | |
mingw64/mingw-w64-x86_64-ninja \ | |
mingw64/mingw-w64-x86_64-libsoup \ | |
mingw64/mingw-w64-x86_64-gtk3 \ | |
mingw64/mingw-w64-x86_64-sqlite3 \ | |
mingw64/mingw-w64-x86_64-gobject-introspection \ | |
mingw64/mingw-w64-x86_64-glib2 \ | |
mingw64/mingw-w64-x86_64-glib-networking \ | |
mingw64/mingw-w64-x86_64-libgcrypt \ | |
mingw64/mingw-w64-x86_64-libgee \ | |
mingw64/mingw-w64-x86_64-gpgme \ | |
mingw64/mingw-w64-x86_64-pkg-config \ | |
mingw64/mingw-w64-x86_64-vala \ | |
mingw64/mingw-w64-x86_64-gsettings-desktop-schemas \ | |
mingw64/mingw-w64-x86_64-qrencode \ | |
mingw64/mingw-w64-x86_64-libsignal-protocol-c \ | |
mingw64/mingw-w64-x86_64-ntldd-git | |
cd dino && \ | |
./configure --program-prefix=${PWD}/dist --no-debug --release --disable-fast-vapi && \ | |
make -j5 && \ | |
make install && \ | |
cd dist && \ | |
cp /mingw64/bin/gdbus.exe ./bin && \ | |
cp /mingw64/bin/gspawn-win64-helper.exe ./bin && \ | |
mkdir -p ./lib/gdk-pixbuf-2.0/ && cp -r /mingw64/lib/gdk-pixbuf-2.0 ./lib/ && \ | |
mkdir -p ./lib/gio/ && cp -r /mingw64/lib/gio ./lib/ && \ | |
mkdir -p ./share/icons && cp -r /mingw64/share/icons ./share/ && \ | |
mkdir -p ./share/locale && cp -r /mingw64/share/locale ./share/ && \ | |
mkdir -p ./share/glib-2.0/schemas && cp -r /mingw64/share/glib-2.0/schemas ./share/glib-2.0/ && \ | |
rm -r ./include && | |
find . -iname "*.dll.a" -exec rm {} + && \ | |
find . -iname "*.exe" -exec ntldd {} + | grep mingw64 | awk '{print "cp /mingw64/bin/"$1" ."}' | sh && \ | |
find . -iname "*.dll" -exec ntldd {} + | grep mingw64 | awk '{print "cp /mingw64/bin/"$1" ."}' | sh && \ | |
find . -iname "*.exe" -exec ldd {} + | grep mingw64 | awk '{print "cp /mingw64/bin/"$1" ."}' | sh && \ | |
find . -iname "*.dll" -exec ldd {} + | grep mingw64 | awk '{print "cp /mingw64/bin/"$1" ."}' | sh && \ | |
find . -iname "*.exe" -exec strip -s {} + && \ | |
find . -iname "*.dll" -exec strip -s {} + && \ | |
mv *.dll ./bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment