Skip to content

Commit

Permalink
upgrade: drivelist to v5.0.25
Browse files Browse the repository at this point in the history
This version contains various improvements on the drive detection system
mainly on Windows. The improvements can be summarized as follows:

- Drivelist no longer spawns a .bat script to perform its job. This
  means that a lot of spawning related issues are now fixed

- Drivelist doesn't fetch drive sizes from WMI anymore, which was known
  to incorrectly report a very small size for certain drives, causing
  the famous "0.0 GB" Windows issues (see
  balena-io-modules/drivelist#142)

- Cleanup temporary scripts after execution

Change-Type: patch
Changelog-Entry: Implement Windows drive detection using C++
Changelog-Entry: Fix various Windows `.bat` spawning issues
Changelog-Entry: Fix 0.0 GB Windows drive detection issues
Changelog-Entry: Cleanup drive detection temporary scripts created for other operating systems
Fixes: #1108
Fixes: #1054
Fixes: #995
Fixes: #1483
Fixes: #1142
Fixes: #1571
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
  • Loading branch information
jviotti committed Jul 11, 2017
1 parent fd109b5 commit c2243d8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
4 changes: 4 additions & 0 deletions lib/gui/etcher.js
Expand Up @@ -22,6 +22,10 @@ const path = require('path');
const EXIT_CODES = require('../shared/exit-codes');
let mainWindow = null;

// Enable drivelist debugging information
// See https://github.com/resin-io-modules/drivelist
process.env.DRIVELIST_DEBUG = 1;

electron.app.on('window-all-closed', electron.app.quit);

// Sending a `SIGINT` (e.g: Ctrl-C) to an Electron app that registers
Expand Down
16 changes: 8 additions & 8 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -44,7 +44,7 @@
"bootstrap-sass": "3.3.6",
"chalk": "1.1.3",
"command-join": "2.0.0",
"drivelist": "5.0.22",
"drivelist": "5.0.25",
"electron-is-running-in-asar": "1.0.0",
"etcher-image-write": "9.1.3",
"file-type": "4.1.0",
Expand Down
4 changes: 2 additions & 2 deletions scripts/build/dependencies-npm.sh
Expand Up @@ -99,9 +99,9 @@ function run_install() {

# When changing between target architectures, rebuild all dependencies,
# since compiled add-ons will not work otherwise.
npm rebuild --silent > /dev/null
npm rebuild > /dev/null

npm install --silent $INSTALL_OPTS > /dev/null
npm install $INSTALL_OPTS > /dev/null

if [ "$ARGV_PRODUCTION" == "true" ]; then

Expand Down

0 comments on commit c2243d8

Please sign in to comment.