forked from phobal/ivideo
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3d9e23c
commit 3aeed0f
Showing
6 changed files
with
57 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import routes from './routes.jsx' | ||
import routes from './routes' | ||
import Router from 'react-router' | ||
|
||
|
||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
var packager = require('electron-packager') | ||
var assign = require('object-assign') | ||
|
||
var DEFAULT_OPTS = { | ||
version: '0.26.1', | ||
dir: './', | ||
name: 'ElectronReact' | ||
} | ||
|
||
var MacOS_OPTS = assign({}, DEFAULT_OPTS, { | ||
platform: 'darwin', | ||
arch: 'x64', | ||
out: 'release/darwin', | ||
}) | ||
|
||
var Linux_OPTS = assign({}, DEFAULT_OPTS, { | ||
platform: 'linux', | ||
arch: 'x64', | ||
out: 'release/linux', | ||
}) | ||
|
||
var Windows_OPTS = assign({}, DEFAULT_OPTS, { | ||
platform: 'win32', | ||
arch: 'x64', | ||
out: 'release/win32', | ||
}) | ||
|
||
|
||
pack(MacOS_OPTS, thenPack(Linux_OPTS, thenPack(Windows_OPTS, log))) | ||
|
||
|
||
function pack(opts, cb) { | ||
packager(opts, cb) | ||
} | ||
|
||
function thenPack(opts, cb) { | ||
return function() { | ||
packager(opts, cb) | ||
} | ||
} | ||
|
||
function log(err, filepath) { | ||
if (err) return console.error(err) | ||
console.log('finished!') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters