mirror of
https://github.com/litruv/AudioSort.git
synced 2026-07-24 02:36:01 +10:00
- Updated package.json to include the UCS.csv file under the 'data' directory instead of the root.
- Modified MainApp.ts to resolve the path for UCS.csv from the 'data' directory. - Deleted the unused test.wav file to clean up the repository.
This commit is contained in:
14
README.md
14
README.md
@@ -129,8 +129,8 @@ AudioSort/
|
||||
│ │ └── hooks/ # Custom React hooks
|
||||
│ ├── preload/ # Electron preload scripts
|
||||
│ └── shared/ # Shared types and IPC definitions
|
||||
├── data/ # User data directory (created at runtime)
|
||||
├── UCS.csv # Universal Category System catalog
|
||||
├── data/
|
||||
│ └── UCS.csv # Universal Category System catalog
|
||||
└── repoimages/ # Documentation assets
|
||||
```
|
||||
|
||||
@@ -141,21 +141,11 @@ AudioSort/
|
||||
npm run dev # Start development server with hot reload
|
||||
npm run build # Build renderer and main process
|
||||
npm run lint # Type-check with TypeScript
|
||||
npm run test # Run test suite
|
||||
npm run pack # Package without installer
|
||||
npm run dist # Create distributable
|
||||
npm run dist:win # Create Windows installer
|
||||
```
|
||||
|
||||
### Testing
|
||||
```bash
|
||||
npm test # Run all tests
|
||||
npm run test:database # Database service tests
|
||||
npm run test:library # Library service tests
|
||||
npm run test:search # Search service tests
|
||||
npm run test:tag # Tag service tests
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
||||
### Build Configuration
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
"productName": "AudioSort",
|
||||
"files": [
|
||||
"dist/**/*",
|
||||
"UCS.csv"
|
||||
"data/**/*"
|
||||
],
|
||||
"directories": {
|
||||
"output": "release"
|
||||
@@ -63,8 +63,8 @@
|
||||
},
|
||||
"extraResources": [
|
||||
{
|
||||
"from": "UCS.csv",
|
||||
"to": "UCS.csv"
|
||||
"from": "data/UCS.csv",
|
||||
"to": "data/UCS.csv"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ export class MainApp {
|
||||
this.searchService
|
||||
);
|
||||
|
||||
const catalogPath = this.resolveResourcePath('UCS.csv');
|
||||
const catalogPath = this.resolveResourcePath(path.join('data', 'UCS.csv'));
|
||||
await this.libraryService.ensureCategoriesLoaded(catalogPath);
|
||||
await this.libraryService.scanLibrary();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user