Skip to content

Mac installer build fix#258

Merged
danleyb2 merged 7 commits intomasterfrom
mac-installer-fix
Sep 9, 2025
Merged

Mac installer build fix#258
danleyb2 merged 7 commits intomasterfrom
mac-installer-fix

Conversation

@danleyb2
Copy link
Collaborator

@danleyb2 danleyb2 commented Sep 8, 2025

use python 3.8.10 pyinstaller==6.15.0 for mac

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary of Changes

Hello @danleyb2, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request addresses an issue with the macOS installer by updating the Python environment path used during the build process to align with the current GitHub Actions runner setup. Additionally, a small debug print statement has been included to help verify the detected operating system platform during the build.

Highlights

  • macOS Installer Path Update: The site_packages path for macOS builds within the platerec_installer.spec file has been updated from Python 3.7.12 to Python 3.8.10. This ensures the installer correctly references the newer Python version in the GitHub Actions runner environment.
  • Platform Debugging Aid: A new print statement has been added to platerec_installer.spec to output the sys.platform value during the installer build process, which can assist in debugging platform-specific issues.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the hardcoded path for site-packages for macOS builds in the PyInstaller spec file, likely to fix a build failure on GitHub Actions. It also adds a debug print statement. My review focuses on improving the maintainability of this configuration. I've suggested removing the debug print and replacing the hardcoded path with a dynamic method to prevent future breakages when the build environment changes.

@danleyb2 danleyb2 changed the title Mac installer fix Mac installer build fix Sep 8, 2025
@danleyb2
Copy link
Collaborator Author

danleyb2 commented Sep 8, 2025

@marcbelmont @AashishDhakal Let's test the MAC executable produced from last build
https://github.com/parkpow/deep-license-plate-recognition/actions/runs/17542510339?pr=258

Note: windows and linux builds still use older pyinstaller version that runs on python3.7. Upgrading them requires an upgrade to the docker images cdrx/pyinstaller-linux and danleyb2/pyinstaller-windows

@marcbelmont
Copy link
Collaborator

@AashishDhakal
Please review and confirm that the Mac version works.

@danleyb2 danleyb2 merged commit 0f8e42e into master Sep 9, 2025
4 checks passed
@danleyb2 danleyb2 deleted the mac-installer-fix branch September 9, 2025 04:32
@danleyb2
Copy link
Collaborator Author

danleyb2 commented Sep 9, 2025

@marcbelmont we should update https://api-storage.platerecognizer.com/installer/PlateRecognizer-Installer-MacOS
We can leave Windows out because it would require signing

@marcbelmont
Copy link
Collaborator

@danleyb2 The macOS installer is now online

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants