mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-12-15 03:22:04 +08:00
完善虚拟机连接
This commit is contained in:
61
VM/novnc/snap/snapcraft.yaml
Normal file
61
VM/novnc/snap/snapcraft.yaml
Normal file
@@ -0,0 +1,61 @@
|
||||
name: novnc
|
||||
base: core22 # the base snap is the execution environment for this snap
|
||||
version: git
|
||||
summary: Open Source VNC client using HTML5 (WebSockets, Canvas)
|
||||
description: |
|
||||
Open Source VNC client using HTML5 (WebSockets, Canvas).
|
||||
noVNC is both a VNC client JavaScript library as well as an
|
||||
application built on top of that library. noVNC runs well in any
|
||||
modern browser including mobile browsers (iOS and Android).
|
||||
|
||||
grade: stable
|
||||
confinement: strict
|
||||
|
||||
parts:
|
||||
novnc:
|
||||
source: .
|
||||
plugin: dump
|
||||
organize:
|
||||
utils/novnc_proxy: /
|
||||
stage:
|
||||
- vnc.html
|
||||
- app
|
||||
- core/**/*.js
|
||||
- vendor/**/*.js
|
||||
- novnc_proxy
|
||||
|
||||
novnc-deps:
|
||||
plugin: nil
|
||||
stage-packages:
|
||||
- bash
|
||||
|
||||
svc-script:
|
||||
source: snap/local
|
||||
plugin: dump
|
||||
stage:
|
||||
- svc_wrapper.sh
|
||||
|
||||
svc-script-deps:
|
||||
plugin: nil
|
||||
stage-packages:
|
||||
- bash
|
||||
- jq
|
||||
|
||||
websockify:
|
||||
source: https://github.com/novnc/websockify/archive/v0.12.0.tar.gz
|
||||
plugin: python
|
||||
stage-packages:
|
||||
- python3-numpy
|
||||
|
||||
hooks:
|
||||
configure:
|
||||
plugs: [network, network-bind]
|
||||
|
||||
apps:
|
||||
novnc:
|
||||
command: ./novnc_proxy
|
||||
plugs: [network, network-bind]
|
||||
novncsvc:
|
||||
command: ./svc_wrapper.sh
|
||||
daemon: forking
|
||||
plugs: [network, network-bind]
|
||||
Reference in New Issue
Block a user