Commit Graph

135 Commits

Author SHA1 Message Date
Feross Aboukhadijeh
bdf7110135 Move --squirrel-xxxx handling to new file 2016-03-25 03:33:39 -07:00
Feross Aboukhadijeh
9d35ece954 Windows/linux: Don't autohide top menu bar (it's important) 2016-03-25 03:33:39 -07:00
Feross Aboukhadijeh
00e4cc1864 Prevent --squirrel arguments from getting added as torrents 2016-03-25 03:33:39 -07:00
Feross Aboukhadijeh
aecead4a2d Windows: Create installer .exe file 2016-03-25 03:33:39 -07:00
Feross Aboukhadijeh
fd5f4dd139 Show, unminimize, and focus window after opening magnet link (fix #210)
Requires a workaround for this Electron issue:
https://github.com/atom/electron/issues/4338
2016-03-24 02:56:34 -07:00
Feross Aboukhadijeh
310eebce2a remove app update check interval
If there’s an update, this would redownload it every 6 hours until the
app is restarted. We could fix it, but let’s just simplify this:

App updates are checked for on app startup only.
2016-03-21 20:19:30 -07:00
Feross Aboukhadijeh
f0df9011df add log.js module for renderer logging 2016-03-21 20:19:30 -07:00
Feross Aboukhadijeh
e7e7afab3b implement barebones auto updater 2016-03-21 20:19:30 -07:00
Feross Aboukhadijeh
3ba4b563ac move crash reporter placeholder 2016-03-21 20:19:30 -07:00
DC
15e3e49aa4 Fix #176: close window on OSX 2016-03-21 04:06:54 -07:00
DC
fe943db448 Fix window bounds restore on OSx 2016-03-21 03:56:56 -07:00
DC
511c60671c Restore window size correctly
* Don't attempt to change size when maximized or fullscreen
* Bugfix: restore window size correctly when returning from a video so big that it that caused the window to maximize
2016-03-21 02:34:56 -07:00
grunjol
5a4684d3c6 add icon for linux desktop file 2016-03-20 12:47:55 -03:00
Feross Aboukhadijeh
f71cda65ef Prevent multiple instances of the app from running at the same time
Fix #167
2016-03-20 03:54:25 -07:00
Feross Aboukhadijeh
c11ebf30bd Only use 'app.asar.unpacked' path where it is needed 2016-03-20 03:30:39 -07:00
Feross Aboukhadijeh
9f46da5477 Linux: Register .torrent file/magnet link handlers 2016-03-20 03:19:32 -07:00
Feross Aboukhadijeh
5cb0e6940f register-handlers.js 2016-03-20 03:15:29 -07:00
Feross Aboukhadijeh
c4a74c526d tweak registerProtocolHandler API 2016-03-20 03:15:29 -07:00
Feross Aboukhadijeh
fb37b87297 set windows protocol/file icons 2016-03-20 01:10:41 -07:00
Feross Aboukhadijeh
1022d616d2 Unpack icon files so setting browserWindow.icon works 2016-03-20 01:10:41 -07:00
Feross Aboukhadijeh
c8bd39056c Register .torrent file hander on Windows 2016-03-19 23:12:58 -07:00
Feross Aboukhadijeh
29138fc83c add documentation for registerProtocolHandler 2016-03-19 20:32:19 -07:00
Feross Aboukhadijeh
765d3bde56 detect if app is running in production
If app is running in “production” (i.e. it has been packaged), then it
will be invoked with one less argument.

WebTorrent.exe arguments

vs.

electron.exe /path/to/app arguments

We need to detect this to correctly handle command line arguments.
2016-03-19 20:32:19 -07:00
Feross Aboukhadijeh
84a87dd1de log command line arguments 2016-03-19 20:32:19 -07:00
Feross Aboukhadijeh
81bb8eea7b do all logging in the renderer 2016-03-19 20:32:19 -07:00
Feross Aboukhadijeh
afe5151e28 Handle command line arguments 2016-03-19 20:32:19 -07:00
Feross Aboukhadijeh
e70e32c5f8 use process.execPath instead of app.getPath('exec')
They’re equivalent
2016-03-19 20:32:19 -07:00
Feross Aboukhadijeh
3d1fd56450 Use real path to WebTorrent.exe 2016-03-19 20:32:19 -07:00
Feross Aboukhadijeh
ae935af153 Windows: register protocol handler without needing Admin privledges 2016-03-19 20:32:18 -07:00
Feross Aboukhadijeh
2cc8ebc9f8 Windows: register protocol handler for magnet links 2016-03-19 20:32:18 -07:00
DC
381087208c Fix opening files and folders 2016-03-19 19:01:17 -07:00
Feross Aboukhadijeh
0f263b89e5 OS X: open magnet links in WebTorrent 2016-03-19 17:09:05 -07:00
Feross Aboukhadijeh
4f40e5d963 Fix Exception when dropping .torrent file onto Dock icon when app is closed
Fixes #154
2016-03-19 16:07:35 -07:00
Feross Aboukhadijeh
309e509a76 Dock icon should accept all file types (fix #156) 2016-03-19 02:48:45 -07:00
Nate Goldman
a1be66cb96 simplify power save block calls, fix #141 2016-03-14 11:38:59 -07:00
DC
8108c407d3 Torrent details
Show file list, open folder containing downloaded files, open individual files, play/pause individual videos
2016-03-14 09:18:20 -07:00
Nate Goldman
52fc2d88c9 Block "Power Saver" mode while video is playing
fix #106
2016-03-11 16:43:36 -08:00
Dan Flettre
b1678b71c6 ensure video is paused before hiding window 2016-03-11 01:10:39 -06:00
Feross Aboukhadijeh
d5c8df4f82 fix fullscreen / float on top menu item exception
Fixes #128
2016-03-10 19:24:59 -08:00
Feross Aboukhadijeh
3c17697aca Merge pull request #121 from feross/logo
Create WebTorrent app icon
2016-03-10 14:56:28 -08:00
Feross Aboukhadijeh
7c94c4166c Create WebTorrent app icon
For #120.
2016-03-10 00:09:21 -08:00
Feross Aboukhadijeh
4fef6d00a8 main modules use require() instead of arguments 2016-03-09 15:20:28 -08:00
Feross Aboukhadijeh
9dcc0522c7 Add Custom Dock Menu (OS X) (fix #113) 2016-03-09 15:17:22 -08:00
Feross Aboukhadijeh
713c87729a all main modules have init() function 2016-03-09 15:15:04 -08:00
Feross Aboukhadijeh
e7d837e813 shortcut order 2016-03-09 15:05:39 -08:00
DC
c176e3897a Add Torrent Link modal 2016-03-09 04:27:01 -08:00
Feross Aboukhadijeh
29298a1074 Register "media key" for play/pause 2016-03-09 03:08:21 -08:00
Feross Aboukhadijeh
a6e8a3462e don't use executeJavaScript() (fix for PR #107)
It’s not *that* much cleaner, but executeJavaScript() feels too much
like eval().

cc @flet
2016-03-09 02:38:59 -08:00
Feross Aboukhadijeh
944a47be72 allow the main process to dispatch any event to the renderer 2016-03-09 02:36:10 -08:00
Feross Aboukhadijeh
fe524f8432 Merge pull request #107 from Flet/pause-on-hide
dispatch a pause event before hiding window on darwin
2016-03-09 02:18:40 -08:00