2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-11-16 01:37:07 +00:00
Commit Graph

924 Commits

Author SHA1 Message Date
Goh Jia Hao
95fc46d38d Integrate prettier 2018-05-24 00:02:44 -07:00
Goh Jia Hao
949dcfadd8 Migrate Mocha tests to Jest 2018-05-23 23:44:03 -07:00
Ronan Jouchet
17ccda36f0 Update changelog for v7.6.3 2018-05-23 14:52:40 -04:00
Ronan Jouchet
99ee5161a1 Bump default Electron to 2.0.2 2018-05-22 16:39:44 -04:00
Ronan Jouchet
fe48684ee2 Bump default Electron to 2.0.1 and deps:validator 2018-05-16 15:32:27 -04:00
Ronan Jouchet
039ad50fa6 eslint 2018-05-11 16:58:36 -04:00
Ronan Jouchet
6a8114e505 Fix deprecations: electron-packager cb->promise, mocha compilers->require 2018-05-11 16:55:50 -04:00
David Kramer
69a5b2cbbe Fix Gmail complaining window creation was prevented by a popup blocker (PR #603)
By changing incorrect window `guest` property to `newGuest`. See
https://github.com/electron/electron/blob/master/docs/api/web-contents.md#event-new-window

> Calling `event.preventDefault()` will prevent Electron from 
> automatically creating a new BrowserWindow. If you call
> `event.preventDefault()` and manually create a new BrowserWindow
> then you must set `event.newGuest` to reference the new BrowserWindow
> instance, failing to do so may result in unexpected behavior.
2018-05-10 23:54:34 -04:00
Ronan Jouchet
ef755b53c7
Travis: try node 10 2018-05-02 21:51:27 -04:00
David Kramer
be25eab45d Fix #547 - Default to Electron 2.0.0 and review deprecations (PR #587) 2018-05-01 19:29:03 -04:00
David Kramer
ac99c6424d macOS: Add native tabs (PR #579)
Electron supports using native tabs on macOS (API added in Electron 1.8.1). This change adds a context menu item on platforms that support it (macOS for now) to open links in new tabs, and also adds support for {command,middle}-clicking links to open them in a new tab.

Maintainer (@ronjouch) note: this feature is macOS-only. Windows/Linux patches welcome 🙂.
2018-05-01 19:24:35 -04:00
Ronan Jouchet
025936e9c5 Update changelog for v7.6.2 2018-05-01 19:06:46 -04:00
Ronan Jouchet
e62b45b697 Default to electron 1.8.6, dep bump electron-packager 2018-05-01 18:56:23 -04:00
David Kramer
0848143096 Fix #590, Fix #439 - Ensure children windows have the same behavior as the mainWindow (PR #591) 2018-04-30 21:36:45 -04:00
Ronan Jouchet
27d3d5a537 pngquant screenshot 2018-04-26 09:50:40 -04:00
Ronan Jouchet
9bae3891bf Homogenize shebangs: convertTo{Ico,Png} 2018-04-26 09:49:24 -04:00
David Kramer
dc257052c5 Fix #199 - macOS: Perform image conversion tasks using sips when available (PR #583)
Eliminates the requirement for imagemagick to be present on macOS for icon conversion.
Based off of the code from PR #279.
2018-04-26 07:42:03 -04:00
Ronan Jouchet
eeef1facf3
Stay on npm@5.8.x for a little while
npm6 breaks our node4+5 builds:

https://travis-ci.org/jiahaog/nativefier/jobs/369940904
https://travis-ci.org/jiahaog/nativefier/jobs/370872623
2018-04-25 20:33:58 -04:00
David Kramer
ec1023d7ef Fix #95, #384 - Use electron-context-menu, supporting cut/copy/paste (PR #588)
The electron-context-menu package uses the context-menu event emitted by WebContents (API added in Electron 1.0.2) to add a general context menu supporting generic actions (e.g. cut/copy/paste) that can be customized. This change replaces the existing context menu, which relies on adding an event listener in preload.js, with one built using the new package.
2018-04-22 19:48:56 -04:00
David Kramer
92bc44a712 Fix #94, #575: Fix run-time crash due to insufficient permissions (PR #581) 2018-04-22 16:55:46 -04:00
David Kramer
2d09455c17 Fix #574 - Allow build to continue if icon conversion fails (PR#585)
By unsetting `options.icon` if input cannot be converted.
2018-04-22 15:57:58 -04:00
David Kramer
bbb513d420 Fix #364 - Add --disable-gpu flag to disable hardware acceleration (PR #584) 2018-04-22 15:56:10 -04:00
David Kramer
454ab1e7bd Fix #474: Remember custom zoom level (PR #582)
... by using setZoomFactor instead of sending change-zoom event.
2018-04-22 15:54:29 -04:00
Matt Rose
574205ab0d macOS: Add --bounce option for dock counter (PR #570) 2018-04-14 17:17:25 -04:00
Goh Jia Hao
cec29c88ed Update changelog for v7.6.1 2018-03-29 22:24:47 -07:00
Goh Jia Hao
4f5b36f731 Fix CD with Travis #482 2018-03-29 22:22:38 -07:00
Goh Jia Hao
a8052823ba Update changelog for v7.6.0 2018-03-29 21:52:09 -07:00
Goh Jia Hao
bb67448328 Fix infer icon url #529 2018-03-29 19:38:04 -07:00
sgroh
46d381481c Fix #549: Add --always-on-top build flag (PR #551) 2018-03-16 18:15:44 -04:00
Ronan Jouchet
8981e55783 Update deps, default to Electron 1.8.4 stable
Semver-major deps upgrades: axios electron-packager require-dir
2018-03-16 17:54:19 -04:00
Ronan Jouchet
fc4d365987 Update deps, default to Electron 1.8.2 stable
Semver-major deps upgrades: babel-jest electron-packager gulp-mocha jest shelljs
2018-02-06 21:56:58 -05:00
C. Bess
7270f7d295 Document internal-urls option (PR #465) 2018-02-06 17:19:39 -05:00
David Ollerhead
e1909bf5c8 Support Mac App Store (--mas) builds (PR #532) 2018-02-02 08:06:29 -05:00
Bob Roth
cec9c4b819 Fix #499: Add options to control file download behavior (PR #526) 2018-01-26 09:59:58 -05:00
Matt Harris
28dca8c647 Fix #325 - Add --x and --y window position flags (PR #515) 2017-12-26 13:00:39 -05:00
Matt Harris
eb08d85830 Fix #480 - Move all console.* to loglevel.* calls, eslint-fail on console.* (PR #507) 2017-12-19 08:42:06 -05:00
Paul-Louis NECH
2ca1b67265 Fix #496 - Recommend .png for --icon on all platforms, even macOS (PR #502) 2017-12-09 22:01:28 +02:00
omouren
1c8d04e532 Fix #486 : --tray flag crashes nativefied app under Windows (PR #495) 2017-11-25 23:27:19 -05:00
Ronan Jouchet
8963544afa
Fix #462 - When minimized to tray and single-instance, re-running the app should activate and focus it (#490) 2017-11-24 10:31:08 -05:00
Ronan Jouchet
2b377a7916
Fix #461 & address #375 in Docker: move Dockerfile to Debian and use wine32 (#488)
- Should address #375 (building a win app from linux) under Docker,
  thanks @dipenpatel235 for the suggestion to use `wine32` at
  https://github.com/jiahaog/nativefier/issues/375#issuecomment-304247033
- Regarding #461, Docker build seems fine but it was already
  fine for some time, not sure what happened.

Also clean up a bit the Dockerfile using suggestions from
[hadolint](https://github.com/lukasmartinelli/hadolint/).
2017-11-24 10:28:59 -05:00
Goh Jia Hao
db74db8911 7.5.4 2017-11-24 11:36:37 +08:00
Goh Jia Hao
09b236e8eb Update changelog for v7.5.2 2017-11-24 11:15:47 +08:00
Ronan Jouchet
6ac4f33661 Update Dockerfile to node8-alpine, fix typos 2017-11-16 14:08:30 -05:00
Ronan Jouchet
6fb3b92eb8
Upgrade dependencies and default to latest Electron 1.7.9 (PR #483)
* Update deps except eslint
* Update eslint and lint:fix (WIP, needs manual fixing for remaining 44 problems)
* Manually fix remaining eslint errors
* Document deprecation of `version-string` as of electron-packager 9.0.0
* Upgrade to Electron 1.7.9 (chrome-58, node-7.9.0, v8-5.8)
* npm: Disable generation of package-lock.json and gitignore it
  --Trying this, package-lock is a pain in PRs. May not be a good idea
  (obviously we lose deps pinning), will revert if necessary.--
* npm tasks: add dev-up-win for Windows developers,
  and e2e for end-to-end tests. Update docs.
* Move normalizeUrl test to a jest unit test, makes no sense to be in the mocha e2e tests
* Switch from babel-preset-es2015 to babel-preset-env,
  with target.node=4.0. Seem like it's today's most convenient
  way to support the latest ES and let babel transpile to what
  makes sense for our currently minimal node version
2017-11-14 08:05:01 -05:00
Goh Jia Hao
78bedc62ac 7.5.1 2017-11-13 00:19:46 +08:00
Goh Jia Hao
fef8ad2040 Remove node v9 from travis builds
We have to keep this until `npm install -g npm` supports node v9, see nodejs/node#16649
2017-11-12 17:47:32 +08:00
Goh Jia Hao
300bf28b51 Update changelog for v7.5.0 2017-11-12 01:14:58 +08:00
omouren
885790bc22 Fix #304 - Add --tray CLI flag to let app running in background on window close. Supports in-title counter. (#457) 2017-10-05 19:32:48 -04:00
Devin Buhl
4c581f9067 Fix #275 - Add HTTP --basic-auth-{username,password} CLI flags (#444) 2017-10-05 18:44:03 -04:00
Bob Roth
3e7cec2ecb Fix #438 - Add missing params to buildApp (#450) 2017-10-03 12:02:41 -04:00