Mercurial > minori
view scripts/win32/deploy_build.sh @ 268:382b50754fe4
dep/animone: make osx code a bit less hacky
it would be nice if macos actually provided a real API for getting
window titles (outside of the accessibility api). the accessibility
API is a real mess to work with; the user has to give permission to
access it under newer versions.
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Fri, 12 Apr 2024 05:21:45 -0400 |
parents | 699a20c57dc8 |
children | b2a4358da16c |
line wrap: on
line source
#!/bin/sh # # deploys needed libraries for minori on win32 # # this also runs windeployqt to deploy qt crap # as well DIR="${DIR:-minori}" GetNeededLibraries() { # do not run this on untrusted executables. # see: ldd(1) system="$(echo "$MSYSTEM" | tr "[:upper:]" "[:lower:]")" ldd "$1" | while IFS="" read -r dependency; do lib="$(printf -- "$dependency" | cut -d' ' -f3)" case $lib in "/$system/"*) printf -- "$lib\n" ;; *) ;; esac done } if [ -d "$DIR" ]; then rm -r "$DIR" fi mkdir "$DIR" for lib in $(GetNeededLibraries ".libs/minori.exe"); do cp "$lib" "$DIR/" done cp ".libs/minori.exe" "$DIR/" windeployqt "$DIR/minori.exe" zip -r "$DIR.zip" "$DIR"