mirror of
https://github.com/rubickCenter/rubick
synced 2025-12-26 12:42:34 +08:00
feat: souport windows
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user