Open dennisvang opened 11 months ago
The create_pyinstaller_bundle_mac.sh script (or rather the spec file) didnt work:
Moosems-MacBook-Pro:tufup-example Moosems$ chmod +x '/Users/Moosems/Desktop/tufup-example/create_pyinstaller_bundle_mac.sh'
Moosems-MacBook-Pro:tufup-example Moosems$ '/Users/Moosems/Desktop/tufup-example/create_pyinstaller_bundle_mac.sh'
639 INFO: PyInstaller: 5.13.2
640 INFO: Python: 3.11.3
659 INFO: Platform: macOS-10.14.6-x86_64-i386-64bit
664 INFO: Removing temporary files and cleaning cache in /Users/Moosems/Library/Application Support/pyinstaller
774 INFO: Extending PYTHONPATH with paths
['/Users/Moosems/Desktop/tufup-example/src']
pygame 2.5.1 (SDL 2.28.2, Python 3.11.3)
Hello from the pygame community. https://www.pygame.org/contribute.html
1693 INFO: Appending 'datas' from .spec
Unable to find "/Users/Moosems/Desktop/tufup-example/temp_my_app/repository/metadata/root.json" when adding binary and data files.
@Moosems Sorry, I forgot to mention that you need to run the repo_init.py script first. It is mentioned in the README though.
Then I get:
Traceback (most recent call last):
File "/Users/Moosems/Desktop/tufup-example/repo_init.py", line 5, in <module>
from myapp.settings import APP_NAME
ModuleNotFoundError: No module named 'myapp'
@Moosems You'll need to add the tufup-example/src
dir to your PYTHONPATH.
For example, in bash, something like:
export PYTHONPATH="$PYTHONPATH:/Users/Moosems/Desktop/tufup-example/src"
(related to #4)
As I don't have access to a mac, it's a bit difficult to test #26 locally. If someone could try it on a mac, that would be great.
Powershell also runs on macOs (and Linux), so we should adapt the test_update_cycle.ps1 script and the github workflow to work on macOS as well.