From 6c81429111727cb6bccfa29354396c7782b65e2b Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Thu, 30 Jan 2020 23:57:17 -0500 Subject: [PATCH] fix fonts on windows --- bin/build-distribution-archives | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/bin/build-distribution-archives b/bin/build-distribution-archives index 0fcadb594..825db5108 100755 --- a/bin/build-distribution-archives +++ b/bin/build-distribution-archives @@ -17,10 +17,16 @@ mkdir artifacts for d in inx/*; do lang=${d%.*} - lang=${lang#*/} + lang=${lang#*/} cp $d/*.inx dist cd dist - python -m zipfile -c ../artifacts/inkstitch-${VERSION}-${OS}-${lang}.zip * - cd .. + if [ "$BUILD" = "windows" ]; then + # The python zipfile command line utility can't handle directories + # containing files with UTF-8 names on Windows, so we use 7-zip instead. + 7z a ../artifacts/inkstitch-${VERSION}-${OS}-${lang}.zip * + else + python -m zipfile -c ../artifacts/inkstitch-${VERSION}-${OS}-${lang}.zip * + fi + cd .. done