mirror of
https://github.com/revanced/revanced-cli.git
synced 2024-11-18 17:49:23 +01:00
fix: wrong separator when using ZipFileSystemUtils
This commit is contained in:
parent
9f91f63220
commit
20e15defc2
@ -36,7 +36,7 @@ internal object Patcher {
|
||||
logger.info("Writing resources...")
|
||||
|
||||
ZipFileSystemUtils(result.resourceFile!!).use { resourceFileSystem ->
|
||||
val resourceFiles = resourceFileSystem.getFile(File.pathSeparator)
|
||||
val resourceFiles = resourceFileSystem.getFile(File.separator)
|
||||
outputFileSystem.writePathRecursively(resourceFiles)
|
||||
}
|
||||
}
|
||||
|
@ -56,6 +56,7 @@ internal class ZipFileSystemUtils(
|
||||
|
||||
private fun Path.getRelativePath(path: Path): Path = zipFileSystem.getPath(path.relativize(this).toString())
|
||||
|
||||
// TODO: figure out why the file system is uncompressed by default and how to fix it
|
||||
internal fun uncompress(vararg paths: String) =
|
||||
paths.forEach { Files.setAttribute(zipFileSystem.getPath(it), "zip:method", ZipEntry.STORED) }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user