From 7348553008959192dcd0dcfdecb45dbed90a1646 Mon Sep 17 00:00:00 2001 From: Tao Peng Date: Tue, 11 Feb 2025 19:16:11 +0700 Subject: [PATCH] fix: pyinstaller runtime SSL hooks (#707) * fix: remove runtime_hooks from the spec * list archive with archive_viewer --- mapillary_tools.spec | 2 -- script/build_linux | 1 + script/build_osx | 1 + script/build_win.ps1 | 1 + 4 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mapillary_tools.spec b/mapillary_tools.spec index 92a594f28..b44a49589 100644 --- a/mapillary_tools.spec +++ b/mapillary_tools.spec @@ -10,8 +10,6 @@ a = Analysis( binaries=[], datas=[], hiddenimports=[], - hookspath=["./pyinstaller/hooks"], - runtime_hooks=["./pyinstaller/runtime-hooks/ssl.py"], excludes=[], win_no_prefer_redirects=False, win_private_assemblies=False, diff --git a/script/build_linux b/script/build_linux index fde43bc86..50c117994 100755 --- a/script/build_linux +++ b/script/build_linux @@ -15,6 +15,7 @@ $SOURCE --version VERSION=$($SOURCE --version | awk '{print $3}') ARCH=$(uname -m) TARGET=dist/releases/mapillary_tools-${VERSION}-${OS}-${ARCH} +pyi-archive_viewer --list "$SOURCE" # package mkdir -p dist/releases diff --git a/script/build_osx b/script/build_osx index d9a22fbc3..81c670a79 100755 --- a/script/build_osx +++ b/script/build_osx @@ -15,6 +15,7 @@ $SOURCE --version VERSION=$($SOURCE --version | awk '{print $3}') ARCH=$(uname -m) TARGET=dist/releases/mapillary_tools-${VERSION}-${OS}-${ARCH}.zip +pyi-archive_viewer --list "$SOURCE" # package mkdir -p dist/releases diff --git a/script/build_win.ps1 b/script/build_win.ps1 index 0096e1704..1194d17e5 100644 --- a/script/build_win.ps1 +++ b/script/build_win.ps1 @@ -20,6 +20,7 @@ dist\win\mapillary_tools.exe --version $VERSION_OUTPUT=dist\win\mapillary_tools.exe --version $VERSION=$VERSION_OUTPUT.split(' ')[2] $TARGET="dist\releases\mapillary_tools-$VERSION-$OS-$ARCH.exe" +pyi-archive_viewer --list "$SOURCE" # package mkdir -Force dist\releases