From 1a6d4131fd5ec551e8a990bb6e30866fc47a66dd Mon Sep 17 00:00:00 2001 From: Jeremy Wright Date: Mon, 30 Oct 2023 08:48:45 -0400 Subject: [PATCH] Still working with PyInstaller for Windows --- .github/workflows/pyinstaller.yml | 1 + pyinstaller.spec | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pyinstaller.yml b/.github/workflows/pyinstaller.yml index 10f327b..2833012 100644 --- a/.github/workflows/pyinstaller.yml +++ b/.github/workflows/pyinstaller.yml @@ -65,6 +65,7 @@ jobs: pip install path - name: Run build run: | + Get-ChildItem -Path C:\ -Filter libcasadi.dll -Recurse pyinstaller pyinstaller.spec ${{ github.event.inputs.type }} - uses: actions/upload-artifact@v2 with: diff --git a/pyinstaller.spec b/pyinstaller.spec index 839a89e..cb3b0e9 100644 --- a/pyinstaller.spec +++ b/pyinstaller.spec @@ -48,10 +48,10 @@ hidden_imports_numpy = collect_submodules('numpy') hidden_imports = hidden_imports + hidden_imports_numpy if sys.platform == 'win32': - dlls = [('\\casadi\\libcasadi.dll', '.'), - ('casadi\\libcasadi_nlpsol_ipopt.dll', '.'), - ('\casadi\\libgfortran-3.dll', '.'), - ('\\casadi\\libquadmath-0.dll', '.')] + dlls = [('libcasadi.dll', '.'), + ('libcasadi_nlpsol_ipopt.dll', '.'), + ('libgfortran-3.dll', '.'), + ('libquadmath-0.dll', '.')] else: dlls = []