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
This commit is contained in:
@@ -5,11 +5,12 @@
|
|||||||
|
|
||||||
import PyInstaller.__main__
|
import PyInstaller.__main__
|
||||||
import util
|
import util
|
||||||
|
import os
|
||||||
|
|
||||||
PyInstaller.__main__.run([
|
PyInstaller.__main__.run([
|
||||||
"--onefile",
|
"--onefile",
|
||||||
"--console",
|
"--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"),
|
"--additional-hooks-dir", util.path("scripts"),
|
||||||
"--distpath", util.path("dist"),
|
"--distpath", util.path("dist"),
|
||||||
"--workpath", util.path("build"),
|
"--workpath", util.path("build"),
|
||||||
|
|||||||
@@ -72,13 +72,6 @@ build-windows() {
|
|||||||
sleep 5
|
sleep 5
|
||||||
done
|
done
|
||||||
sleep 2
|
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() {
|
sign() {
|
||||||
|
|||||||
Reference in New Issue
Block a user