-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
P2P updater #473
P2P updater #473
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,6 +57,6 @@ var | |
|
||
// Torrent engines | ||
peerflix = require('peerflix'), | ||
|
||
WebTorrent = require('webtorrent'), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we don't need this as a global, please keep it in updater.js There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we can change that when it gets merged. |
||
// NodeJS | ||
child = require('child_process'); |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,6 +149,7 @@ Settings.tmpLocation = path.join(os.tmpDir(), Settings.projectName); | |
Settings.databaseLocation = path.join(data_path, 'data'); | ||
Settings.deleteTmpOnClose = true; | ||
Settings.automaticUpdating = true; | ||
Settings.UpdateSeed = true; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. either There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Settings.seedUpdate is a parameter on setting container , There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it's just a name nitpick 'seedUpdate' isn't really clear to me. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. how windowsy of you There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. naming convention is bad, you should use seedUpdate or redistributeUpdater, but don't start with an uppercase :) |
||
Settings.events = true; | ||
Settings.minimizeToTray = false; | ||
Settings.bigPicture = false; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -556,8 +556,12 @@ | |
<label class="settings-label" for="cb5"><%= i18n.__("Activate automatic updating") %></label> | ||
</span> | ||
<span> | ||
<input class="settings-checkbox" name="events" id="cb6" type="checkbox" <%=(Settings.events? "checked='checked'":"")%>> | ||
<label class="settings-label" for="cb6"><%= i18n.__("Celebrate various events") %></label> | ||
<input class="settings-checkbox" name="UpdateSeed" id="cb6" type="checkbox" <%=(Settings.UpdateSeed? "checked='checked'":"")%>> | ||
<label class="settings-label" for="cb6"><%= i18n.__("Activate Update Seeding") %></label> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's personnal and doesn't really impair the merge of this, but I don't like the string. For starter, you don't need the word "activate" in it, the checkbox says that already.
|
||
</span> | ||
<span> | ||
<input class="settings-checkbox" name="events" id="cb7" type="checkbox" <%=(Settings.events? "checked='checked'":"")%>> | ||
<label class="settings-label" for="cb7"><%= i18n.__("Celebrate various events") %></label> | ||
</span> | ||
<span> | ||
<input class="settings-checkbox" name="minimizeToTray" id="minimizeToTray" type="checkbox" <%=(Settings.minimizeToTray? "checked='checked'":"")%>> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better use 0.x.x or ^0.97.2