-
Notifications
You must be signed in to change notification settings - Fork 20
Add support for FreeBSD #36
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds initial FreeBSD support to the project by extending the platform selection and command generation logic to handle FreeBSD as a target operating system.
- Added FreeBSD as a selectable platform option in the UI
- Implemented FreeBSD-specific command generation logic for human deployment
- Added FreeBSD case handling for command escaping patterns
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| break; | ||
| case "freebsd": | ||
| baseHuman = 'curl -sk -o \''+humanName+'.tar.gz\' -X POST -H \'file:'+humanName+'.tar.gz\' '+http+'/file/download 2>&1 && mkdir \''+humanName+'\' && tar -C \''+humanName+'\' -zxvf \''+humanName+'.tar.gz\' ' + | ||
| ' && virtualenv -p python3.9 \''+humanName+'\' && \''+humanName+'/bin/pip\' install -r \''+humanName+'/requirements.txt\' && \''+humanName+'/bin/python\' \''+humanName+'/human.py\' --clustersize '+taskCount+' ' + |
Copilot
AI
Oct 6, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The FreeBSD case hardcodes 'python3.9' while other platforms use 'python3'. Consider using 'python3' for consistency unless FreeBSD specifically requires version 3.9.
| ' && virtualenv -p python3.9 \''+humanName+'\' && \''+humanName+'/bin/pip\' install -r \''+humanName+'/requirements.txt\' && \''+humanName+'/bin/python\' \''+humanName+'/human.py\' --clustersize '+taskCount+' ' + | |
| ' && virtualenv -p python3 \''+humanName+'\' && \''+humanName+'/bin/pip\' install -r \''+humanName+'/requirements.txt\' && \''+humanName+'/bin/python\' \''+humanName+'/human.py\' --clustersize '+taskCount+' ' + |
| case "freebsd": | ||
| command = command.replace(/\\/g, '\\\\'); | ||
| command = command.replace(/"/g, '\\\"'); | ||
| break; |
Copilot
AI
Oct 6, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove trailing whitespace after 'break;'
| break; | |
| break; |
Description
This is a initial support for FreeBSD
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: