mirror of
https://github.com/9001/copyparty.git
synced 2026-04-19 10:32:38 -06:00
tests: support freebsd
This commit is contained in:
parent
f6dc1e2996
commit
745d82faf8
|
|
@ -184,7 +184,7 @@ enable thumbnails (images/audio/video), media indexing, and audio transcoding by
|
||||||
* **Alpine:** `apk add py3-pillow ffmpeg`
|
* **Alpine:** `apk add py3-pillow ffmpeg`
|
||||||
* **Debian:** `apt install --no-install-recommends python3-pil ffmpeg`
|
* **Debian:** `apt install --no-install-recommends python3-pil ffmpeg`
|
||||||
* **Fedora:** rpmfusion + `dnf install python3-pillow ffmpeg --allowerasing`
|
* **Fedora:** rpmfusion + `dnf install python3-pillow ffmpeg --allowerasing`
|
||||||
* **FreeBSD:** `pkg install py39-sqlite3 py39-pillow ffmpeg`
|
* **FreeBSD:** `pkg install py311-sqlite3 py311-pillow ffmpeg`
|
||||||
* **MacOS:** `port install py-Pillow ffmpeg`
|
* **MacOS:** `port install py-Pillow ffmpeg`
|
||||||
* **MacOS** (alternative): `brew install pillow ffmpeg`
|
* **MacOS** (alternative): `brew install pillow ffmpeg`
|
||||||
* **Windows:** `python -m pip install --user -U Pillow`
|
* **Windows:** `python -m pip install --user -U Pillow`
|
||||||
|
|
|
||||||
|
|
@ -78,8 +78,10 @@ def get_ramdisk():
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
for vol in ["/dev/shm", "/Volumes/cptd"]: # nosec (singleton test)
|
for vol in ["/dev/shm", "/Volumes/cptd"]: # nosec (singleton test)
|
||||||
if os.path.exists(vol):
|
try:
|
||||||
return subdir(vol)
|
return subdir(vol)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
if os.path.exists("/Volumes"):
|
if os.path.exists("/Volumes"):
|
||||||
sck = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
sck = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue