fix: Use cache directory for the last patched app

This should hopefully solve the issue where it can't write the patched app for some reason
This commit is contained in:
Benjamin Halko 2024-11-30 13:52:46 -08:00
parent a5c3aa3744
commit 5cc449d4fb

View File

@ -367,7 +367,7 @@ class ManagerAPI {
File outFile,
) async {
deleteLastPatchedApp();
final Directory appCache = await getApplicationSupportDirectory();
final Directory appCache = await getApplicationCacheDirectory();
app.patchedFilePath =
outFile.copySync('${appCache.path}/lastPatchedApp.apk').path;
app.fileSize = outFile.lengthSync();