From 67b2820f455a7f35323490609aa989443655a3fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Inge=20Hanssen?= Date: Mon, 23 Aug 2021 15:17:50 +0200 Subject: [PATCH] Fix missing hex file in nrfutil.exe pyinstaller bundle (#357) * Add thread ncp.hex to pyinstaller spec file Adding to spec file to ensure the hex file gets bundled and is available from the pyinstaller generated binary NCP-2211 --- nrfutil.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nrfutil.spec b/nrfutil.spec index be10a71..71a8191 100755 --- a/nrfutil.spec +++ b/nrfutil.spec @@ -25,7 +25,9 @@ datas.append((os.path.join(nrfutil_path, "libusb", "x86", "libusb-1.0.dll"), os. datas.append((os.path.join(nrfutil_path, "libusb", "x64", "libusb-1.0.dll"), os.path.join("libusb", "x64"))) datas.append((os.path.join(nrfutil_path, "nordicsemi", "zigbee", "hex", "ota.hex"), os.path.join("nordicsemi", "zigbee", "hex"))) - +datas.append((os.path.join(nrfutil_path, "nordicsemi", "thread", "hex", "ncp.hex"), + os.path.join("nordicsemi", "thread", "hex"))) + a = Analysis(['nordicsemi/__main__.py'], binaries=None, datas=datas,