build: add freebsd support (#4049)
This commit is contained in:
parent
2dbe837ebc
commit
1d6d916b7a
31 changed files with 1055 additions and 39 deletions
|
|
@ -12,6 +12,10 @@ const props = defineProps({
|
|||
<slot name="windows"></slot>
|
||||
</template>
|
||||
|
||||
<template v-if="$slots.freebsd && platform === 'freebsd'">
|
||||
<slot name="freebsd"></slot>
|
||||
</template>
|
||||
|
||||
<template v-if="$slots.linux && platform === 'linux'">
|
||||
<slot name="linux"></slot>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -331,7 +331,7 @@
|
|||
<div class="form-text" v-if="platform === 'windows'"><b>{{ $t('apps.env_qres_example') }}</b>
|
||||
<pre>cmd /C <{{ $t('apps.env_qres_path') }}>\QRes.exe /X:%SUNSHINE_CLIENT_WIDTH% /Y:%SUNSHINE_CLIENT_HEIGHT% /R:%SUNSHINE_CLIENT_FPS%</pre>
|
||||
</div>
|
||||
<div class="form-text" v-else-if="platform === 'linux'"><b>{{ $t('apps.env_xrandr_example') }}</b>
|
||||
<div class="form-text" v-else-if="platform === 'freebsd' || platform === 'linux'"><b>{{ $t('apps.env_xrandr_example') }}</b>
|
||||
<pre>sh -c "xrandr --output HDMI-1 --mode \"${SUNSHINE_CLIENT_WIDTH}x${SUNSHINE_CLIENT_HEIGHT}\" --rate ${SUNSHINE_CLIENT_FPS}"</pre>
|
||||
</div>
|
||||
<div class="form-text" v-else-if="platform === 'macos'"><b>{{ $t('apps.env_displayplacer_example') }}</b>
|
||||
|
|
@ -442,8 +442,8 @@
|
|||
if (resp) {
|
||||
fetch("./api/apps/" + id, {
|
||||
method: "DELETE",
|
||||
headers: {
|
||||
"Content-Type": "application/json"
|
||||
headers: {
|
||||
"Content-Type": "application/json"
|
||||
},
|
||||
}).then((r) => {
|
||||
if (r.status === 200) document.location.reload();
|
||||
|
|
|
|||
|
|
@ -305,7 +305,7 @@
|
|||
return el.id !== "vt" && el.id !== "vaapi";
|
||||
});
|
||||
}
|
||||
if (this.platform === "linux") {
|
||||
if (this.platform === "freebsd" || this.platform === "linux") {
|
||||
this.tabs = this.tabs.filter((el) => {
|
||||
return el.id !== "amd" && el.id !== "qsv" && el.id !== "vt";
|
||||
});
|
||||
|
|
|
|||
|
|
@ -64,6 +64,10 @@ const config = ref(props.config)
|
|||
<select id="capture" class="form-select" v-model="config.capture">
|
||||
<option value="">{{ $t('_common.autodetect') }}</option>
|
||||
<PlatformLayout :platform="platform">
|
||||
<template #freebsd>
|
||||
<option value="wlr">wlroots</option>
|
||||
<option value="x11">X11</option>
|
||||
</template>
|
||||
<template #linux>
|
||||
<option value="nvfbc">NvFBC</option>
|
||||
<option value="wlr">wlroots</option>
|
||||
|
|
@ -90,6 +94,9 @@ const config = ref(props.config)
|
|||
<option value="quicksync">Intel QuickSync</option>
|
||||
<option value="amdvce">AMD AMF/VCE</option>
|
||||
</template>
|
||||
<template #freebsd>
|
||||
<option value="vaapi">VA-API</option>
|
||||
</template>
|
||||
<template #linux>
|
||||
<option value="nvenc">NVIDIA NVENC</option>
|
||||
<option value="vaapi">VA-API</option>
|
||||
|
|
|
|||
|
|
@ -30,6 +30,10 @@ const config = ref(props.config)
|
|||
<template #windows>
|
||||
<pre>tools\audio-info.exe</pre>
|
||||
</template>
|
||||
<template #freebsd>
|
||||
<pre>pacmd list-sinks | grep "name:"</pre>
|
||||
<pre>pactl info | grep Source</pre>
|
||||
</template>
|
||||
<template #linux>
|
||||
<pre>pacmd list-sinks | grep "name:"</pre>
|
||||
<pre>pactl info | grep Source</pre>
|
||||
|
|
|
|||
|
|
@ -28,12 +28,17 @@ const config = ref(props.config)
|
|||
<option value="auto">{{ $t('_common.auto') }}</option>
|
||||
|
||||
<PlatformLayout :platform="platform">
|
||||
<template #freebsd>
|
||||
<option value="switch">{{ $t("config.gamepad_switch") }}</option>
|
||||
<option value="xone">{{ $t("config.gamepad_xone") }}</option>
|
||||
</template>
|
||||
|
||||
<template #linux>
|
||||
<option value="ds5">{{ $t("config.gamepad_ds5") }}</option>
|
||||
<option value="switch">{{ $t("config.gamepad_switch") }}</option>
|
||||
<option value="xone">{{ $t("config.gamepad_xone") }}</option>
|
||||
</template>
|
||||
|
||||
|
||||
<template #windows>
|
||||
<option value="ds4">{{ $t('config.gamepad_ds4') }}</option>
|
||||
<option value="x360">{{ $t('config.gamepad_x360') }}</option>
|
||||
|
|
|
|||
|
|
@ -23,6 +23,16 @@ const config = ref(props.config)
|
|||
{{ $t('config.adapter_name_desc_windows') }}<br>
|
||||
<pre>tools\dxgi-info.exe</pre>
|
||||
</template>
|
||||
<template #freebsd>
|
||||
{{ $t('config.adapter_name_desc_linux_1') }}<br>
|
||||
<pre>ls /dev/dri/renderD* # {{ $t('config.adapter_name_desc_linux_2') }}</pre>
|
||||
<pre>
|
||||
vainfo --display drm --device /dev/dri/renderD129 | \
|
||||
grep -E "((VAProfileH264High|VAProfileHEVCMain|VAProfileHEVCMain10).*VAEntrypointEncSlice)|Driver version"
|
||||
</pre>
|
||||
{{ $t('config.adapter_name_desc_linux_3') }}<br>
|
||||
<i>VAProfileH264High : VAEntrypointEncSlice</i>
|
||||
</template>
|
||||
<template #linux>
|
||||
{{ $t('config.adapter_name_desc_linux_1') }}<br>
|
||||
<pre>ls /dev/dri/renderD* # {{ $t('config.adapter_name_desc_linux_2') }}</pre>
|
||||
|
|
|
|||
|
|
@ -241,6 +241,8 @@ function addRemappingEntry() {
|
|||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<template #freebsd>
|
||||
</template>
|
||||
<template #linux>
|
||||
</template>
|
||||
<template #macos>
|
||||
|
|
|
|||
|
|
@ -30,6 +30,16 @@ const outputNamePlaceholder = (props.platform === 'windows') ? '{de9bb7e2-186e-5
|
|||
<b> }</b>
|
||||
</pre>
|
||||
</template>
|
||||
<template #freebsd>
|
||||
<pre style="white-space: pre-line;">
|
||||
Info: Detecting displays
|
||||
Info: Detected display: DVI-D-0 (id: 0) connected: false
|
||||
Info: Detected display: HDMI-0 (id: 1) connected: true
|
||||
Info: Detected display: DP-0 (id: 2) connected: true
|
||||
Info: Detected display: DP-1 (id: 3) connected: false
|
||||
Info: Detected display: DVI-D-1 (id: 4) connected: false
|
||||
</pre>
|
||||
</template>
|
||||
<template #linux>
|
||||
<pre style="white-space: pre-line;">
|
||||
Info: Detecting displays
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue