Skip to content

Commit

Permalink
app init
Browse files Browse the repository at this point in the history
  • Loading branch information
iref committed Oct 30, 2018
1 parent ac67215 commit 4528419
Show file tree
Hide file tree
Showing 6 changed files with 2,319 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
23 changes: 23 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>PS4 Remote PKG Sender</title>
</head>
<body>
<label>LOCAL IP:</label>
<input type="text" placeholder="192.168.1.1" value="192.168.1.1" id="localIP" />
<br>
<label>PS4 IP:</label>
<input type="text" placeholder="192.168.1.100" value="192.168.1.100" id="PS4IP" />
<br>
<label>PKG Files:</label>
<div class="files"></div>
<input type="file" multiple accept=".pkg" />
<br>
<input type="button" value="SEND" disabled />
<script>
require('./renderer.js')
</script>
</body>
</html>
27 changes: 27 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
const {app, BrowserWindow} = require('electron');
let mainWindow;

function createWindow () {
mainWindow = new BrowserWindow({width: 800, height: 600});
mainWindow.loadFile('index.html');
//mainWindow.webContents.openDevTools();
mainWindow.on('closed', function () {
mainWindow = null
})
}

app.on('ready', function () {
createWindow();
});

app.on('window-all-closed', function () {
if (process.platform !== 'darwin') {
app.quit()
}
});

app.on('activate', function () {
if (mainWindow === null) {
createWindow()
}
});
Loading

0 comments on commit 4528419

Please sign in to comment.