Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9d3e26f15a | ||
|
|
8a95895254 | ||
|
|
5d71f9e9c6 | ||
|
|
5d410457ce | ||
|
|
c6cd21b8ff | ||
|
|
2235b2fa82 |
11
CHANGELOG.md
11
CHANGELOG.md
@@ -1,5 +1,16 @@
|
|||||||
# WebTorrent Desktop Version History
|
# WebTorrent Desktop Version History
|
||||||
|
|
||||||
|
## v0.7.1 - 2016-06-02
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- Change "Step Forward" keyboard shortcut to `Alt+Left`
|
||||||
|
- Change "Step Backward" keyboard shortcut to to `Alt+Right`
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- First time startup bug -- invalid torrent/poster paths
|
||||||
|
|
||||||
## v0.7.0 - 2016-06-02
|
## v0.7.0 - 2016-06-02
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -92,6 +92,10 @@ function getDefaultDownloadPath () {
|
|||||||
return ''
|
return ''
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isPortable()) {
|
||||||
|
return path.join(getConfigPath(), 'Downloads')
|
||||||
|
}
|
||||||
|
|
||||||
var electron = require('electron')
|
var electron = require('electron')
|
||||||
|
|
||||||
return process.type === 'renderer'
|
return process.type === 'renderer'
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ function init () {
|
|||||||
resizable: false,
|
resizable: false,
|
||||||
show: false,
|
show: false,
|
||||||
skipTaskbar: true,
|
skipTaskbar: true,
|
||||||
|
title: 'About ' + config.APP_WINDOW_TITLE,
|
||||||
useContentSize: true,
|
useContentSize: true,
|
||||||
width: 300
|
width: 300
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "webtorrent-desktop",
|
"name": "webtorrent-desktop",
|
||||||
"description": "WebTorrent, the streaming torrent client. For OS X, Windows, and Linux.",
|
"description": "WebTorrent, the streaming torrent client. For OS X, Windows, and Linux.",
|
||||||
"version": "0.7.1",
|
"version": "0.7.2",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "WebTorrent, LLC",
|
"name": "WebTorrent, LLC",
|
||||||
"email": "feross@feross.org",
|
"email": "feross@feross.org",
|
||||||
|
|||||||
@@ -18,25 +18,24 @@ function run (state) {
|
|||||||
var version = state.saved.version
|
var version = state.saved.version
|
||||||
|
|
||||||
if (semver.lt(version, '0.7.0')) {
|
if (semver.lt(version, '0.7.0')) {
|
||||||
migrate_0_7_0(state)
|
migrate_0_7_0(state.saved)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Future migrations...
|
if (semver.lt(version, '0.7.2')) {
|
||||||
// if (semver.lt(version, '0.8.0')) {
|
migrate_0_7_2(state.saved)
|
||||||
// migrate_0_8_0(state)
|
}
|
||||||
// }
|
|
||||||
|
|
||||||
// Config is now on the new version
|
// Config is now on the new version
|
||||||
state.saved.version = config.APP_VERSION
|
state.saved.version = config.APP_VERSION
|
||||||
}
|
}
|
||||||
|
|
||||||
function migrate_0_7_0 (state) {
|
function migrate_0_7_0 (saved) {
|
||||||
console.log('migrate to 0.7.0')
|
console.log('migrate to 0.7.0')
|
||||||
|
|
||||||
var fs = require('fs-extra')
|
var fs = require('fs-extra')
|
||||||
var path = require('path')
|
var path = require('path')
|
||||||
|
|
||||||
state.saved.torrents.forEach(function (ts) {
|
saved.torrents.forEach(function (ts) {
|
||||||
var infoHash = ts.infoHash
|
var infoHash = ts.infoHash
|
||||||
|
|
||||||
// Replace torrentPath with torrentFileName
|
// Replace torrentPath with torrentFileName
|
||||||
@@ -86,3 +85,11 @@ function migrate_0_7_0 (state) {
|
|||||||
delete ts.fileModtimes
|
delete ts.fileModtimes
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function migrate_0_7_2 (saved) {
|
||||||
|
if (!saved.prefs) {
|
||||||
|
saved.prefs = {
|
||||||
|
downloadPath: config.DEFAULT_DOWNLOAD_PATH
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -100,9 +100,7 @@ function setupSavedState (cb) {
|
|||||||
|
|
||||||
var saved = {
|
var saved = {
|
||||||
prefs: {
|
prefs: {
|
||||||
downloadPath: config.IS_PORTABLE
|
downloadPath: config.DEFAULT_DOWNLOAD_PATH
|
||||||
? path.join(config.CONFIG_PATH, 'Downloads')
|
|
||||||
: config.DEFAULT_DOWNLOAD_PATH
|
|
||||||
},
|
},
|
||||||
torrents: config.DEFAULT_TORRENTS.map(createTorrentObject),
|
torrents: config.DEFAULT_TORRENTS.map(createTorrentObject),
|
||||||
version: config.APP_VERSION /* make sure we can upgrade gracefully later */
|
version: config.APP_VERSION /* make sure we can upgrade gracefully later */
|
||||||
|
|||||||
Reference in New Issue
Block a user