Implement downloading of files

- Fixes #185
This commit is contained in:
Goh Jia Hao 2016-05-26 22:50:40 +08:00
parent a70433959b
commit f262252ade
2 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,7 @@
"description": "Placeholder for the nativefier cli to override with a target url",
"main": "lib/main.js",
"dependencies": {
"electron-dl": "^1.1.0",
"electron-window-state": "^3.0.3",
"source-map-support": "^0.4.0",
"wurl": "^2.1.0"

View File

@ -6,9 +6,12 @@ import createLoginWindow from './components/login/loginWindow';
import createMainWindow from './components/mainWindow/mainWindow';
import helpers from './helpers/helpers';
import inferFlash from './helpers/inferFlash';
import electronDownload from 'electron-dl';
const {isOSX} = helpers;
electronDownload();
const APP_ARGS_FILE_PATH = path.join(__dirname, '..', 'nativefier.json');
const appArgs = JSON.parse(fs.readFileSync(APP_ARGS_FILE_PATH, 'utf8'));