Remove electron build

This commit is contained in:
Zalmoxisus 2019-01-03 16:17:47 +02:00
parent 9e9146690c
commit e020e309ea
8 changed files with 0 additions and 279 deletions

View File

@ -1,201 +0,0 @@
const { app, BrowserWindow, Menu, shell } = require('electron');
let menu;
let template;
let win = null;
// require('electron-debug')();
app.on('window-all-closed', () => {
if (process.platform !== 'darwin') app.quit();
});
app.on('ready', () => {
win = new BrowserWindow({ width: 1024, height: 728 });
win.loadURL(`file://${__dirname}/index.html`);
win.on('closed', () => {
win = null;
});
if (process.platform === 'darwin') {
template = [{
label: 'Electron',
submenu: [{
label: 'About',
selector: 'orderFrontStandardAboutPanel:'
}, {
type: 'separator'
}, {
label: 'Services',
submenu: []
}, {
type: 'separator'
}, {
label: 'Hide',
accelerator: 'Command+H',
selector: 'hide:'
}, {
label: 'Hide Others',
accelerator: 'Command+Shift+H',
selector: 'hideOtherApplications:'
}, {
label: 'Show All',
selector: 'unhideAllApplications:'
}, {
type: 'separator'
}, {
label: 'Quit',
accelerator: 'Command+Q',
click() {
app.quit();
}
}]
}, {
label: 'Edit',
submenu: [{
label: 'Undo',
accelerator: 'Command+Z',
selector: 'undo:'
}, {
label: 'Redo',
accelerator: 'Shift+Command+Z',
selector: 'redo:'
}, {
type: 'separator'
}, {
label: 'Cut',
accelerator: 'Command+X',
selector: 'cut:'
}, {
label: 'Copy',
accelerator: 'Command+C',
selector: 'copy:'
}, {
label: 'Paste',
accelerator: 'Command+V',
selector: 'paste:'
}, {
label: 'Select All',
accelerator: 'Command+A',
selector: 'selectAll:'
}]
}, {
label: 'View',
submenu: (process.env.NODE_ENV === 'development') ? [{
label: 'Reload',
accelerator: 'Command+R',
click() {
win.restart();
}
}, {
label: 'Toggle Full Screen',
accelerator: 'Ctrl+Command+F',
click() {
win.setFullScreen(!win.isFullScreen());
}
}, {
label: 'Toggle Developer Tools',
accelerator: 'Alt+Command+I',
click() {
win.toggleDevTools();
}
}] : [{
label: 'Toggle Full Screen',
accelerator: 'Ctrl+Command+F',
click() {
win.setFullScreen(!win.isFullScreen());
}
}]
}, {
label: 'Window',
submenu: [{
label: 'Minimize',
accelerator: 'Command+M',
selector: 'performMiniaturize:'
}, {
label: 'Close',
accelerator: 'Command+W',
selector: 'performClose:'
}, {
type: 'separator'
}, {
label: 'Bring All to Front',
selector: 'arrangeInFront:'
}]
}, {
label: 'Help',
submenu: [{
label: 'Learn More',
click() {
shell.openExternal('http://electron.atom.io');
}
}, {
label: 'Search Issues',
click() {
shell.openExternal('https://github.com/atom/electron/issues');
}
}]
}];
menu = Menu.buildFromTemplate(template);
Menu.setApplicationMenu(menu);
} else {
template = [{
label: '&File',
submenu: [{
label: '&Open',
accelerator: 'Ctrl+O'
}, {
label: '&Close',
accelerator: 'Ctrl+W',
click() {
win.close();
}
}]
}, {
label: '&View',
submenu: (process.env.NODE_ENV === 'development') ? [{
label: '&Reload',
accelerator: 'Ctrl+R',
click() {
win.restart();
}
}, {
label: 'Toggle &Full Screen',
accelerator: 'F11',
click() {
win.setFullScreen(!win.isFullScreen());
}
}, {
label: 'Toggle &Developer Tools',
accelerator: 'Alt+Ctrl+I',
click() {
win.toggleDevTools();
}
}] : [{
label: 'Toggle &Full Screen',
accelerator: 'F11',
click() {
win.setFullScreen(!win.isFullScreen());
}
}]
}, {
label: 'Help',
submenu: [{
label: 'Learn More',
click() {
shell.openExternal('http://electron.atom.io');
}
}, {
label: 'Search Issues',
click() {
shell.openExternal('https://github.com/atom/electron/issues');
}
}]
}];
menu = Menu.buildFromTemplate(template);
win.setMenu(menu);
}
});

View File

@ -1,9 +0,0 @@
{
"name": "remotedev",
"productName": "RemoteDev",
"version": "0.0.1",
"electronVersion": "1.4.5",
"main": "index.js",
"description": "Remote Redux DevTools",
"authors": "Mihail Diordiev"
}

View File

@ -1,17 +0,0 @@
{
"osx" : {
"title": "RemoteDev",
"background": "osx/installer.png",
"icon": "osx/icon.icns",
"icon-size": 225,
"contents": [
{ "x": 290, "y": 1, "type": "link", "path": "/Applications" },
{ "x": 1, "y": 1, "type": "file" }
]
},
"win" : {
"title" : "RemoteDev",
"version" : "0.0.0.1",
"icon" : "windows/icon.ico"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 KiB

View File

@ -1,45 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
<title>RemoteDev</title>
<style>
body {
position: fixed;
overflow: hidden;
height: 100%;
width: 100%;
margin: 0;
padding: 0;
}
#root {
height: 100%;
}
@media print {
@page {
size: auto;
margin: 0;
}
body {
position: static;
}
#root > div > div:not(:nth-child(2)) {
display: none !important;
}
#root > div > div:nth-child(2) {
overflow: visible !important;
position: absolute !important;
z-index: 2147483647;
page-break-after: avoid;
}
#root > div > div:nth-child(2) * {
overflow: visible !important;
}
}
</style>
</head>
<body>
<div id='root'></div>
</body>
</html>

View File

@ -4,8 +4,6 @@
"description": "Remote Redux DevTools web, electron and chrome app.",
"scripts": {
"start": "webpack-dev-server --hot --inline --env.development --env.platform=web --progress",
"start:electron": "npm run build:electron && electron ./build/electron",
"build:electron": "rimraf ./build/electron && webpack -p --env.platform=electron --progress",
"build:web": "rimraf ./build/web && webpack -p --env.platform=web --progress",
"build:umd": "rimraf ./dist && webpack --env.development --progress --config webpack.config.umd.js",
"build:umd:min": "webpack -p --progress --config webpack.config.umd.js",
@ -51,13 +49,8 @@
"babel-preset-react": "^6.22.0",
"babel-preset-stage-0": "^6.22.0",
"babel-register": "^6.22.0",
"chromedriver": "^2.20.0",
"copy-webpack-plugin": "^4.0.1",
"css-loader": "^0.26.1",
"electron": "^1.4.5",
"electron-builder": "^2.5.0",
"electron-debug": "^1.1.0",
"electron-packager": "^8.2.0",
"enzyme": "^2.8.2",
"enzyme-to-json": "^1.5.1",
"eslint": "^3.15.0",