mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-23 11:16:39 +00:00
Merge pull request #2214 from resin-io/fix-usbboot-macos
fix(drive-scanner): Fix usbboot blob path when bundled
This commit is contained in:
commit
c5df8742c5
@ -30,9 +30,14 @@ const packageJSON = require('../../../../package.json')
|
|||||||
* @type {String}
|
* @type {String}
|
||||||
* @constant
|
* @constant
|
||||||
*/
|
*/
|
||||||
const BLOBS_DIRECTORY = packageJSON.packageType === 'AppImage'
|
let BLOBS_DIRECTORY = path.join(__dirname, '..', '..', '..', 'blobs')
|
||||||
? 'bin/resources/app.asar/lib/blobs'
|
|
||||||
: path.join(__dirname, '..', '..', '..', 'blobs')
|
// FIXME: When bundled & packaged, the blob path differs
|
||||||
|
if (packageJSON.packageType !== 'local') {
|
||||||
|
BLOBS_DIRECTORY = packageJSON.packageType === 'AppImage'
|
||||||
|
? 'bin/resources/app.asar/lib/blobs'
|
||||||
|
: path.join(__dirname, '..', '..', 'blobs')
|
||||||
|
}
|
||||||
|
|
||||||
const scanner = SDK.createScanner({
|
const scanner = SDK.createScanner({
|
||||||
blockdevice: {
|
blockdevice: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user