Skip to content
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

macOS: create-osx-bundle.sh outdated #73

Open
ongtw opened this issue Apr 3, 2022 · 2 comments
Open

macOS: create-osx-bundle.sh outdated #73

ongtw opened this issue Apr 3, 2022 · 2 comments

Comments

@ongtw
Copy link

ongtw commented Apr 3, 2022

Just downloaded kivy-sdk-packager to test it out. Docs say it requires platypus, so brew install platypus.
When run, create-osx-bundle.sh complains about platypus not found. Dug into the script and saw it being hardcoded to /usr/local/bin/platypus, but homebrew installs to /opt/homebrew/bin/platypus.
Ok, no problem, change the script and rerun.
Now it complains about /usr/local/share/platypus/ScriptExec not found, 'coz Homebrew (latest version) doesn't install there anymore.
Perhaps it's time to bring this script up-to-date with homebrew's platypus.

@misl6
Copy link
Member

misl6 commented Apr 3, 2022

Did you install the cask or the command-line formula only?
https://formulae.brew.sh/formula/platypushttps://formulae.brew.sh/formula/platypus

@ongtw
Copy link
Author

ongtw commented Apr 4, 2022

I installed the formula version, here's my zsh history:

9577  brew install platypus
9578  platypus
9581  which platypus
9592  dir /opt/homebrew/Cellar/platypus/5.3
... [ stuff deleted ] ...
9599  cd /usr/local/share
9600  sudo ln -s /opt/homebrew/Cellar/platypus/5.3/share/platypus platypus

After playing around, I have to manually symlink it.

Even after that, I still encounter errors with the packaging in the instructions further down. Perhaps it is because my requirements are too heavy duty for it to handle: I have a python AI/ML pipeilne running on M1 macOS Big Sur using Apple's Tensorflow-macos/metal, PyTorch and Kivy which I am trying to package into a standalone macos.app. Not sure if this sdk-packager is capable of handling this.

Prior to this, I have tried py2app but it gave a segmentation fault 11 during the verification process of the SDL2 components.

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