updated build scripts for macOS and Linus and fix for mainframe.cpp #4363
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This updates the build scripts with some more options:
Usage: ./BuildLinux.sh [-h][-u][-w][-g][-b][-r][-d][-s][-l][-t][-i]
-h: this message
-u: only update dependency packets (optional and need sudo)
-w: wipe build directories before building
-g: force gtk2 build
-b: build in debug mode
-r: clean dependencies
-d: build deps
-s: build SuperSlicer
-l: update language .pot file
-t: build tests (in combination with -s)
-i: generate .tgz and appimage (optional)
For a first use, you want to 'sudo ./BuildLinux.sh -u'
and then './BuildLinux.sh -dsi'
It also provides a fix for mainframe.cpp:
Exception Handling: Changed catch (std::exception e) to catch (const std::exception& e) for proper exception handling. Bracing and Indentation: Ensured all case blocks and conditional sections have consistent indentation and bracing. Closing Preprocessor Directives: Ensured that the #endif directive correctly closes the conditional compilation block