Skip to content

How to package the source code of esp-matter-tools into .exe #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks done
ethan-jy opened this issue Feb 12, 2025 · 3 comments
Open
3 tasks done

How to package the source code of esp-matter-tools into .exe #4

ethan-jy opened this issue Feb 12, 2025 · 3 comments

Comments

@ethan-jy
Copy link

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate.
  • Provided a clear description of your suggestion.
  • Included any relevant context or examples.

Issue or Suggestion Description

May I ask how to package it into exe? We need to use it separately from Python. Thank you.

@shubhamdp
Copy link
Contributor

We have not yet considered shipping it as .exe. We will check and get back with shipping it for Windows platform.

@shubhamdp
Copy link
Contributor

@ethan-jy I tried using pyinstaller on mac, can you please check if this works windows?

Please try it in virtual environment

python3 -m pip install pyinstaller
pyinstaller --onefile --name esp-matter-mfg-tool -c -p deps -p sources sources/mfg_tool.py
./dist/esp-matter-mfg-tool

There should be ./dist/esp-matter-mfg-tool.exe present.

Please let me know, if possible I'll check if these can be shipped through Github releases.

PS: When I ran the tool, it was very slow, It took almost 10s on first attempt and 5s on consequent attempts.

@ethan-jy
Copy link
Author

@ethan-jy I tried using pyinstaller on mac, can you please check if this works windows?

Please try it in virtual environment

python3 -m pip install pyinstaller
pyinstaller --onefile --name esp-matter-mfg-tool -c -p deps -p sources sources/mfg_tool.py
./dist/esp-matter-mfg-tool

There should be ./dist/esp-matter-mfg-tool.exe present.

Please let me know, if possible I'll check if these can be shipped through Github releases.

PS: When I ran the tool, it was very slow, It took almost 10s on first attempt and 5s on consequent attempts.

thanks.
Apologies for the delayed response. I tested the EXE file packaged with that command, and it runs successfully and can connect/pair with the Raspberry Pi.

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

No branches or pull requests

2 participants