mirror of
https://github.com/openziti/desktop-edge-win.git
synced 2026-10-13 16:21:25 +00:00
another try
This commit is contained in:
@@ -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=<registration.key
|
||||
# "C:\Program Files (x86)\Caphyon\Advanced Installer 17.5\bin\x86\AdvancedInstaller.com" /register "%ADV_REG_KEY%" 2>&1
|
||||
|
||||
Reference in New Issue
Block a user