File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22 "$schema" : " ../node_modules/@tauri-apps/cli/schema.json" ,
33 "productName" : " OpenTaiko Hub" ,
44 "identifier" : " com.opentaiko.hub" ,
5- "version" : " 0.1.10 " ,
5+ "version" : " 0.1.11 " ,
66 "build" : {
77 "beforeBuildCommand" : " npm run build" ,
88 "beforeDevCommand" : " npm run dev" ,
Original file line number Diff line number Diff line change 257257 let localFileName = (filePath .startsWith (songObj .tjaFolderPath + ' \\ ' ) || filePath .startsWith (songObj .tjaFolderPath + ' /' )) ?
258258 filePath .slice (songObj .tjaFolderPath .length + 1 )
259259 : filePath .split (" \\ " ).pop ();
260- let localFileFold = localFileName .replace (/ \\ [^ \\ ] * $ / g );
260+ let localFileFold = localFileName .replace (/ (?: ^ | \\ ) [^ \\ ] * $ / g, ' ' );
261261
262262 const tjaFileUrl = ` https://raw.githubusercontent.com/OpenTaiko/OpenTaiko-Soundtrack/main/${ filePath} ` ;
263263 const dlPath = await path .join (chartDownloadFolder, localFileName .replace (/ \\ / g , ' /' ));
264- const dlPathFold = await path .join (chartDownloadFolder, localFileFold .replace (/ \\ / g , ' /' ));
265264
266- let inner_fold_exists = await exists (dlPathFold);
267- if (! inner_fold_exists)
268- await mkdir (dlPathFold, {recursive: true });
265+ if (localFileFold) {
266+ const dlPathFold = await path .join (chartDownloadFolder, localFileFold .replace (/ \\ / g , ' /' ));
267+ let inner_fold_exists = await exists (dlPathFold);
268+ if (! inner_fold_exists)
269+ await mkdir (dlPathFold, {recursive: true });
270+ }
269271
270272 const success = await backoffDownload (
271273 tjaFileUrl,
You can’t perform that action at this time.
0 commit comments