diff --git a/lib/gui/app/app.ts b/lib/gui/app/app.ts index 6b82224633..d9568cff22 100644 --- a/lib/gui/app/app.ts +++ b/lib/gui/app/app.ts @@ -138,15 +138,15 @@ function setDrives(drives: Dictionary) { // Spwaning the child process without privileges to get the drives list // TODO: clean up this mess of exports export let requestMetadata: any; -export let stopScanning: any; // start the api and spawn the child process startApiAndSpawnChild({ withPrivileges: false, -}).then(({ emit, registerHandler, terminateServer }) => { +}).then(({ emit, registerHandler }) => { // start scanning emit('scan'); + console.log('then we set requestMetadata and stopScanning'); // make the sourceMetada awaitable to be used on source selection requestMetadata = async (params: any): Promise => { emit('sourceMetadata', JSON.stringify(params)); @@ -158,8 +158,6 @@ startApiAndSpawnChild({ ); }; - stopScanning = stopScanning; - registerHandler('drives', (data: any) => { setDrives(JSON.parse(data)); }); diff --git a/lib/gui/app/components/source-selector/source-selector.tsx b/lib/gui/app/components/source-selector/source-selector.tsx index ddb45b7c9a..da22320cfe 100644 --- a/lib/gui/app/components/source-selector/source-selector.tsx +++ b/lib/gui/app/components/source-selector/source-selector.tsx @@ -423,7 +423,12 @@ export class SourceSelector extends React.Component< // this will send an event down the ipcMain asking for metadata // we'll get the response through an event - console.log('--> will request metadata'); + console.log( + '--> will request metadata', + selected, + SourceType, + auth, + ); metadata = await requestMetadata({ selected, SourceType, auth }); console.log('--> got metadata', metadata); diff --git a/pkg-sidecar.json b/pkg-sidecar.json index 13177aa0e2..5eb6fe498a 100644 --- a/pkg-sidecar.json +++ b/pkg-sidecar.json @@ -2,7 +2,9 @@ "assets": [ "node_modules/usb/**", "node_modules/lzma-native/**", - "node_modules/drivelist/build/Release/drivelist.node", - "node_modules/mountutils/Release/**" + "node_modules/drivelist/**", + "node_modules/mountutils/**", + "node_modules/winusb-driver-generator/**", + "node_modules/node-raspberrypi-usbboot/**" ] }