mirror of
https://gitee.com/spark-store-project/spark-web-app-runtime.git
synced 2025-12-15 03:22:05 +08:00
feat: 支持 dpkg-buildpackage 打包
支持 dpkg-buildpackage 打包 Log: 支持 dpkg-buildpackage 打包;整理项目目录结构
This commit is contained in:
85
spark-webapp-runtime/resources/help/help.html
Normal file
85
spark-webapp-runtime/resources/help/help.html
Normal file
@@ -0,0 +1,85 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h1>帮助:</h1></p>
|
||||
<p>
|
||||
<h3>第一种用法: </h3><br />
|
||||
spark-webapp-runtime 应用标题 目标网址 应用窗口宽度 应用窗口高度<br />
|
||||
<p>
|
||||
<br />
|
||||
<p>
|
||||
<h3>第二种用法: </h3><br />
|
||||
运行 "spark-webapp-runtime -h" 查看命令行帮助信息<br />
|
||||
<br />
|
||||
<xmp>
|
||||
用法:./spark-webapp-runtime [选项]
|
||||
描述: 星火网页应用运行环境
|
||||
|
||||
选项:
|
||||
-h, --help 显示这个此帮助。
|
||||
-v, --version 显示版本信息。
|
||||
-p, --parser 启用参数解析方式。默认为顺序解析方式。
|
||||
-t, --title <title> 设置应用的标题。默认为
|
||||
星火网页应用运行环境。
|
||||
-u, --url <url> 设置要打开的目标 URL。默认为空。
|
||||
-w, --width <width> 设置应用的窗口宽度。默认为 1024。
|
||||
-H, --height <height> 设置应用的窗口高度。默认为 768。
|
||||
-T, --tray 启用托盘图标。默认不启用。
|
||||
--full-screen 以全屏模式运行。默认关闭该功能。
|
||||
--fix-size 固定窗口大小。默认关闭该功能。
|
||||
--hide-buttons 隐藏控制按钮。默认关闭该功能。
|
||||
-i, --ico <ico> 设置应用的图标。
|
||||
-d, --desc <desc> 设置应用的描述信息。
|
||||
-c, --cfg <cfg> 设置应用的配置文件。
|
||||
-r, --root <root> 设置内置 WebServer 的根路径。
|
||||
-P, --port <port> 设置内置 WebServer 的监听端口号。
|
||||
-G, --GPU <0/1> 设置启用 GPU 渲染加速,默认开启。
|
||||
</xmp>
|
||||
<br/>
|
||||
<span style="color: red">需要注意的是, 命令行会覆盖配置文件信息。</span>
|
||||
</p>
|
||||
<hr />
|
||||
<p><h1>How to Usage:</h1></p>
|
||||
<p>
|
||||
<h3>The first usage: </h3><br />
|
||||
spark-webapp-runtime ApplicationTitle TargetURL ApplicationWidth ApplicationHeight<br />
|
||||
<p>
|
||||
<br />
|
||||
<p>
|
||||
<h3>The second usage: </h3><br />
|
||||
Using "spark-webapp-runtime -h" to get help<br />
|
||||
<br />
|
||||
<xmp>
|
||||
Usage: ./spark-webapp-runtime [options]
|
||||
Description: spark-webapp-runtime
|
||||
|
||||
Options:
|
||||
-h, --help Show this help Message.
|
||||
-v, --version Show Version info.
|
||||
-p, --parser Enable CommandLineParser. Default is false.
|
||||
-t, --title <title> The Title of Application. Default is
|
||||
SparkWebAppRuntime.
|
||||
-u, --url <url> The target URL. Default is Blank.
|
||||
-w, --width <width> The Width of Application. Default is 1024.
|
||||
-H, --height <height> The Height of Application. Default is 768.
|
||||
-T, --tray Enable Tray Icon. Default is false.
|
||||
--full-screen Run in Fullscreen Mode. Default is false.
|
||||
--fix-size Fix Window Size. Default is false.
|
||||
--hide-buttons Hide Control Buttons. Default is false.
|
||||
-i, --ico <ico> The ICON of Application.
|
||||
-d, --desc <desc> The Description of Application.
|
||||
-c, --cfg <cfg> The Configuration file of Application.
|
||||
-r, --root <root> The root path of the program web service.
|
||||
-P, --port <port> The port number of the program web service.
|
||||
-G, --GPU <0/1> To use GPU instead of CPU to decoding. Default True.
|
||||
</xmp>
|
||||
<br/>
|
||||
<span style="color: red">It should be noticed that the command line parsers will overwrite the configuration from the config file.</span>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
BIN
spark-webapp-runtime/resources/images/Logo-Spark.png
Normal file
BIN
spark-webapp-runtime/resources/images/Logo-Spark.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
3
spark-webapp-runtime/resources/images/go-next-24.svg
Normal file
3
spark-webapp-runtime/resources/images/go-next-24.svg
Normal file
@@ -0,0 +1,3 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
|
||||
<path fill="#536076" d="M14.138807,3.52000025 L14.138,12.5230002 L18.6066017,8.05523757 L19.3137085,8.76234435 L13.6568542,14.4191986 L8,8.76234435 L8.70710678,8.05523757 L13.138,12.4870002 L13.138807,3.52000025 L14.138807,3.52000025 Z" transform="matrix(0 1 1 0 2.139 -2.139)"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 373 B |
3
spark-webapp-runtime/resources/images/go-previous-24.svg
Normal file
3
spark-webapp-runtime/resources/images/go-previous-24.svg
Normal file
@@ -0,0 +1,3 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
|
||||
<path fill="#536076" d="M10.138807,3.52000025 L10.138,12.5230002 L14.6066017,8.05523757 L15.3137085,8.76234435 L9.65685425,14.4191986 L4,8.76234435 L4.70710678,8.05523757 L9.138,12.4870002 L9.138807,3.52000025 L10.138807,3.52000025 Z" transform="rotate(90 9.657 11.518)"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 366 B |
153
spark-webapp-runtime/resources/images/spark-webapp-runtime.svg
Normal file
153
spark-webapp-runtime/resources/images/spark-webapp-runtime.svg
Normal file
@@ -0,0 +1,153 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="512"
|
||||
height="512"
|
||||
viewBox="0 0 512 512"
|
||||
fill="none"
|
||||
version="1.1"
|
||||
id="svg36"
|
||||
sodipodi:docname="spark-webapp-runtime.svg"
|
||||
inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)">
|
||||
<metadata
|
||||
id="metadata40">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="938"
|
||||
id="namedview38"
|
||||
showgrid="false"
|
||||
inkscape:zoom="1.472973"
|
||||
inkscape:cx="286.01835"
|
||||
inkscape:cy="177.53211"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg36" />
|
||||
<g
|
||||
id="g49"
|
||||
transform="matrix(0.7781155,0,0,0.7781155,35.015197,53.890577)">
|
||||
<circle
|
||||
cx="277"
|
||||
cy="256"
|
||||
r="256"
|
||||
fill="#545454"
|
||||
id="circle2" />
|
||||
<g
|
||||
filter="url(#filter0_b)"
|
||||
id="g6">
|
||||
<circle
|
||||
cx="58"
|
||||
cy="98"
|
||||
r="58"
|
||||
fill="#e6b403"
|
||||
fill-opacity="0.65"
|
||||
id="circle4" />
|
||||
</g>
|
||||
<g
|
||||
filter="url(#filter1_b)"
|
||||
id="g10">
|
||||
<circle
|
||||
cx="452.5"
|
||||
cy="400.5"
|
||||
r="117.5"
|
||||
fill="#f2c213"
|
||||
fill-opacity="0.83"
|
||||
id="circle8" />
|
||||
</g>
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
clip-rule="evenodd"
|
||||
d="m 267.656,387.599 c -10.729,1.741 -20.771,6.652 -28.78,14.201 l -3.634,3.877 c -5.152,5.418 -15.069,7.851 -22.122,5.298 0,0 -6.283,-2.24 -20.822,-10.572 -14.539,-8.308 -19.69,-12.642 -19.69,-12.642 -5.753,-4.865 -8.57,-14.641 -6.403,-21.721 l 1.516,-5.057 c 3.243,-13.562 1.141,-27.853 -5.87,-39.906 -7.01,-12.052 -18.39,-20.942 -31.777,-24.824 l -5.152,-1.204 c -7.342,-1.638 -14.419,-8.982 -15.718,-16.327 0,0 -1.204,-6.55 -1.204,-23.214 0,-16.664 1.179,-23.239 1.179,-23.239 1.324,-7.344 8.474,-14.689 15.719,-16.326 l 5.296,-1.18 c 13.363,-3.887 24.721,-12.764 31.724,-24.795 7.003,-12.031 9.115,-26.294 5.9,-39.839 l -1.589,-5.177 c -2.191,-7.153 0.65,-16.857 6.403,-21.673 0,0 5.103,-4.311 19.618,-12.715 14.539,-8.26 20.846,-10.524 20.846,-10.524 3.829,-1.1662 7.899,-1.2903 11.792,-0.3591 3.893,0.9311 7.467,2.8841 10.354,5.6571 l 3.707,3.925 c 10.15,9.592 23.589,14.927 37.551,14.907 13.928,0.059 27.35,-5.224 37.503,-14.762 l 3.804,-4.07 c 5.175,-5.4421 15.068,-7.8743 22.145,-5.322 0,0 6.283,2.312 20.798,10.548 14.539,8.356 19.715,12.691 19.715,12.691 2.906,2.714 5.033,6.159 6.159,9.974 1.126,3.816 1.21,7.864 0.243,11.723 l -1.733,5.129 c -3.277,13.523 -1.189,27.79 5.826,39.806 1.661,2.852 3.566,5.528 5.685,8.003 l -57.779,32.748 c -9.95,-24.511 -34.15,-41.811 -62.366,-41.811 -37.118,0 -67.159,29.861 -67.159,66.705 0,33.864 25.419,61.829 58.315,66.131 z"
|
||||
fill="#ffffff"
|
||||
id="path12" />
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
clip-rule="evenodd"
|
||||
d="m 474.383,225.868 c 8.459,1.893 16.64,10.467 18.17,18.873 0,0 1.364,7.6 1.447,26.918 0,19.263 -1.363,26.862 -1.363,26.862 -1.531,8.49 -9.795,16.98 -18.198,18.873 l -5.955,1.364 c -14.97,4.398 -28.409,14.336 -36.813,28.811 -8.07,13.832 -10.473,30.253 -6.706,45.819 l 1.837,6.068 c 2.504,8.24 -0.779,19.541 -7.402,25.081 0,0 -5.899,5.01 -22.705,14.642 -16.779,9.548 -24.125,12.192 -24.125,12.192 -4.425,1.349 -9.131,1.492 -13.63,0.415 -4.5,-1.076 -8.632,-3.333 -11.969,-6.539 l -4.174,-4.482 c -11.297,-10.689 -26.656,-17.286 -43.546,-17.286 -3.455,-0.007 -6.882,0.269 -10.251,0.815 v -76.219 c 3.345,0.437 6.758,0.663 10.223,0.663 20.519,0.067 40.225,-8.016 54.791,-22.473 14.566,-14.457 22.801,-34.107 22.897,-54.634 0,-10.172 -1.987,-19.884 -5.596,-28.775 L 438.104,205 c 7.845,9.166 18.217,15.949 29.935,19.421 z"
|
||||
fill="#ffffff"
|
||||
id="path14" />
|
||||
</g>
|
||||
<defs
|
||||
id="defs34">
|
||||
<filter
|
||||
id="filter0_b"
|
||||
x="-45"
|
||||
y="-5"
|
||||
width="206"
|
||||
height="206"
|
||||
filterUnits="userSpaceOnUse"
|
||||
color-interpolation-filters="sRGB">
|
||||
<feFlood
|
||||
flood-opacity="0"
|
||||
result="BackgroundImageFix"
|
||||
id="feFlood16" />
|
||||
<feGaussianBlur
|
||||
in="BackgroundImage"
|
||||
stdDeviation="22.5"
|
||||
id="feGaussianBlur18" />
|
||||
<feComposite
|
||||
in2="SourceAlpha"
|
||||
operator="in"
|
||||
result="effect1_backgroundBlur"
|
||||
id="feComposite20" />
|
||||
<feBlend
|
||||
mode="normal"
|
||||
in="SourceGraphic"
|
||||
in2="effect1_backgroundBlur"
|
||||
result="shape"
|
||||
id="feBlend22" />
|
||||
</filter>
|
||||
<filter
|
||||
id="filter1_b"
|
||||
x="292"
|
||||
y="240"
|
||||
width="321"
|
||||
height="321"
|
||||
filterUnits="userSpaceOnUse"
|
||||
color-interpolation-filters="sRGB">
|
||||
<feFlood
|
||||
flood-opacity="0"
|
||||
result="BackgroundImageFix"
|
||||
id="feFlood25" />
|
||||
<feGaussianBlur
|
||||
in="BackgroundImage"
|
||||
stdDeviation="21.5"
|
||||
id="feGaussianBlur27" />
|
||||
<feComposite
|
||||
in2="SourceAlpha"
|
||||
operator="in"
|
||||
result="effect1_backgroundBlur"
|
||||
id="feComposite29" />
|
||||
<feBlend
|
||||
mode="normal"
|
||||
in="SourceGraphic"
|
||||
in2="effect1_backgroundBlur"
|
||||
result="shape"
|
||||
id="feBlend31" />
|
||||
</filter>
|
||||
</defs>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 5.9 KiB |
6
spark-webapp-runtime/resources/images/view-refresh.svg
Normal file
6
spark-webapp-runtime/resources/images/view-refresh.svg
Normal file
@@ -0,0 +1,6 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
|
||||
<g fill="#536076" transform="translate(5 5)">
|
||||
<path d="M7,14 C3.13400675,14 0,10.8659932 0,7 C0,3.13400675 3.13400675,0 7,0 C8.97567015,0 10.7601747,0.81847727 12.0329334,2.1348516 L12.452,4 L12.1971567,3.99974042 C11.1596915,2.20647946 9.22073992,1 7,1 C3.6862915,1 1,3.6862915 1,7 C1,10.3137085 3.6862915,13 7,13 C9.61218135,13 11.8344797,11.3307123 12.6583461,9.00068588 L13.7101213,9 C12.8495721,11.8914889 10.1710206,14 7,14 Z"/>
|
||||
<polygon points="12.75 1.982 16.286 5.518 9.214 5.518" transform="rotate(135 12.75 3.75)"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 635 B |
10
spark-webapp-runtime/resources/resources.qrc
Normal file
10
spark-webapp-runtime/resources/resources.qrc
Normal file
@@ -0,0 +1,10 @@
|
||||
<RCC>
|
||||
<qresource prefix="/">
|
||||
<file>images/spark-webapp-runtime.svg</file>
|
||||
<file>images/Logo-Spark.png</file>
|
||||
<file>images/go-previous-24.svg</file>
|
||||
<file>images/go-next-24.svg</file>
|
||||
<file>images/view-refresh.svg</file>
|
||||
<file>help/help.html</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
Reference in New Issue
Block a user