fix some build issues

- use 'os.name' to decide between Windows/Linux build
- don't check Windows executable version number,
  since Wine fails to run the executable and causes release.sh to stop
pull/644/head
Mike Fährmann 5 years ago
parent 32df8d06fe
commit 402025c3c3
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -5,11 +5,12 @@
import PyInstaller.__main__
import util
import os
PyInstaller.__main__.run([
"--onefile",
"--console",
"--name", "gallery-dl." + ("exe" if PyInstaller.is_win else "bin"),
"--name", "gallery-dl." + ("exe" if os.name == "nt" else "bin"),
"--additional-hooks-dir", util.path("scripts"),
"--distpath", util.path("dist"),
"--workpath", util.path("build"),

@ -72,13 +72,6 @@ build-windows() {
sleep 5
done
sleep 2
# check exe version
OUTPUT="$(wine gallery-dl.exe --version)"
if [[ ! "${OUTPUT%?}" == "${NEWVERSION}" ]]; then
echo "exe version mismatch: ${OUTPUT} != ${NEWVERSION}"
exit 3
fi
}
sign() {

Loading…
Cancel
Save