Merge pull request #339 from keycloakify/fix/fix-broken-jar
fix: fix broken jar
This commit is contained in:
@ -48,10 +48,14 @@ export async function jarStream({ groupId, artifactId, version, asyncPathGenerat
|
|||||||
for await (const entry of asyncPathGeneratorFn()) {
|
for await (const entry of asyncPathGeneratorFn()) {
|
||||||
if ("buffer" in entry) {
|
if ("buffer" in entry) {
|
||||||
zipFile.addBuffer(entry.buffer, entry.zipPath);
|
zipFile.addBuffer(entry.buffer, entry.zipPath);
|
||||||
} else if ("fsPath" in entry && !entry.fsPath.endsWith(sep)) {
|
} else if ("fsPath" in entry) {
|
||||||
|
if (entry.fsPath.endsWith(sep)) {
|
||||||
|
zipFile.addEmptyDirectory(entry.zipPath);
|
||||||
|
} else {
|
||||||
zipFile.addFile(entry.fsPath, entry.zipPath);
|
zipFile.addFile(entry.fsPath, entry.zipPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
zipFile.addBuffer(manifestData, manifestPath);
|
zipFile.addBuffer(manifestData, manifestPath);
|
||||||
zipFile.addBuffer(pomPropsData, pomPropsPath);
|
zipFile.addBuffer(pomPropsData, pomPropsPath);
|
||||||
|
Reference in New Issue
Block a user