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

Windows port #4

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Windows port #4

wants to merge 12 commits into from

Conversation

udif
Copy link

@udif udif commented Jul 12, 2021

Here is a Windows port of the script. The original version had a few issues:

  • STL binary files were not opened in raw mode, breaking them due CR/LF issues.
  • slicer type checks took into account filename extension (.exe) so I relaxed that.
  • I chose a sane location for all the user and global dirs/files on a Windows platform.
  • Fixed forward/backward slash directory compatibility by using basename() and catfile().
  • Updated README.md with a Windows section, including the specific filenames to be used for the various slicer options.

I was careful, and I hope I didn't break the Linux version, but I haven't ran all checks on the Linux side because I don't have all the slicers installed on my machine.

I also added an --install flag which helps Windows users by not needing to install make just for installation. It should also work on Linux using the existing paths (~/.config and /usr/share).

udif added 12 commits July 11, 2021 16:42
Totally unchecked, except for checking that $app and $username works for both Windows and Linux.
…pp' target does.

This helps Windows users who don't have to install make, but it should work for Linux as well.
The next commit will implement the 'install-defaults' functionality.
2. Sanitize slicer path so that giving a full path in --slicer doesn't affect slicer checks (both optional .exe suffix and case differences)
3. Report sanitized slicer type if verbose flag is on.
Removed option for user level install.
@ETE-Design
Copy link

Looking forward to this merge since I don't have/use Linux :-)

@udif
Copy link
Author

udif commented Sep 5, 2021

@ETE-Design have you tried this branch, is it working for you?

@ETE-Design
Copy link

@udif Not yet, still working on an Prototype of an Non-Planar hotend, so hope this will be merged before I'm ready...

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.

None yet

2 participants