Commit Graph

39 Commits

Author SHA1 Message Date
Feross Aboukhadijeh
0df6198549 WebTorrent, LLC
What is WebTorrent, LLC?

WebTorrent, LLC is the legal entity that runs the WebTorrent project.
WebTorrent is still, and always will be, non-profit, open source, free
software.

There are no plans to make a profit from WebTorrent.
2016-05-19 16:43:51 -07:00
Feross Aboukhadijeh
80faba8234 Fix isProduction() detection
In the renderer process on OS X, config.IS_PRODUCTION was always true
because process.execPath is to "Electron Helper", so the detection
regex was being overly specific.
2016-05-13 13:29:25 -07:00
Feross Aboukhadijeh
ea1c66b3fc Reduce delayedInit to 3 seconds 2016-05-12 16:58:18 -07:00
Feross Aboukhadijeh
504aca747d main/menu.js: minor refactor
Just some code cleanup to make menu.js more internally consistent.

- Name the electron.dialog returned value `selectedPaths` which is more
accurate.

- Move the file menu into the `template` object, like the rest of the
menus. Then reach in afterwards for OS-specific tweaks.
2016-05-12 16:52:13 -07:00
Feross Aboukhadijeh
98e263e69a Remove path-exists
This package trivially wraps core node.js functionality. Let's do
without it.
2016-05-09 16:59:57 +02:00
Feross Aboukhadijeh
969c784df4 Windows Portable App (#417)
* packager: call callbacks consistently

Before this, the callbacks would not being called, which would lead to
an incomplete build on non-OS X platforms when trying to build all for
all platforms.

* packager: Always produce OS X update file regardless of --package option

This makes it consistent with how the windows build always produces the
.nupkg autoupdate files

* packager: fix duplicate npm install

Move "npm prune && npm dedupe" into the release script. Remove an extra
"npm install"

* Make Windows portable app

When a folder named "Portable Settings" exists in same folder as
WebTorrent.exe, then use it instead of the default application config
path.

Closes #358

* packager: remove redundant signing warning

* cross platform zip function

* Set config file path to match config.CONFIG_PATH

* portable app: make electron settings portable

* portable: fix poster/torrent paths

* use cross-zip

* portable app: default download folder inside 'Portable Settings'
2016-04-16 04:18:21 -07:00
Feross Aboukhadijeh
45f6cc5247 Preload sound files for instant playback (#374)
* rm dist at start of build

* renderer style

* preload sound files for instant playback

The first time a sound file is played, the Audio object is cached.

5s after startup, all sound files are automatically preloaded.
2016-04-10 16:46:46 -07:00
Feross Aboukhadijeh
8c2d49f029 Enforce minimimum window size when resizing player (#342)
For audio-only .mov files, which are 0x0.

Closes #340
2016-04-07 21:27:25 -07:00
DC
5abf421f11 Auto updater: tell server which platform we're on 2016-04-07 04:35:23 -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
663e607797 Windows: Add valid iconUrl – for building on non-Windows platforms 2016-04-04 18:42:46 -07:00
Feross Aboukhadijeh
82c9e8f8ab Windows packager: use Github URL for remoteRelease 2016-04-04 18:23:27 -07:00
Feross Aboukhadijeh
3d8429fb12 New update URL: /desktop/update 2016-04-04 18:22:58 -07:00
Feross Aboukhadijeh
127b1577ac check for updates 5 seconds after startup 2016-03-27 03:30:29 -07:00
Feross Aboukhadijeh
b263a69716 Windows/Linux: Add About Window (#220) 2016-03-26 23:43:24 -07:00
DC
3928564314 Add (BETA) to window title
Also fix a bug: fix relative paths to the default torrents.
2016-03-26 18:11:40 -07:00
Feross Aboukhadijeh
aecead4a2d Windows: Create installer .exe file 2016-03-25 03:33:39 -07:00
Feross Aboukhadijeh
4895fb930c Sounds: subtler sounds
This change sets different sounds to different volume levels, and
replaces the Play sound with one that sounds different than the Add
sound.
2016-03-23 20:44:40 -07:00
Feross Aboukhadijeh
10e9b36aea AUTO_UPDATE_CHECK_STARTUP_DELAY = 10 seconds 2016-03-21 21:45:27 -07:00
Feross Aboukhadijeh
02ad7f947d OS X: Sign apps, build .DMG and .ZIP assets 2016-03-21 20:21:36 -07:00
Feross Aboukhadijeh
2b2b133db1 config: put APP_NAME into a variable 2016-03-21 20:21:36 -07:00
Feross Aboukhadijeh
ce6d0e3255 add config.ROOT_PATH 2016-03-21 20:21:36 -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
e7e7afab3b implement barebones auto updater 2016-03-21 20:19:30 -07:00
Feross Aboukhadijeh
8ae727db03 rely on electron's automatic ASAR handling 2016-03-20 03:29:02 -07:00
Feross Aboukhadijeh
9f46da5477 Linux: Register .torrent file/magnet link handlers 2016-03-20 03:19:32 -07:00
Feross Aboukhadijeh
45b36fb7a1 config.COPYRIGHT -> APP_COPYRIGHT 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
f1c27f2a69 config.COPYRIGHT 2016-03-20 01:10:41 -07:00
DC
acc2b03d14 Save torrent files after resolving a magnet link 2016-03-19 21:42:37 -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
75841afcb5 ensure Posters/ folder exists 2016-03-19 16:30:36 -07:00
Feross Aboukhadijeh
684fa7dee7 Write poster images into "$CONFIG_PATH/posters" (fix #155) 2016-03-19 16:19:15 -07:00
Feross Aboukhadijeh
f21d7dd732 Move webtorrent icons into static/ 2016-03-10 19:11:49 -08:00
Feross Aboukhadijeh
7282865bc7 restructure folders 2016-03-10 14:52:49 -08:00
Feross Aboukhadijeh
7c94c4166c Create WebTorrent app icon
For #120.
2016-03-10 00:09:21 -08:00
Feross Aboukhadijeh
5b2ecab5ef UX: Add interface sounds 2016-03-09 01:54:52 -08:00
Feross Aboukhadijeh
2a423a8cb3 Use config.APP_NAME throughout 2016-03-07 15:48:22 -08:00