From 219b977928a338972d838ffa511113e53e23ef48 Mon Sep 17 00:00:00 2001 From: GramingFoxTeam Date: Fri, 12 Aug 2022 14:33:56 +0300 Subject: [PATCH] Fix typo, fix deprecation warning --- utils/{FileDownlader.js => FileDownloader.js} | 0 utils/checkJDKandAapt2.js | 2 +- utils/downloadApp.js | 2 +- wsEvents/PatchApp.js | 2 +- wsEvents/UpdateFiles.js | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename utils/{FileDownlader.js => FileDownloader.js} (100%) diff --git a/utils/FileDownlader.js b/utils/FileDownloader.js similarity index 100% rename from utils/FileDownlader.js rename to utils/FileDownloader.js diff --git a/utils/checkJDKandAapt2.js b/utils/checkJDKandAapt2.js index 6997c742..0a114fe3 100644 --- a/utils/checkJDKandAapt2.js +++ b/utils/checkJDKandAapt2.js @@ -1,6 +1,6 @@ const { promisify } = require('util'); const { exec } = require('child_process'); -const { dloadFromURL } = require('./FileDownlader.js'); +const { dloadFromURL } = require('./FileDownloader.js'); const os = require('os'); const fs = require('fs'); const actualExec = promisify(exec); diff --git a/utils/downloadApp.js b/utils/downloadApp.js index 0d30136d..6db9f65b 100644 --- a/utils/downloadApp.js +++ b/utils/downloadApp.js @@ -1,6 +1,6 @@ const fetchURL = require('node-fetch'); const { load } = require('cheerio'); -const { dloadFromURL } = require('../utils/FileDownlader.js'); +const { dloadFromURL } = require('./FileDownloader.js'); module.exports = async function (ws) { const { version, arch } = global.apkInfo; diff --git a/wsEvents/PatchApp.js b/wsEvents/PatchApp.js index 83726cc2..effabcdb 100644 --- a/wsEvents/PatchApp.js +++ b/wsEvents/PatchApp.js @@ -29,7 +29,7 @@ async function mount (ws) { } async function afterBuild (ws) { - fs.rmdirSync('./revanced-cache', { recursive: true, force: true }); + fs.rmSync('./revanced-cache', { recursive: true, force: true }); outputName(); fs.renameSync('./revanced/revanced.apk', `./revanced/${global.outputName}`); if (!global.jarNames.isRooted && os.platform() === 'android') { diff --git a/wsEvents/UpdateFiles.js b/wsEvents/UpdateFiles.js index e14704e8..050e744e 100644 --- a/wsEvents/UpdateFiles.js +++ b/wsEvents/UpdateFiles.js @@ -1,5 +1,5 @@ const fs = require('fs'); -const { downloadFiles } = require('../utils/FileDownlader.js'); +const { downloadFiles } = require('../utils/FileDownloader.js'); const checkJDKandAapt2 = require('../utils/checkJDKandAapt2.js'); const checkJDkAndADB = require('../utils/checkJDKAndADB.js'); const os = require('os');