diff --git a/.gitignore b/.gitignore index b28ebc9..2ccd4dc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ +*.exe .idea .egit-private diff --git a/CHANGELOG.md b/CHANGELOG.md index 642ab46..24f83cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,5 +8,8 @@ + 3136352472 [10:56:03] :添加忽略文件;影响的范围(代码逻辑) + 3136352472 [10:55:29] :添加egit工具;影响的范围(代码逻辑) +#### 封装和整合代码 ++ 3136352472 [12:11:54] :初始化上传;影响的范围(无影响) + ------ diff --git a/README.md b/README.md index cec2a0c..1a4fc70 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,8 @@ # ouxuanac-boot -树莓派ouxuanac启动器 \ No newline at end of file +树莓派ouxuanac启动器 + + +树莓派关闭可视化界面,root账户下 + +> sudo /usr/bin/xinit xwebstart.sh -nocursor \ No newline at end of file diff --git a/index.html b/index.html index 566549b..bec8d18 100644 --- a/index.html +++ b/index.html @@ -1,10 +1,18 @@ - + - Title + - +
+ +
\ No newline at end of file diff --git a/index.js b/index.js new file mode 100644 index 0000000..604b0f5 --- /dev/null +++ b/index.js @@ -0,0 +1,17 @@ + +const { app, BrowserWindow } = require('electron') + +function createWindow () { + // 创建浏览器窗口 + let win = new BrowserWindow({ + width: 1024, + height: 600, + kiosk:true, + frame: false + }) + + // 加载index.html文件 + win.loadFile('index.html') +} + +app.on('ready', createWindow) diff --git a/oval.svg b/oval.svg new file mode 100644 index 0000000..004a356 --- /dev/null +++ b/oval.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/xwebstart.sh b/xwebstart.sh new file mode 100644 index 0000000..bc745ce --- /dev/null +++ b/xwebstart.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +# 将electron换成绝对路径 +electron --no-sandbox /web/main.js