feat: souport windows

This commit is contained in:
muwoo
2021-12-21 18:03:58 +08:00
parent 571ff12730
commit 3ba4be2e4a
6 changed files with 23 additions and 3 deletions

View File

@@ -17,6 +17,8 @@ export default function getCopyFiles(): Array<any> | null {
return null;
}
} else if (commonConst.windows()) {
const filePath = clipboard.readBuffer('FileNameW').toString('ucs2').replace(RegExp(String.fromCharCode(0), 'g'), '');
fileInfo = [filePath];
// todo
} else {
if (!commonConst.linux()) return null;