Feross Aboukhadijeh
c26b6713de
Ignore OS X -psn_xxxx command line argument
...
Fix #214
2016-04-05 22:21:22 -07:00
DC
db9e3e90c5
WebTorrent process
...
* Separate hidden window, with its own renderer process, for WebTorrent
(Must be a window. You cannot run WebRTC at all in a Web Worker, and you can't
run it well in a node process like the electron main process.)
* Disabled the create-torrent-modal for now. That gives us a consistent UX
regardless of whether the user dragged files or folders onto the app or opened
the Create New Torrent menu item.
* Main process routes all messages between the main and webtorrent windows.
* The renderer index.js is smaller now (but still too big), with the WebTorrent
interface moved to webtorrent.js / it's own process.
* The UI should be faster now, and should not lag under load.
2016-04-05 15:36:26 -07:00
Feross Aboukhadijeh
76487326f1
Move crash report URL to config.js
2016-04-04 23:44:51 -07:00
Feross Aboukhadijeh
7c38f374f3
Setup crash reporter
2016-04-04 23:10:47 -07:00
Feross Aboukhadijeh
7970066ccd
Uninstall handlers on Windows uninstall/npm run clean
2016-04-04 20:27:48 -07:00
Feross Aboukhadijeh
ccaf0de63d
Windows/Linux: Fix broken Quit option in Tray icon
...
This also cleans up the code by handling quit in the same way for all
platforms, removing the special case in tray.js for darwin.
We already have a 'before-quit' handler in main/index.js, so this is
now handled there :)
2016-04-04 13:40:27 -07:00
Feross Aboukhadijeh
d0515bb2a2
Windows: register protocol handlers on startup
...
Just like other OSes. There's no reason for there to be a difference.
2016-04-04 04:43:27 -07:00
DC
39a6832631
Minimize to tray
...
Fixes #150
2016-03-29 03:51:15 -07:00
Feross Aboukhadijeh
b263a69716
Windows/Linux: Add About Window ( #220 )
2016-03-26 23:43:24 -07:00
grunjol
4673354703
fixes #116 Add Unity launcher icons
2016-03-25 16:31:12 -03:00
Feross Aboukhadijeh
447413e4b9
delete commented out code
2016-03-25 03:40:18 -07:00
Feross Aboukhadijeh
c788b3358a
Windows: fix magnet link handling
2016-03-25 03:33:39 -07:00
Feross Aboukhadijeh
8bba565609
Windows: create desktop/start menu shortcuts on install/update
2016-03-25 03:33:39 -07:00
Feross Aboukhadijeh
bdf7110135
Move --squirrel-xxxx handling to new file
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
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
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
9f46da5477
Linux: Register .torrent file/magnet link handlers
2016-03-20 03:19:32 -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
afe5151e28
Handle command line arguments
2016-03-19 20:32:19 -07:00
Feross Aboukhadijeh
2cc8ebc9f8
Windows: register protocol handler for magnet links
2016-03-19 20:32:18 -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
Feross Aboukhadijeh
4fef6d00a8
main modules use require() instead of arguments
2016-03-09 15:20:28 -08:00
Feross Aboukhadijeh
713c87729a
all main modules have init() function
2016-03-09 15:15:04 -08:00
Feross Aboukhadijeh
29298a1074
Register "media key" for play/pause
2016-03-09 03:08:21 -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
7eeda57b57
Add alternate fullscreen shortcut ⌘+Shift+F ( fix #26 )
...
Uses https://npmjs.com/package/electron-localshortcut to workaround a
bug in Electron (https://github.com/atom/electron/issues/1334 ).
We can remove `electron-localshortcut` once that bug is fixed.
2016-03-05 17:25:22 -08:00
Feross Aboukhadijeh
82fc6cabe8
move config.startTime to app.startTime
...
This also captures the true start time since it runs before any
require() calls, so the time to require() will be taken into account.
2016-03-04 16:10:14 -08:00
Nate Goldman
9a0f361e14
separation of concerns
2016-03-04 13:14:22 -08:00
DC
52e433fd38
Scrubbing works
2016-03-04 04:33:41 -08:00
Feross Aboukhadijeh
0c0d324cf4
remove unused state
2016-03-04 01:26:12 -08:00
Feross Aboukhadijeh
da3500d392
simplify deleteTorrent()
2016-03-04 01:26:04 -08:00
Feross Aboukhadijeh
3f60f1c7f2
only produce poster image from valid file types
2016-03-04 01:13:25 -08:00
Feross Aboukhadijeh
75a33228e8
fix back button exception
2016-03-04 01:13:24 -08:00
DC
28948e0dbc
Custom video controls + button to delete torrents
...
Also:
* Clean up the state object a bit
* Simplify, factor out torrent-list.js
2016-03-04 00:48:19 -08:00
Feross Aboukhadijeh
d72999df57
move more state into state.view
2016-03-03 17:19:31 -08:00
Feross Aboukhadijeh
68824b40dd
move dock state to renderer process
2016-03-03 16:44:19 -08:00
Feross Aboukhadijeh
36b242cc72
fix: maintain correct aspect ration when video is larger than screen
2016-03-03 16:04:00 -08:00
Feross Aboukhadijeh
2b18821416
dock: inc badge when torrent completes
2016-03-03 15:52:42 -08:00
Feross Aboukhadijeh
5820546dc4
dock: only show progress when active torrents exist
2016-03-03 15:44:21 -08:00
Feross Aboukhadijeh
8041e5faa3
no TURN server
2016-03-03 15:43:41 -08:00
Feross Aboukhadijeh
bf1a0bf376
regular update -> 1000ms
2016-03-03 13:53:04 -08:00
Feross Aboukhadijeh
a744b1ee42
throttled updates -> 1000ms
2016-03-03 13:52:51 -08:00