Skip to content

Commit 2beb3d1

Browse files
JCashekharkunov
authored andcommitted
The resources aren't always actual files, so we need to access them using the api
1 parent ca02919 commit 2beb3d1

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

client/src/main/java/com/defold/extender/client/ExtenderClient.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -323,12 +323,10 @@ HttpEntity createBuildRequestPayload(List<ExtenderResource> sourceResources) thr
323323
.forEach(res -> {
324324
Path path = Path.of(res.getPath());
325325
try {
326-
if (Files.isRegularFile(path)) {
327-
ZipEntry entry = new ZipEntry(path.toString());
328-
zipStream.putNextEntry(entry);
329-
Files.copy(path, zipStream);
330-
zipStream.closeEntry();
331-
}
326+
ZipEntry entry = new ZipEntry(path.toString());
327+
zipStream.putNextEntry(entry);
328+
zipStream.write(res.getContent());
329+
zipStream.closeEntry();
332330
} catch (IOException e) { }
333331
});
334332
} catch (IOException exc) {

0 commit comments

Comments
 (0)