* feat: show udev rules on missing device screen * delete MissingDeviceComponent * feat: change privilege and message device screen texts * feat: change message device screen texts * fix: load config from device * fix: load config when hasPermission = true * fix: load app start info after set permission rules * fix: action dispatch * fix: load config from device when UdevRulesInfo.Ok * fix: load config from device when 0 device available * feat: add extra space between the "old udev rule" and permission button
28 lines
515 B
JavaScript
28 lines
515 B
JavaScript
const fse = require('fs-extra');
|
|
const path = require('path');
|
|
|
|
const copyOptions = {
|
|
overwrite: true,
|
|
recursive: true
|
|
};
|
|
|
|
const promises = [];
|
|
|
|
promises.push(
|
|
fse.copy(
|
|
path.join(__dirname, '../packages/usb/blhost'),
|
|
path.join(__dirname, '../tmp/packages/blhost'),
|
|
copyOptions)
|
|
);
|
|
|
|
promises.push(
|
|
fse.copy(
|
|
path.join(__dirname, '../rules'),
|
|
path.join(__dirname, '../tmp/rules'),
|
|
copyOptions)
|
|
);
|
|
|
|
Promise
|
|
.all(promises)
|
|
.catch(console.error);
|