进一步移植:能够打包 exe 运行

This commit is contained in:
mofeng-git
2025-02-04 11:57:12 +08:00
parent 5bf2466037
commit 45b394185a
18 changed files with 222 additions and 846 deletions

View File

@@ -2,7 +2,7 @@
# Use override.yaml to modify required settings.
# You can find a working configuration in /usr/share/kvmd/configs.default/kvmd.
override: !include [override.d, override.yaml]
override: !include [override.yaml]
logging: !include logging.yaml

View File

@@ -4,7 +4,7 @@
# will be displayed in the web interface.
server:
host: docker
host: windows
kvm: {
base_on: PiKVM,

View File

@@ -40,12 +40,11 @@ kvmd:
keymap: kvmd_data/usr/share/kvmd/keymaps/en-us
msd:
#type: otg
remount_cmd: /bin/true
msd_path: /var/lib/kvmd/msd
normalfiles_path: NormalFiles
normalfiles_size: 256
type: disabled
log_reader:
enabled: false
ocr:
langs:
- eng
@@ -53,7 +52,7 @@ kvmd:
streamer:
resolution:
default: 1280x720
default: 1920x1080
forever: true

Binary file not shown.

View File

@@ -1,3 +1,3 @@
PIKVM_MODEL=docker_model
PIKVM_VIDEO=docker_video
PIKVM_BOARD=docker_board
PIKVM_MODEL=windows_model
PIKVM_VIDEO=windows_video
PIKVM_BOARD=windows_board

View File

@@ -899,7 +899,7 @@
</div>
<div id="stream-info"></div>
<button class="window-button-exit-full-tab">&#9660;</button>
<div class="stream-box-online" id="stream-box"><img id="stream-image" src="/share/png/blank-stream.png">
<div class="stream-box-offline" id="stream-box"><img id="stream-image" src="/share/png/blank-stream.png">
<video class="hidden" id="stream-video" disablePictureInPicture="true" autoplay playsinline muted></video>
<div id="stream-fullscreen-active"></div>
</div>

View File

@@ -13,7 +13,7 @@ div(id="stream-window" class="window window-resizable")
div(id="stream-info")
button(class="window-button-exit-full-tab") &#9660;
div(id="stream-box" class="stream-box-online")
div(id="stream-box" class="stream-box-offline")
img(id="stream-image" src=`${png_dir}/blank-stream.png`)
video(id="stream-video" class="hidden" disablePictureInPicture="true" autoplay playsinline muted)
div(id="stream-fullscreen-active")

View File

@@ -127,8 +127,9 @@ export function MjpegStreamer(__setActive, __setInactive, __setInfo) {
var __checkStream = function() {
__findId();
if (__id.legnth > 0 && __id in __state.stream.clients_stat) {
console.log("__state.stream.clients_stat",__state.stream.clients_stat)
console.log("__id",__id)
if (__id.length > 0 && __id in __state.stream.clients_stat) {
__setStreamActive();
__stopChecking();