Commit Graph

44 Commits

Author SHA1 Message Date
David Pacheco 38825e8b71 Add options (--ignore-gpu-blacklist and --enable-es3-apis) to allow for WebGl apps to work on legacy or unsupported graphics cards by Chrome (#410) 2017-07-13 12:23:07 -04:00
romo-dw ab435ee5a6 Add support for --disk-cache-size Electron flag (PR #400) 2017-07-05 09:07:31 -04:00
Stefan Koshy 91505c90fe Fix #28 - Executable name being 'Electron' always under Windows (PR #389) 2017-06-18 19:13:35 -04:00
Jia Hao Goh 1505933826 Promisfy and parallelise config, add unit tests
Instead of optionsMain exporting an async function, this commit changes
it to return a promise instead. We split all the needed async
helpers for this config builder into smaller promises, in `src/options/*`. Another side
effect of this is that we perform all our async config inferring in
parallel, which speeds up the nativefier CLI.

Add proper unit tests as well for all of these promises. Switch to
Jest for these unit tests, and we are temporarily running both Jest and
mocha together in `npm test`. To refactor all the Mocha code to use Jest in
a future commit.
2017-05-07 15:49:15 +08:00
Jia Hao Goh 8f78dd03af Update eslint and use Airbnb style
- Add `npm run lint:fix` command
- Cleanup inferIcon.js logic slightly
2017-04-29 22:52:12 +08:00
Jia Hao Goh b467ac7a51 Promisify inferTitle module
Also remove the request dependency, use Axios instead
2017-04-21 00:24:48 +08:00
Ronan Jouchet be4b9a7436 Fix #327 - Update dependencies (except eslint), default to Electron 1.6.6 (#341) 2017-04-18 17:30:54 -04:00
Krzysztof Zbiciński da637ebf73 Add --single-instance switch (#323) 2017-04-09 22:02:49 -04:00
Goh Jia Hao f63f2e9e2b Merge branch 'master' into development
- Pull request was accidentally merged into master
2016-10-09 13:52:50 +08:00
Lex Neva 9243f6689f add "copy link location" and "--internal-urls <regex>" features (#230)
* add arg to specify pattern for urls to be considered internal

* add 'copy link location' to context menu

* fix lint
2016-08-07 02:03:53 +08:00
Peng Chen 48f0872ee5 Remove all non-ascii characters or use default for app name (#217) 2016-07-12 14:21:42 +08:00
Mats Högberg a407b9ea52 Added a --zoom option for setting default zoom (#218)
* Added a --zoom option for setting initial zoom

* Added information about --zoom to documentation
2016-07-12 09:32:40 +08:00
Goh Jia Hao 1de9eec356 Implement disabling of developer tools
- Partially addresses #194
2016-05-26 18:02:43 +08:00
Goh Jia Hao c12006ebea Add note on electron-packager workaround 2016-05-26 18:00:14 +08:00
Goh Jia Hao 7945f7802e Implement min/max window width and height
Fixes #82
2016-05-26 17:11:51 +08:00
Goh Jia Hao 2d2f107c84 Update electron version to v1.1.3 2016-05-26 16:51:31 +08:00
Goh Jia Hao 60823a21bb Temporary workaround for unable to delete OSX folder
Problem occurs with electron packager v7.01, see electron-userland/electron-packager#375
2016-05-26 16:01:23 +08:00
Goh Jia Hao 6fd275f063 Update default electron version to v1.0.2 2016-05-13 12:51:05 +08:00
matthewdias 49ab72352e merge upstream, reverse default 2016-04-25 17:09:01 -05:00
Alexandr Priezzhev f5d6980bfe Merge with upstream/development 2016-04-17 23:33:08 +02:00
Alexandr Priezzhev c1b7ef9a60 Add an option to hide window frame 2016-04-17 01:06:42 +02:00
Jan Jongboom ccdef6d5de Add an option to disable the context menu 2016-04-16 16:07:09 +02:00
Jia Hao 404bab30c3 No longer enable flash by default
Flash should be enabled with `--flash`, which will also enable the `--insecure` flag
2016-03-26 15:06:50 +08:00
Jia Hao 62a43c76ed Bump default electron version to 0.37.2
Uses chrome 49
2016-03-26 14:54:14 +08:00
Jia Hao 7ebec43dec Do not include `app/src` in packaged app 2016-03-25 21:11:12 +08:00
Jia Hao e7390b9e33 Implement setting of verbose log level 2016-03-25 20:50:52 +08:00
Jia Hao 7b10e16ddb Merge branch 'lostfictions-development' into development 2016-03-25 20:12:20 +08:00
Jia Hao 94c9fdb424 Contain fallback user agent within inferUserAgent 2016-03-25 20:10:45 +08:00
Bogdan Begovic 7351c61664 Added option for maximization of main window ( #133 ) 2016-03-22 18:09:21 +01:00
sa 4b6716efef Infer user agent from Electron's online version list 2016-03-19 21:14:41 -04:00
Jia Hao 5bad1d08dd Use `windows` and `osx` to specify platform 2016-03-12 16:47:18 +08:00
Jia Hao e6dc4b8441 Override output directory by default 2016-03-12 16:07:21 +08:00
Jia Hao 4c708fac26 Try to use assets store for icons before infer
Also promisified inferIcon
2016-03-11 12:40:08 +08:00
Jia Hao c3374618d9 Prefer correct extension for page icon 2016-03-09 14:50:25 +08:00
Jia Hao ac2260c395 Remove non ascii chars from filename
Non-ascii characters cause weird wine errors when building for win32 on darwin

```
$ nativefier stackedit.io ~/Desktop -o -p win32
```

Stack trace:
```
fixme:heap:RtlSetHeapInformation 0x0 1 0x0 0 stub
Fatal error: Unable to load file
```
2016-03-09 13:51:22 +08:00
Jia Hao 34039baefd Trim whitespace from inferred page title 2016-03-09 00:04:54 +08:00
Jia Hao 31ee80f84f Implement command line flag to start app in full screen, resolves #109 2016-02-25 18:26:28 +08:00
Jia Hao 4d49c01ff3 Implement injection of `.js` 2016-02-25 14:11:48 +08:00
Jia Hao 1b0351cd01 Change flag usage
- `--ignore-certificate` to ignore invalid certificate errors,
- `--insecure` to disable web security to allow mixed content
2016-02-23 21:31:47 +08:00
Jia Hao 7bfa42ef71 Merge branch 'development' into feature/flash
# Conflicts:
#	README.md
#	src/build/buildApp.js
#	src/cli.js
#	src/options/optionsMain.js
2016-02-23 21:13:20 +08:00
Jia Hao 6182432175 Merge branch 'feature/disable-web-security' of https://github.com/wiederkehr/nativefier into wiederkehr-feature/disable-web-security 2016-02-23 21:09:01 +08:00
Jia Hao 14939800d9 Allow manual override of flash plugin path 2016-02-23 17:13:39 +08:00
Jia Hao 88bb589de8 Fix #146 Specifying `--electron-version` does not work 2016-02-22 02:46:42 +08:00
Jia Hao 6ddf84bee1 Refactor options to seperate folders 2016-02-20 10:39:51 +08:00