1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-12-11 09:11:50 +00:00

Fix runnable-textpacker.jar download

Adds 'await' to ensure the download will be complete.

Without this the download might never complete. This issue occurred on a Linux OS (which seem to handle file streams a bit different than some other OSs).
Effects of not fixing this are that the java execution following this download fails for funny "corrupted jar" and other reasons - depending on the size and content of the incomplete jar file.
This commit is contained in:
Ecconia 2024-08-29 22:16:51 +02:00
parent 6ff5cc26d2
commit 241f166989
No known key found for this signature in database
GPG Key ID: 49F3399E2B7A7865

View File

@ -94,7 +94,7 @@ export async function buildAtlas() {
const escapedLink = JSON.stringify(runnableTPSource);
try {
execute(`curl -o runnable-texturepacker.jar ${escapedLink}`);
await execute(`curl -o runnable-texturepacker.jar ${escapedLink}`);
} catch {
throw new Error("Failed to download runnable-texturepacker.jar!");
}