From 1abf50f3a0fffdb5f76203479efbacd9b3de3f49 Mon Sep 17 00:00:00 2001 From: Marquis Kurt Date: Mon, 23 Dec 2019 12:26:26 -0500 Subject: [PATCH] Try Powershell instead of sed? --- .github/workflows/ci-win.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-win.yml b/.github/workflows/ci-win.yml index dbc67a7..631e0e8 100644 --- a/.github/workflows/ci-win.yml +++ b/.github/workflows/ci-win.yml @@ -14,7 +14,8 @@ jobs: node-version: 10.x - name: Modify config.json run: | - sed -i "s#$(cat public/config.json | grep "location")/\"location\": \"desktop"#g" public/config.json; + ((Get-Content -Path .\public\config,json -Raw) -replace '/\"location\"?: \"https?:\/\/([A-Za-z0-9.]+)\",/g','\"location\": \"desktop\",') | Set-Content -Path .\public\config.json + shell: powershell - name: Install dependencies and build run: | npm install