mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 07:17:18 +00:00
Merge pull request #2140 from resin-io/fix-usbboot-appimages
fix: use correct usbbot blob path in appimages
This commit is contained in:
commit
ce71b81dbe
@ -23,13 +23,16 @@ const path = require('path')
|
||||
const settings = require('../models/settings')
|
||||
const SDK = require('../../../sdk')
|
||||
const permissions = require('../../../shared/permissions')
|
||||
const packageJSON = require('../../../../package.json')
|
||||
|
||||
/**
|
||||
* @summary The Etcher "blobs" directory path
|
||||
* @type {String}
|
||||
* @constant
|
||||
*/
|
||||
const BLOBS_DIRECTORY = path.join(__dirname, '..', '..', '..', 'blobs')
|
||||
const BLOBS_DIRECTORY = packageJSON.packageType === 'AppImage'
|
||||
? 'bin/resources/app.asar/lib/blobs'
|
||||
: path.join(__dirname, '..', '..', '..', 'blobs')
|
||||
|
||||
const scanner = SDK.createScanner({
|
||||
blockdevice: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user