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