feat: add mac import option and help text

This commit is contained in:
鲁树人
2023-06-13 00:26:30 +01:00
parent f2c93c9f85
commit 88cf2f972b
10 changed files with 273 additions and 46 deletions

View File

@@ -1,3 +1,4 @@
import { getFileName } from './pathHelper';
import { SQLDatabase, SQLStatic, loadSQL } from './sqlite';
export interface QMAndroidKeyEntry {
@@ -34,7 +35,7 @@ export class DatabaseKeyExtractor {
const keys = db.exec('select file_path, ekey from `audio_file_ekey_table`')[0].values;
return keys.map(([path, key]) => ({
// strip dir name
name: String(path).replace(/.+\//, ''),
name: getFileName(String(path)),
key: String(key),
}));
} finally {