mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Try to codesign windows installers
This commit is contained in:
parent
e6a8e83d2d
commit
c801801ac8
@ -11,6 +11,9 @@ parameters:
|
|||||||
jobs:
|
jobs:
|
||||||
- job: ${{ parameters.name }}
|
- job: ${{ parameters.name }}
|
||||||
dependsOn: CodeFormatValidation
|
dependsOn: CodeFormatValidation
|
||||||
|
variables:
|
||||||
|
- ${{ if and(eq(variables['System.TeamFoundationCollectionUri'], 'https://dev.azure.com/luisangelsm/'), or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['Build.SourceBranch'], 'refs/heads/develop'))) }}:
|
||||||
|
- group: windows-codesign
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'windows-2019'
|
vmImage: 'windows-2019'
|
||||||
steps:
|
steps:
|
||||||
@ -38,10 +41,16 @@ jobs:
|
|||||||
set PATH=C:\Qt\${{ parameters.qt_version }}\${{ parameters.qt_spec }}\bin;%PATH%
|
set PATH=C:\Qt\${{ parameters.qt_version }}\${{ parameters.qt_spec }}\bin;%PATH%
|
||||||
nmake check TESTARGS="-maxwarnings 100000"
|
nmake check TESTARGS="-maxwarnings 100000"
|
||||||
displayName: 'Run tests'
|
displayName: 'Run tests'
|
||||||
|
- ${{ if and(eq(variables['System.TeamFoundationCollectionUri'], 'https://dev.azure.com/luisangelsm/'), or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['Build.SourceBranch'], 'refs/heads/develop'))) }}:
|
||||||
|
- task: DownloadSecureFile@1
|
||||||
|
name: pdxFile
|
||||||
|
displayName: 'Get the pfx file certificate'
|
||||||
|
inputs:
|
||||||
|
secureFile: 'certificate.pdx'
|
||||||
- script: |
|
- script: |
|
||||||
set PATH=C:\Qt\${{ parameters.qt_version }}\${{ parameters.qt_spec }}\bin;%PATH%
|
set PATH=C:\Qt\${{ parameters.qt_version }}\${{ parameters.qt_spec }}\bin;%PATH%
|
||||||
cd $(Build.SourcesDirectory)\ci\win
|
cd $(Build.SourcesDirectory)\ci\win
|
||||||
.\create_installer.cmd ${{ parameters.architecture }} 7z $(Build.BuildNumber) qt6
|
.\create_installer.cmd ${{ parameters.architecture }} 7z $(Build.BuildNumber) qt6 $(pdxFile) $(pdxPassword)
|
||||||
displayName: 'Create installer'
|
displayName: 'Create installer'
|
||||||
- task: CopyFiles@2
|
- task: CopyFiles@2
|
||||||
inputs:
|
inputs:
|
||||||
|
@ -11,6 +11,9 @@ parameters:
|
|||||||
jobs:
|
jobs:
|
||||||
- job: ${{ parameters.name }}
|
- job: ${{ parameters.name }}
|
||||||
dependsOn: CodeFormatValidation
|
dependsOn: CodeFormatValidation
|
||||||
|
variables:
|
||||||
|
- ${{ if and(eq(variables['System.TeamFoundationCollectionUri'], 'https://dev.azure.com/luisangelsm/'), or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['Build.SourceBranch'], 'refs/heads/develop'))) }}:
|
||||||
|
- group: windows-codesign
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'windows-2019'
|
vmImage: 'windows-2019'
|
||||||
steps:
|
steps:
|
||||||
@ -38,10 +41,16 @@ jobs:
|
|||||||
set PATH=C:\Qt\${{ parameters.qt_version }}\${{ parameters.qt_spec }}\bin;%PATH%
|
set PATH=C:\Qt\${{ parameters.qt_version }}\${{ parameters.qt_spec }}\bin;%PATH%
|
||||||
nmake check TESTARGS="-maxwarnings 100000"
|
nmake check TESTARGS="-maxwarnings 100000"
|
||||||
displayName: 'Run tests'
|
displayName: 'Run tests'
|
||||||
|
- ${{ if and(eq(variables['System.TeamFoundationCollectionUri'], 'https://dev.azure.com/luisangelsm/'), or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['Build.SourceBranch'], 'refs/heads/develop'))) }}:
|
||||||
|
- task: DownloadSecureFile@1
|
||||||
|
name: pdxFile
|
||||||
|
displayName: 'Get the pfx file certificate'
|
||||||
|
inputs:
|
||||||
|
secureFile: 'certificate.pdx'
|
||||||
- script: |
|
- script: |
|
||||||
set PATH=C:\Qt\${{ parameters.qt_version }}\${{ parameters.qt_spec }}\bin;%PATH%
|
set PATH=C:\Qt\${{ parameters.qt_version }}\${{ parameters.qt_spec }}\bin;%PATH%
|
||||||
cd $(Build.SourcesDirectory)\ci\win
|
cd $(Build.SourcesDirectory)\ci\win
|
||||||
.\create_installer.cmd ${{ parameters.architecture }} 7z $(Build.BuildNumber)
|
.\create_installer.cmd ${{ parameters.architecture }} 7z $(Build.BuildNumber) qt5 $(pdxFile) $(pdxPassword)
|
||||||
displayName: 'Create installer'
|
displayName: 'Create installer'
|
||||||
- task: CopyFiles@2
|
- task: CopyFiles@2
|
||||||
inputs:
|
inputs:
|
||||||
|
@ -59,9 +59,9 @@ if "%1"=="x86" (
|
|||||||
)
|
)
|
||||||
|
|
||||||
if "%4"=="qt6" (
|
if "%4"=="qt6" (
|
||||||
iscc /DVERSION=%VERSION% /DPLATFORM=%1 /DCOMPRESSED_ARCHIVE_BACKEND=%2 /DBUILD_NUMBER=%3 build_installer_qt6.iss || exit /b
|
iscc /DVERSION=%VERSION% /DPLATFORM=%1 /DCOMPRESSED_ARCHIVE_BACKEND=%2 /DBUILD_NUMBER=%3 build_installer_qt6.iss "/Ssigntool=signtool.exe sign /f %5 /p %6 $f" || exit /b
|
||||||
) else (
|
) else (
|
||||||
iscc /DVERSION=%VERSION% /DPLATFORM=%1 /DCOMPRESSED_ARCHIVE_BACKEND=%2 /DBUILD_NUMBER=%3 build_installer.iss || exit /b
|
iscc /DVERSION=%VERSION% /DPLATFORM=%1 /DCOMPRESSED_ARCHIVE_BACKEND=%2 /DBUILD_NUMBER=%3 build_installer.iss "/Ssigntool=signtool.exe sign /f %5 /p %6 $f" || exit /b
|
||||||
)
|
)
|
||||||
|
|
||||||
cd ..
|
cd ..
|
Loading…
Reference in New Issue
Block a user