From 64430b850e5b57bfd2b5171223e4e93ec16ced58 Mon Sep 17 00:00:00 2001 From: phernandez Date: Fri, 14 Feb 2025 16:54:37 -0600 Subject: [PATCH] installer debug --- .github/workflows/release.yml | 47 ++++++++++++++++------------------- installer/setup.py | 10 ++++++-- 2 files changed, 29 insertions(+), 28 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 992d4099..9924464a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -73,40 +73,35 @@ jobs: run: | uv venv - - name: Install dependencies + - name: Check library paths run: | - uv pip install -e .[dev] - - - name: Build macOS installer - run: | - # Debug info - echo "Environment Info:" - uv pip list - python --version - which uv - which python - ls -la $(dirname $(which python)) - echo "PYTHONPATH=$PYTHONPATH" + otool -L installer/build/Basic\ Memory\ Installer.app/Contents/MacOS/Basic\ Memory\ Installer + otool -l installer/build/Basic\ Memory\ Installer.app/Contents/MacOS/Basic\ Memory\ Installer - # Build - make installer-mac - #xattr -dr com.apple.quarantine "installer/build/Basic Memory Installer.app" - - name: Inspect build run: | echo "Build structure:" ls -la installer/build/Basic\ Memory\ Installer.app/Contents/MacOS/ - - # - name: Zip macOS installer - # run: | - # cd installer/build - # zip -ry "Basic-Memory-Installer-${{ needs.release.outputs.tag }}.zip" "Basic Memory Installer.app" +# - name: Zip macOS installer +# run: | +# cd installer/build +# zip -ry "Basic-Memory-Installer-${{ needs.release.outputs.tag }}.zip" "Basic Memory Installer.app" +# +# - name: Upload macOS installer +# uses: softprops/action-gh-release@v1 +# with: +# files: installer/build/Basic-Memory-Installer-${{ needs.release.outputs.tag }}.zip +# tag_name: ${{ needs.release.outputs.tag }} +# token: ${{ secrets.GITHUB_TOKEN }} + + - name: Zip macOS installer + run: | + cd installer/build + zip -ry "Basic-Memory-Installer.zip" "Basic Memory Installer.app" - name: Upload macOS installer uses: softprops/action-gh-release@v1 with: - #files: installer/build/Basic-Memory-Installer-${{ needs.release.outputs.tag }}.zip - files: installer/build/* - tag_name: ${{ needs.release.outputs.tag }} - token: ${{ secrets.GITHUB_TOKEN }} + files: installer/build/Basic-Memory-Installer.zip + token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/installer/setup.py b/installer/setup.py index 1d299ce8..958072c8 100644 --- a/installer/setup.py +++ b/installer/setup.py @@ -4,7 +4,11 @@ import sys # Build options for all platforms build_exe_options = { "packages": ["json", "pathlib"], - "excludes": [], + "excludes": [ + "unittest", + "pydoc", + "test" + ], } # Platform-specific options @@ -35,7 +39,9 @@ setup( "build_exe": build_exe_options, "bdist_mac": { "bundle_name": "Basic Memory Installer", - "iconfile": "Basic.icns" + "iconfile": "Basic.icns", + "codesign_identity": "-", # Force ad-hoc signing + "codesign_allocate": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate" } }, executables=executables,