Commit 503b2885 authored by nanahira's avatar nanahira

Update src/pack-utility.sh

parent e343e39e
...@@ -34,7 +34,10 @@ makeBuild() { ...@@ -34,7 +34,10 @@ makeBuild() {
echo "Version: $appVersion" echo "Version: $appVersion"
currentPath="$PWD" currentPath="$PWD"
cd "$appPath" cd "$appPath"
result=$(tar -I 'zstd -T0' -cf - . | curl -L -H "$header" -X POST "$apiRoot/release/api/build/$appName/${appVersion}${suffix}" -F file=@-) tmpfile=$(mktemp ./upload_XXXXXX.tar.zst)
tar -I 'zstd -T0' -cvf "$tmpfile" .
result=$(curl -L -H "$header" -X POST "$apiRoot/release/api/build/$appName/${appVersion}${suffix}" -F "file=@$tmpfile")
rm -f "$tmpfile"
handleErrorMessage "$result" handleErrorMessage "$result"
echo "$result" | jq . echo "$result" | jq .
cd .. cd ..
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment