diff --git a/.github/workflows/pake-cli.yaml b/.github/workflows/pake-cli.yaml index 4790695..d85d2a6 100644 --- a/.github/workflows/pake-cli.yaml +++ b/.github/workflows/pake-cli.yaml @@ -146,7 +146,7 @@ jobs: uses: actions/upload-artifact@v3 with: name: output-${{ inputs.platform }}.zip - path: output/ + path: node_modules/pake-cli/output/ retention-days: 3 - name: rust cache store diff --git a/script/build_with_pake_cli.ps1 b/script/build_with_pake_cli.ps1 index ac1cf97..c85ed22 100644 --- a/script/build_with_pake_cli.ps1 +++ b/script/build_with_pake_cli.ps1 @@ -21,8 +21,10 @@ Write-Host "is multi arch? only for Mac: " $env:MULTI_ARCH Write-Host "targets type? only for Linux: " $env:TARGETS Write-Host "===========================`n" + +Set-Location node_modules/pake-cli # init params -${Params}="node node_modules/pake-cli/cli.js $env:URL --name $env:NAME" +${Params}=" && node cli.js $env:URL --name $env:NAME" # download icon if ((($null -ne $env:URL) -and ($env:URL -ne ""))){ @@ -79,3 +81,4 @@ if (-not(Test-Path output)) { } Move-Item -Path "$env:NAME.*" -Destination "output/" Write-Host "Build Success" +Set-Location ../..