Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
hzqst committed Feb 25, 2024
1 parent 5e43556 commit 2b65bda
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 8 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,17 @@ jobs:

- name: Copy Build to Output
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
for /f "delims=" %%i in ('where node') do set NODE_PATH=%%i
copy "%NODE_PATH%" "Output\node.exe" /y
xcopy "build" "Output" /y /e
run: xcopy "build" "Output" /y /e
shell: cmd

- name: Copy node.exe
run: |
echo "Current PATH: $env:PATH"
$nodePath = (Get-Command node).Source
echo "Node.js path: $nodePath"
Copy-Item -Path $nodePath -Destination "${{env.GITHUB_WORKSPACE}}/Output/node.exe" -Force
shell: pwsh

- name: Checkout CGAssistantJS
uses: hzqst/checkout@main
with:
Expand Down
18 changes: 14 additions & 4 deletions .github/workflows/msbuild_win7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ jobs:
node-version: '16'
architecture: 'x86'

- name: Print Node.js version and path
run: |
node -v
where node
- name: Install node-gyp
working-directory: ${{env.GITHUB_WORKSPACE}}
run: npm install -g node-gyp
Expand All @@ -139,12 +144,17 @@ jobs:

- name: Copy Build to Output
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
for /f "delims=" %%i in ('where node') do set NODE_PATH=%%i
copy "%NODE_PATH%" "Output\node.exe" /y
xcopy "build" "Output" /y /e
run: xcopy "build" "Output" /y /e
shell: cmd

- name: Copy node.exe
run: |
echo "Current PATH: $env:PATH"
$nodePath = (Get-Command node).Source
echo "Node.js path: $nodePath"
Copy-Item -Path $nodePath -Destination "${{env.GITHUB_WORKSPACE}}/Output/node.exe" -Force
shell: pwsh

- name: Checkout CGAssistantJS
uses: hzqst/checkout@main
with:
Expand Down

0 comments on commit 2b65bda

Please sign in to comment.