Mercurial > minori
changeset 296:b2a4358da16c
scripts/win32: CRLF -> LF
this breaks win32 build scripts
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Mon, 13 May 2024 02:48:39 -0400 |
parents | b82841e76e79 |
children | 1d59a3f72c52 |
files | scripts/win32/deploy_build.sh |
diffstat | 1 files changed, 41 insertions(+), 41 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/win32/deploy_build.sh Sun May 12 20:24:09 2024 -0400 +++ b/scripts/win32/deploy_build.sh Mon May 13 02:48:39 2024 -0400 @@ -1,41 +1,41 @@ -#!/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" +#!/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"