Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacrlevin committed Dec 26, 2023
1 parent 748100a commit b5295fe
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/Choco.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ jobs:

- name: Update Chocolatey Files
run: |
.\Build\scripts\hash-files.ps1 -Version "${{ env.VERSION }}"
.\SigningScripts\scripts\hash-files.ps1 -Version "${{ env.VERSION }}"
shell: powershell

- name: Push to Chocolatey
run: |
.\Build\scripts\push-choco.ps1 -Version "${{ env.VERSION}}" -CHOCOAPIKEY "${{ secrets.CHOCOAPIKEY}}"
.\SigningScripts\scripts\push-choco.ps1 -Version "${{ env.VERSION}}" -CHOCOAPIKEY "${{ secrets.CHOCOAPIKEY}}"
shell: powershell

- name: Setup tmate session
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/WinGet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,16 @@ jobs:
path: ./SigningScripts

- name: Get Version from Artifact (Push)
if: ${{ github.event_name == 'push' }}
run: |
version=$(<"./SigningScripts/version.txt")
echo $version
- name: Get Version from Input (Workflow Dispatch)
if: ${{ github.event_name == 'workflow_dispatch' }}
run: |
version = "${{ inputs.Version }}"
echo $version
- name: Populate Version Environment Variable
run: |
Expand Down
8 changes: 5 additions & 3 deletions Build/scripts/hash-files.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ $GitHubReleaseUrl = "https://github.com/isaacrlevin/presencelight/releases/downl

# Hash the Zip Files
mkdir .\Download
Invoke-WebRequest -Uri "${GitHubReleaseUrl}v${Version}\x86-zip.sha256" -OutFile ".\Download\x86-zip.sha256"
Invoke-WebRequest -Uri "${GitHubReleaseUrl}v${Version}\x64-zip.sha256" -OutFile ".\Download\x64-zip.sha256"
Invoke-WebRequest -Uri "${GitHubReleaseUrl}v${Version}\win-arm64-zip.sha256" -OutFile ".\Download\win-arm64-zip.sha256"

#https://github.com/isaacrlevin/presencelight/releases/download/Desktop-v5.6.101/PresenceLight.5.6.101-x86-zip.sha256
Invoke-WebRequest -Uri "${GitHubReleaseUrl}v${Version}\PresenceLight.${Version}-x86-zip.sha256" -OutFile ".\Download\x86-zip.sha256"
Invoke-WebRequest -Uri "${GitHubReleaseUrl}v${Version}\PresenceLight.${Version}-x64-zip.sha256" -OutFile ".\Download\x64-zip.sha256"
Invoke-WebRequest -Uri "${GitHubReleaseUrl}v${Version}\PresenceLight.${Version}-win-arm64-zip.sha256" -OutFile ".\Download\win-arm64-zip.sha256"
$hash86 = get-content ".\Download\x86-zip.sha256"
$hash64 = get-content ".\Download\x64-zip.sha256"
$hashARM = get-content ".\Download\win-arm64-zip.sha256"
Expand Down

0 comments on commit b5295fe

Please sign in to comment.