Skip to content

Commit 63dc563

Browse files
committed
packaging and dist electron apps
1 parent a21f44c commit 63dc563

File tree

4 files changed

+36
-0
lines changed

4 files changed

+36
-0
lines changed
100 KB
Binary file not shown.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<html>
2+
<head>
3+
<title></title>
4+
</head>
5+
<body>
6+
Look at this amazing app!
7+
</body>
8+
</html>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
var app = require('app')
2+
var BrowserWindow = require('browser-window')
3+
4+
app.on('ready', function() {
5+
var mainWindow = new BrowserWindow({
6+
width: 800,
7+
height: 600
8+
})
9+
mainWindow.loadUrl('file://' + __dirname + '/index.html')
10+
})
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "packaging-distributing-electron-apps",
3+
"version": "0.1.0",
4+
"description": "",
5+
"main": "index.js",
6+
"scripts": {
7+
"start": "electron .",
8+
"package": "asar pack MyApp.app/Contents/Resources/app MyApp.app/Contents/Resources/app.asar",
9+
"build": "electron-packager . MyApp --ignore=node_modules/electron-* && cp Icon.icns MyApp.app/Contents/Resources/atom.icns"
10+
},
11+
"author": "Kyle Robinson Young <[email protected]> (http://dontkry.com)",
12+
"license": "MIT",
13+
"devDependencies": {
14+
"asar": "^0.6.1",
15+
"electron-packager": "^3.2.0",
16+
"electron-prebuilt": "^0.25.2"
17+
}
18+
}

0 commit comments

Comments
 (0)