From 110f3f1db608a2a8391dc79c3ece1509078168a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Wed, 13 Mar 2019 22:49:06 +0100 Subject: [PATCH] Fixed binary freezing --- Hooks/hook-checksumdir.py | 3 +++ appveyor.yml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 Hooks/hook-checksumdir.py diff --git a/Hooks/hook-checksumdir.py b/Hooks/hook-checksumdir.py new file mode 100644 index 0000000..c6a247d --- /dev/null +++ b/Hooks/hook-checksumdir.py @@ -0,0 +1,3 @@ +from PyInstaller.utils.hooks import copy_metadata + +datas = copy_metadata("checksumdir") diff --git a/appveyor.yml b/appveyor.yml index f8519bf..030ede8 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -8,7 +8,7 @@ install: - "%PYTHON%\\python.exe -m pip install certifi https://github.com/pyinstaller/pyinstaller/archive/develop.zip" build_script: - - "pyinstaller -y -F -i CurseBreaker.ico -n CurseBreaker -c --noupx CurseBreaker.py" + - "pyinstaller --additional-hooks-dir=Hooks/ -y -F -i CurseBreaker.ico -n CurseBreaker -c --noupx CurseBreaker.py" after_build: - ps: Get-ChildItem .\dist\CurseBreaker* | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }