# electron-demo **Repository Path**: cloud-fly/electron-demo ## Basic Information - **Project Name**: electron-demo - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-08-19 - **Last Updated**: 2025-02-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 多显示器屏幕显示网页工具 > 为了方便主机连接多个显示器,投屏不同的网页内容,作为看板,实现的小工具 ## 配置文件 - screen_data.json ```json [ { "fullscreen": true, "width": 800, "height": 600, "pages": [ { "isShow": false, "url": "http://www.baidu.com", "refreshCron": "0 0 */1 * * *", "durationTimeSec": 10 }, { "isShow": true, "url": "https://www.bilibili.com/", "refreshCron": "0 0 */1 * * *", "durationTimeSec": 20 }, { "isShow": true, "url": "https://www.deepseek.com/", "refreshCron": "0 0 */1 * * *", "durationTimeSec": 30 } ] }, { "fullscreen": false, "width": 800, "height": 600, "pages": [ { "isShow": false, "url": "https://www.bilibili.com/", "refreshCron": "0 0 */1 * * *", "durationTimeSec": 10 } ] } ] ``` - 第一层数组代表屏幕数组 - 第二层标识窗口设置 - fullscreen 是否全屏显示 - height 窗口高度 - width 窗口宽度 - pages 窗口数组 - isShow 是否显示本页面 - url打开的网址 - refreshCron 任务刷新的定时cron表达式,定时刷新本页,防止出现内存问题 - durationTimeSec 本页面显示时长,单位秒,超过时间后自动切换到下一个页面 **注意:** 配置文件顺序是按照屏幕顺序序号来的 ## 使用 Esc快捷键,显示任务栏 Alt+F4 关闭程序 ## 其他 ``` yarn install 开发运行 npm run start 打包: npm run build ,npm run dist64 打包2:yarn run dist:dir ``` nodejs 版本:v16.20.0