moving the downloads into the scripts directory

This commit is contained in:
Joseph Flinn 2021-01-07 19:30:25 +00:00
parent 1400a02c69
commit dec58cc78c
2 changed files with 15 additions and 10 deletions

View File

@ -41,6 +41,18 @@ jobs:
with:
node-version: '10.x'
- name: Download RH
shell: pwsh
run: |
Invoke-WebRequest -Uri http://www.angusj.com/resourcehacker/resource_hacker.zip -OutFile "resource_hacker.zip"
Expand-Archive -Path resource_hacker.zip -DestinationPath scripts/resource_hacker
- name: Debugging Path
shell: pwsh
run: |
echo "D:\a\cli\cli\scripts\resource_hacker" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo $env:GITHUB_PATH
- name: Set PACKAGE_VERSION & VER_INFO
run: |
$env:pkgVersion = (Get-Content -Raw -Path .\package.json | ConvertFrom-Json).version

View File

@ -19,20 +19,13 @@ jobs:
- name: Download RH
shell: pwsh
run: |
Invoke-WebRequest -Uri http://www.angusj.com/resourcehacker/resource_hacker.zip -OutFile "resource_hacker.zip"
Expand-Archive -Path resource_hacker.zip -DestinationPath resource_hacker
- name: List RH
run: dir resource_hacker
- name: Get Current Directory
shell: pwsh
run: Get-Location
Invoke-WebRequest -Uri http://www.angusj.com/resourcehacker/resource_hacker.zip -OutFile "scripts\resource_hacker.zip"
Expand-Archive -Path "scripts\resource_hacker.zip" -DestinationPath scripts\resource_hacker
- name: Debugging Path
shell: pwsh
run: |
echo "D:\a\cli\cli\resource_hacker" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo "D:\a\cli\cli\scripts\resource_hacker" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo $env:GITHUB_PATH
- name: ResourceHacker Test