Fixed folder recheck bug & back to node9 to avoid 2 bugs (ugh!)
This commit is contained in:
parent
9e320bf59e
commit
38021ccde5
|
@ -1,3 +1,3 @@
|
||||||
rmdir /s /q BUILD
|
rmdir /s /q BUILD
|
||||||
|
|
||||||
node_modules/.bin/pkg package.json --targets latest-macos-x64,latest-win-x86,latest-win-x64,latest-linux-x86,latest-linux-x64 --out-dir BUILD
|
node_modules/.bin/pkg package.json --targets node9-macos-x64,node9-win-x86,node9-win-x64,node9-linux-x86,node9-linux-x64 --out-dir BUILD
|
2
BUILD.sh
2
BUILD.sh
|
@ -60,7 +60,7 @@ fi
|
||||||
|
|
||||||
# If targets list is empty, use defaults
|
# If targets list is empty, use defaults
|
||||||
if [[ -z "$targets" ]]; then
|
if [[ -z "$targets" ]]; then
|
||||||
targets="latest-macos-x64,latest-win-x64,latest-win-x86,latest-linux-x64,latest-linux-x86"
|
targets="node9-macos-x64,node9-win-x64,node9-win-x86,node9-linux-x64,node9-linux-x86"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Package away
|
# Package away
|
||||||
|
|
|
@ -23,7 +23,7 @@ const flacMetadata = require('./libs/flac-metadata');
|
||||||
const inquirer = require('inquirer');
|
const inquirer = require('inquirer');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const stream = require('stream');
|
const stream = require('stream');
|
||||||
const Finder = require('fs-finder');
|
const Finder = require('fs-plus');
|
||||||
const nodePath = require('path');
|
const nodePath = require('path');
|
||||||
const memoryStats = require('./libs/node-memory-stats');
|
const memoryStats = require('./libs/node-memory-stats');
|
||||||
const commandLineArgs = require('command-line-args');
|
const commandLineArgs = require('command-line-args');
|
||||||
|
@ -1342,7 +1342,7 @@ function trackListDownload(trackList, albumInfos = {}) {
|
||||||
downloadStateInstance.add(trackInfos.SNG_ID, downloadingMessage);
|
downloadStateInstance.add(trackInfos.SNG_ID, downloadingMessage);
|
||||||
|
|
||||||
if (fs.existsSync(saveFileDir)) {
|
if (fs.existsSync(saveFileDir)) {
|
||||||
let files = Finder.from(saveFileDir).findFiles(saveFileName);
|
let files = Finder.listSync(saveFileDir + saveFileName);
|
||||||
|
|
||||||
if (0 < files.length) {
|
if (0 < files.length) {
|
||||||
addTrackToPlaylist(files[0], trackInfos);
|
addTrackToPlaylist(files[0], trackInfos);
|
||||||
|
|
|
@ -12,14 +12,14 @@
|
||||||
"url": "https://git.fuwafuwa.moe/SMLoadrDev/SMLoadr.git"
|
"url": "https://git.fuwafuwa.moe/SMLoadrDev/SMLoadr.git"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^12.0.0"
|
"node": ">=9.0.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"cache-manager": "^2.10.0",
|
"cache-manager": "^2.10.0",
|
||||||
"chalk": "^2.4.2",
|
"chalk": "^2.4.2",
|
||||||
"command-line-args": "^5.1.1",
|
"command-line-args": "^5.1.1",
|
||||||
"command-line-usage": "^5.0.5",
|
"command-line-usage": "^5.0.5",
|
||||||
"fs-finder": "^1.8.1",
|
"fs-plus": "^3.1.1",
|
||||||
"inquirer": "^6.5.2",
|
"inquirer": "^6.5.2",
|
||||||
"jsonfile": "^5.0.0",
|
"jsonfile": "^5.0.0",
|
||||||
"openurl": "^1.1.1",
|
"openurl": "^1.1.1",
|
||||||
|
@ -31,6 +31,6 @@
|
||||||
"winston": "^3.2.1"
|
"winston": "^3.2.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"pkg": "*"
|
"pkg": "4.3.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue