Skip to content

Commit

Permalink
patch: maybe fix deps
Browse files Browse the repository at this point in the history
  • Loading branch information
aethernet committed Sep 29, 2023
1 parent e8184e5 commit 6288c1e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
6 changes: 2 additions & 4 deletions lib/gui/app/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,15 @@ function setDrives(drives: Dictionary<DrivelistDrive>) {
// 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<SourceMetadata> => {
emit('sourceMetadata', JSON.stringify(params));
Expand All @@ -158,8 +158,6 @@ startApiAndSpawnChild({
);
};

stopScanning = stopScanning;

registerHandler('drives', (data: any) => {
setDrives(JSON.parse(data));
});
Expand Down
7 changes: 6 additions & 1 deletion lib/gui/app/components/source-selector/source-selector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
6 changes: 4 additions & 2 deletions pkg-sidecar.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/**"
]
}

0 comments on commit 6288c1e

Please sign in to comment.