diff --git a/.github/workflows/installer.build.yml b/.github/workflows/installer.build.yml index 4093506c..4d413e13 100644 --- a/.github/workflows/installer.build.yml +++ b/.github/workflows/installer.build.yml @@ -20,6 +20,7 @@ jobs: CODE: ${{ github.workspace }}/go/src/github.com/${{ github.repository }} SOME_KEY: ${{ secrets.SOME_KEY }} ADV_INST_LICENSEKEY: ${{ secrets.ADV_INST_LICENSEKEY }} + TEST_KEY: ${{ secrets.TEST_KEY }} steps: - uses: actions/checkout@master @@ -36,16 +37,14 @@ jobs: # env: # BUILD_NUMBER: "Please Work" # - - name: Place signing key into proper location for installer + - name: Setup secrets run: | echo "${env:SOME_KEY}" > WinSign.b64 echo "${env:ADV_INST_LICENSEKEY}" > registration.b64 + echo "${env:TEST_KEY}" > test.key C:\Windows\System32\certutil.exe -decode registration.b64 registration.key C:\Windows\System32\certutil.exe -decode WinSign.b64 Installer/WinSign.p12 - head -c 4 registration.key - tail -c 4 registration.key - (Get-FileHash .\registration.key).Hash - ls -r registration.key + # - name: Cache Chocolatey Dependencies # uses: actions/cache@v1 # with: @@ -62,8 +61,9 @@ jobs: - shell: pwsh name: Register Advanced Installer run: | - $key=(Get-Content .\registration.key) - cmd /c "C:\Program Files (x86)\Caphyon\Advanced Installer 17.5\bin\x86\AdvancedInstaller.com" /register $key + $key=(Get-Content .\test.key) + .\Installer\reg.bat $key +# cmd /c "C:\Program Files (x86)\Caphyon\Advanced Installer 17.5\bin\x86\AdvancedInstaller.com" /register $key # "C:\Program Files (x86)\Caphyon\Advanced Installer 17.5\bin\x86\AdvancedInstaller.com" "/register" "$key" # set /p ADV_REG_KEY=&1