File tree Expand file tree Collapse file tree 4 files changed +36
-0
lines changed
packaging-distributing-electron-apps Expand file tree Collapse file tree 4 files changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ < html >
2
+ < head >
3
+ < title > </ title >
4
+ </ head >
5
+ < body >
6
+ Look at this amazing app!
7
+ </ body >
8
+ </ html >
Original file line number Diff line number Diff line change
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
+ } )
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments