From f79713980a98339eece912d456781f8b335a5836 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Telaty=C5=84ski?= <7t3chguy@gmail.com> Date: Mon, 27 Feb 2023 09:45:54 +0000 Subject: [PATCH] Update build_macos.yaml --- .github/workflows/build_macos.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_macos.yaml b/.github/workflows/build_macos.yaml index 4917150..351d5ef 100644 --- a/.github/workflows/build_macos.yaml +++ b/.github/workflows/build_macos.yaml @@ -106,7 +106,8 @@ jobs: PKG_JSON_VERSION=$(cat package.json | jq -r .version) LATEST=$(find dist -type f -iname "*-mac.zip" | xargs -0 -n1 -- basename) - URL="${{ inputs.base-url }}/update/macos/$LATEST" + # Encode spaces in the URL as Squirrel.Mac complains about bad JSON otherwise + URL="${{ inputs.base-url }}/update/macos/${LATEST// /%20}" jq -n --arg version "${VERSION:-$PKG_JSON_VERSION}" --arg url "$URL" ' {