commit
74802eb1d4
6 changed files with 12 additions and 3 deletions
|
@ -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.
|
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
|
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 want to be able to use the automatic login, run `pip install -r optional_requirements.txt`
|
||||||
If you are on Arch you can
|
If you are on Arch you can
|
||||||
run `sudo pacman --needed -S python-wheel python-setuptools python-pyqt5 python-qtawesome python-requests python-psutil`
|
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`
|
4. Run `python3 -m rare`
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
|
@ -29,6 +29,7 @@ pywin32 = { version = "^304", markers = "platform_system == 'Windows'" }
|
||||||
pywebview = [
|
pywebview = [
|
||||||
{ version = "^3.6.3", extras = ["cef"], platform = "windows", optional = true },
|
{ version = "^3.6.3", extras = ["cef"], platform = "windows", optional = true },
|
||||||
{ version = "^3.6.3", extras = ["gtk"], platform = "linux", optional = true },
|
{ version = "^3.6.3", extras = ["gtk"], platform = "linux", optional = true },
|
||||||
|
{ version = "^3.6.3", extras = ["gtk"], platform = "freebsd", optional = true },
|
||||||
]
|
]
|
||||||
legendary-gl = "^0.20.32"
|
legendary-gl = "^0.20.32"
|
||||||
typing-extensions = "^4.3.0"
|
typing-extensions = "^4.3.0"
|
||||||
|
|
|
@ -80,6 +80,10 @@ __link_suffix = {
|
||||||
"link": "lnk",
|
"link": "lnk",
|
||||||
"icon": "ico",
|
"icon": "ico",
|
||||||
},
|
},
|
||||||
|
"FreeBSD": {
|
||||||
|
"link": "desktop",
|
||||||
|
"icon": "png",
|
||||||
|
},
|
||||||
"Linux": {
|
"Linux": {
|
||||||
"link": "desktop",
|
"link": "desktop",
|
||||||
"icon": "png",
|
"icon": "png",
|
||||||
|
@ -128,7 +132,7 @@ def get_rare_executable() -> List[str]:
|
||||||
# lk: detect if nuitka
|
# lk: detect if nuitka
|
||||||
if "__compiled__" in globals():
|
if "__compiled__" in globals():
|
||||||
executable = [sys.executable]
|
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"):
|
if p := os.environ.get("APPIMAGE"):
|
||||||
executable = [p]
|
executable = [p]
|
||||||
else:
|
else:
|
||||||
|
@ -199,7 +203,7 @@ def create_desktop_link(app_name: str, app_title: str = "", link_name: str = "",
|
||||||
else:
|
else:
|
||||||
logger.info(f"Creating shortcut for {app_title} at {shortcut_path}")
|
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 = get_rare_executable()
|
||||||
executable = shlex.join(executable)
|
executable = shlex.join(executable)
|
||||||
if not for_rare:
|
if not for_rare:
|
||||||
|
|
|
@ -6,6 +6,7 @@ setuptools
|
||||||
legendary-gl
|
legendary-gl
|
||||||
pywin32; platform_system == "Windows"
|
pywin32; platform_system == "Windows"
|
||||||
pywebview[qt]; platform_system == "Linux"
|
pywebview[qt]; platform_system == "Linux"
|
||||||
|
pywebview[qt]; platform_system == "FreeBSD"
|
||||||
pythonnet>=3.0.0rc4; platform_system == "Windows"
|
pythonnet>=3.0.0rc4; platform_system == "Windows"
|
||||||
cefpython3; platform_system == "Windows"
|
cefpython3; platform_system == "Windows"
|
||||||
pywebview[cef]; platform_system == "Windows"
|
pywebview[cef]; platform_system == "Windows"
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
pywebview[qt]; platform_system == "Linux"
|
pywebview[qt]; platform_system == "Linux"
|
||||||
|
pywebview[qt]; platform_system == "FreeBSD"
|
||||||
pythonnet>=3.0.0rc4; platform_system == "Windows"
|
pythonnet>=3.0.0rc4; platform_system == "Windows"
|
||||||
cefpython3; platform_system == "Windows"
|
cefpython3; platform_system == "Windows"
|
||||||
pywebview[cef]; platform_system == "Windows"
|
pywebview[cef]; platform_system == "Windows"
|
||||||
|
|
1
setup.py
1
setup.py
|
@ -19,6 +19,7 @@ requirements = [
|
||||||
optional_reqs = dict(
|
optional_reqs = dict(
|
||||||
webview=[
|
webview=[
|
||||||
'pywebview[gtk]; platform_system == "Linux"',
|
'pywebview[gtk]; platform_system == "Linux"',
|
||||||
|
'pywebview[gtk]; platform_system == "FreeBSD"',
|
||||||
'pywebview[cef]; platform_system == "Windows"',
|
'pywebview[cef]; platform_system == "Windows"',
|
||||||
],
|
],
|
||||||
pypresence=["pypresence"]
|
pypresence=["pypresence"]
|
||||||
|
|
Loading…
Reference in a new issue