From 175a9c91522542ec29abed3b81e87c786af0d1d8 Mon Sep 17 00:00:00 2001 From: Tlntin Date: Sat, 18 Mar 2023 12:34:07 +0800 Subject: [PATCH] update pake-cli.yml --- .github/workflows/pake-cli.yaml | 2 +- script/build_with_pake_cli.ps1 | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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 ../..