mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-05-25 11:02:13 +02:00
fix: Fix multiple APK shares
This commit is contained in:
parent
2f14746124
commit
9405334a7d
@ -199,10 +199,9 @@ class PatcherAPI {
|
|||||||
String prefix = appName.toLowerCase().replaceAll(' ', '-');
|
String prefix = appName.toLowerCase().replaceAll(' ', '-');
|
||||||
String newName = '$prefix-revanced_v$version.apk';
|
String newName = '$prefix-revanced_v$version.apk';
|
||||||
int lastSeparator = _outFile!.path.lastIndexOf('/');
|
int lastSeparator = _outFile!.path.lastIndexOf('/');
|
||||||
File share = _outFile!.renameSync(
|
String newPath = _outFile!.path.substring(0, lastSeparator + 1) + newName;
|
||||||
_outFile!.path.substring(0, lastSeparator + 1) + newName,
|
File shareFile = _outFile!.copySync(newPath);
|
||||||
);
|
ShareExtend.share(shareFile.path, 'file');
|
||||||
ShareExtend.share(share.path, 'file');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user