feat: add freebsd support
This commit is contained in:
parent
340aceb870
commit
f38c751d43
|
@ -93,7 +93,7 @@ In the [actions](https://github.com/Dummerle/Rare/actions) tab you can find pack
|
|||
|
||||
Execute `pip install Rare` for all users, or `pip install Rare --user` for the current user only.
|
||||
|
||||
Linux and Mac: execute `rare` in your terminal.
|
||||
Linux, Mac and FreeBSD: execute `rare` in your terminal.
|
||||
|
||||
Windows: execute `pythonw -m rare` in cmd
|
||||
|
||||
|
@ -123,6 +123,7 @@ On Mac:
|
|||
If you want to be able to use the automatic login, run `pip install -r optional_requirements.txt`
|
||||
If you are on Arch you can
|
||||
run `sudo pacman --needed -S python-wheel python-setuptools python-pyqt5 python-qtawesome python-requests python-psutil`
|
||||
If you are on FreeBSD you have to install py39-qt5 from the packages: `sudo pkg install py39-qt5`
|
||||
4. Run `python3 -m rare`
|
||||
|
||||
## Contributing
|
||||
|
|
|
@ -80,6 +80,10 @@ __link_suffix = {
|
|||
"link": "lnk",
|
||||
"icon": "ico",
|
||||
},
|
||||
"FreeBSD": {
|
||||
"link": "desktop",
|
||||
"icon": "png",
|
||||
},
|
||||
"Linux": {
|
||||
"link": "desktop",
|
||||
"icon": "png",
|
||||
|
@ -128,7 +132,7 @@ def get_rare_executable() -> List[str]:
|
|||
# lk: detect if nuitka
|
||||
if "__compiled__" in globals():
|
||||
executable = [sys.executable]
|
||||
elif platform.system() == "Linux" or platform.system() == "Darwin":
|
||||
elif platform.system() == "Linux" or platform.system() == "Darwin" or platform.system() == "FreeBSD":
|
||||
if p := os.environ.get("APPIMAGE"):
|
||||
executable = [p]
|
||||
else:
|
||||
|
@ -199,7 +203,7 @@ def create_desktop_link(app_name: str, app_title: str = "", link_name: str = "",
|
|||
else:
|
||||
logger.info(f"Creating shortcut for {app_title} at {shortcut_path}")
|
||||
|
||||
if platform.system() == "Linux":
|
||||
if platform.system() == "Linux" or platform.system() == "FreeBSD":
|
||||
executable = get_rare_executable()
|
||||
executable = shlex.join(executable)
|
||||
if not for_rare:
|
||||
|
|
Loading…
Reference in a new issue