mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-18 20:36:04 +00:00
Build and test on Windows: LF session scripts, '/' in relative paths (#552)
fix: build and test on Windows - .gitattributes keeps the session's scripts LF under core.autocrlf=true; CRLF scripts made every session exit with status 2. - runtime_inputs.py and the scrub record / log zip use '/' in relative paths, which Windows reported with '\' (runtime inputs never matched). - The read-only-folder scrub test is skipped on Windows, which still creates files in a read-only directory. Co-authored-by: xXJsonDeruloXx <danielhimebauch@gmail.com>
This commit is contained in:
1 parent
9e1b3c1ac1
commit
60caa85353
5 files changed
+7
-4
No files matched your search
@@ -119,7 +119,7 @@ object SessionArtifacts {
|
||||
val lines = StringBuilder("rules ${LogRedactor.RULES_VERSION}\n")
|
||||
record.files.forEach { (f, s) ->
|
||||
lines.append(s.length).append('\t').append(s.modified).append('\t')
|
||||
.append(f.relativeTo(dir).path).append('\n')
|
||||
.append(f.relativeTo(dir).invariantSeparatorsPath).append('\n')
|
||||
}
|
||||
tree.writeText(lines.toString())
|
||||
true
|
||||
|
||||
@@ -58,7 +58,7 @@ object SessionLogShare {
|
||||
if (percent != shown) { shown = percent; onProgress?.invoke(percent / 100f) }
|
||||
}
|
||||
ZipOutputStream(zip.outputStream().buffered()).use { z ->
|
||||
files.forEach { f -> addEntry(z, folder.name + "/" + f.relativeTo(folder).path, f); advance(f) }
|
||||
files.forEach { f -> addEntry(z, folder.name + "/" + f.relativeTo(folder).invariantSeparatorsPath, f); advance(f) }
|
||||
live.forEach { f -> addEntry(z, folder.name + "/steam/" + f.name, f); advance(f) }
|
||||
stores.forEach { f -> addEntry(z, "$STORES_DIR/" + f.name, f); advance(f) }
|
||||
tools.forEach { f -> addEntry(z, SessionPaths.TOOLS_DIR + "/" + f.name, f); advance(f) }
|
||||
|
||||
Reference in new issue
Block a user