# webview-jacketing **Repository Path**: xbmt/webview-jacketing ## Basic Information - **Project Name**: webview-jacketing - **Description**: 桌面应用开发webview套壳版 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 4 - **Created**: 2024-05-28 - **Last Updated**: 2024-05-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # webview-jacketing [下载](https://gitee.com/kllxs_admin/webview-jacketing/releases) > webview桌面应用套壳版 ## 执行文件 windows系统为:`windows.exe` linux系统为:`linux` ## 配置文件 `config.json` ```json { "windows":{ "icon":"./favicon.ico", // 图标 "title":"php-desktop", // 窗口标题 "width":600, // 窗口宽度 "height":400, // 窗口高度 "hint":"auto", // 窗口大小 auto:自动 min:固定最小 max:固定最大 fixed:固定大小 "debug":false // debug模式 }, "php":{ "file":"./php/windows/php.exe", // 执行文件 "address":"127.0.0.1", // url地址 "port":"*", // 端口号 *:随机端口 其他:固定端口号 "entrance":"./www/route.php", // 执行路由 // php -S 127.0.0.1:8080 route.php 开启php内置web "is_custom_instruction":false, // 是否开启自定义命令 true:就不按照开启php内置web来执行 "start_instruction":"", // 开启命令 "stop_instruction":"", // 结束命令 "auto_stop":true // 关闭窗口时是否自动关闭php,若为false则需要填写 结束命令 来关闭 } } ``` ### windows 配置 #### webman框架 ```json { "windows":{ "icon":"./favicon.ico", // 图标 "title":"php-desktop", // 窗口标题 "width":600, // 窗口宽度 "height":400, // 窗口高度 "hint":"auto", // 窗口大小 auto:自动 min:固定最小 max:固定最大 fixed:固定大小 "debug":false // debug模式 }, "php":{ "file":"./php/windows/php.exe", // 执行文件 "address":"127.0.0.1", // url地址 "port":"8787", // 必须-固定端口号 "entrance":"", //不用填 "is_custom_instruction":true, // 开启 "start_instruction":"./webman/start.php", // 开启命令 "stop_instruction":"", // win系统不用填 "auto_stop":true // 必须为true } } ``` #### 其他框架 ```json { "windows":{ "icon":"./favicon.ico", // 图标 "title":"php-desktop", // 窗口标题 "width":600, // 窗口宽度 "height":400, // 窗口高度 "hint":"auto", // 窗口大小 auto:自动 min:固定最小 max:固定最大 fixed:固定大小 "debug":false // debug模式 }, "php":{ "file":"./php/windows/php.exe", // 执行文件 "address":"127.0.0.1", // url地址 "port":"*", // 端口号 *:随机端口 其他:固定端口号 "entrance":"./www/route.php", // 执行路由文件,具体参考route.php文件内容 // php -S 127.0.0.1:8080 route.php 开启php内置web "is_custom_instruction":false, // 必须为false "start_instruction":"", // 不用填 "stop_instruction":"", // 不用填 "auto_stop":true // 必须为true } } ``` ### linux 配置 #### webman框架 ```json { "windows":{ "icon":"./favicon.ico", // 图标 "title":"php-desktop", // 窗口标题 "width":600, // 窗口宽度 "height":400, // 窗口高度 "hint":"auto", // 窗口大小 auto:自动 min:固定最小 max:固定最大 fixed:固定大小 "debug":false // debug模式 }, "php":{ "file":"./php/linux/php", // 执行文件 "address":"127.0.0.1", // url地址 "port":"8787", // 必须-固定端口号 "entrance":"", //不用填 "is_custom_instruction":true, // 开启 "start_instruction":"./webman/start.php start -d", // 开启命令 "stop_instruction":"./php/windows/php.exe ./webman/start.php stop", // 结束命令 "auto_stop":false // false } } ``` #### 其他框架 ```json { "windows":{ "icon":"./favicon.ico", // 图标 "title":"php-desktop", // 窗口标题 "width":600, // 窗口宽度 "height":400, // 窗口高度 "hint":"auto", // 窗口大小 auto:自动 min:固定最小 max:固定最大 fixed:固定大小 "debug":false // debug模式 }, "php":{ "file":"./php/linux/php", // 执行文件 "address":"127.0.0.1", // url地址 "port":"*", // 端口号 *:随机端口 其他:固定端口号 "entrance":"./www/route.php", // 执行路由文件,具体参考route.php文件内容 // php -S 127.0.0.1:8080 route.php 开启php内置web "is_custom_instruction":false, // 必须为false "start_instruction":"", // 不用填 "stop_instruction":"", // 不用填 "auto_stop":true // 必须为true } } ``` # 接口 ```html ``` #效果 ![](效果.png)