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 instructions #10

Open
balthisar opened this issue Jul 13, 2022 · 4 comments
Open

macOS instructions #10

balthisar opened this issue Jul 13, 2022 · 4 comments

Comments

@balthisar
Copy link

balthisar commented Jul 13, 2022

On macOS, you'll probably have to

chmod +x preprocess_cancellation

And (with SuperSlicer, anyway) specify a path to the file. If you put the command in same directory as SuperSlicer, then ./preprocess_cancellation; works fine.

And because the executable isn't notarized, you'll have to go into your Security & Privacy panel of System Preferences to allow it to "run anyway."

I recommend just running it from the command line initially until you're able to bypass all of the protective nonsense that macOS imposes.

(As a side note, how do I just run the .py from the shell? I'm not hip to the Python ecosystem, and just running the script fails.)

@askpete
Copy link

askpete commented Nov 7, 2022

+1 to OSX instructions, it took me a minute to figure it out and I should really know what to do ;). Generic instruction could be as simple as

Download release to ~/Downloads

cp ~/Downloads/preprocess_cancellation-macos /Applications/SuperSlicer.app/Contents/MacOS/preprocess_cancellation
chmod +x /Applications/SuperSlicer.app/Contents/MacOS/preprocess_cancellation

FWIW, I didn't need to do the usual security theatre thing.

@nkean
Copy link

nkean commented Dec 10, 2022

Here's a command line option to fetch the newest release and install in SuperSlicer for macOS. I've added it as a function in zsh so I can quickly reinstall after updating SuperSlicer. It's a bit ugly as a single line command, but it gets the job done never the less.

LOCATION=$(curl -s https://api.github.com/repos/kageurufu/preprocess_cancellation/releases/latest | grep "tag_name" | awk '{print "https://github.com/kageurufu/preprocess_cancellation/releases/download/" substr($2, 2, length($2)-3) "/preprocess_cancellation-macos"}'); curl -Ls -o preprocess_cancellation --output-dir /Applications/SuperSlicer.app/Contents/MacOS/ $LOCATION && chmod +x /Applications/SuperSlicer.app/Contents/MacOS/preprocess_cancellation

@nkean
Copy link

nkean commented Dec 10, 2022

I should also note that with newer releases of SuperSlicer I've had to amend the full path to the post processing command in "Print Settings > Output Options > Post-Processing Scripts"

i.e. /Applications/SuperSlicer.app/Contents/MacOS/preprocess_cancellation; instead of just preprocess_cancellation;

@sammcj
Copy link

sammcj commented Apr 9, 2023

Somewhat related there also needs to be an ARM build for modern Apple machines, I've done a local build for it and it processes gcodes a lot faster - see #19 (comment)

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

4 participants