mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 00:05:59 +08:00
Sign the msi and create two windows jobs (exe/msi)
Contributes to CURA-8607 and CURA-9157
This commit is contained in:
parent
fe3934f03c
commit
e842712142
31
.github/workflows/cura-all-installers.yml
vendored
31
.github/workflows/cura-all-installers.yml
vendored
@ -1,5 +1,5 @@
|
|||||||
name: Cura All Installers
|
name: Cura All Installers
|
||||||
run-name: ${{ inputs.cura_conan_version }} for Windows ${{ inputs.build_windows }}, MacOS ${{ inputs.build_macos }}, Linux ${{ inputs.build_linux }}
|
run-name: ${{ inputs.cura_conan_version }} for Windows exe ${{ inputs.build_windows_exe }}, for Windows msi ${{ inputs.build_windows_msi }}, MacOS ${{ inputs.build_macos }}, Linux ${{ inputs.build_linux }}
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@ -34,8 +34,13 @@ on:
|
|||||||
default: true
|
default: true
|
||||||
required: true
|
required: true
|
||||||
type: boolean
|
type: boolean
|
||||||
build_windows:
|
build_windows_exe:
|
||||||
description: 'Build for Windows'
|
description: 'Build for Windows exe'
|
||||||
|
default: false
|
||||||
|
required: true
|
||||||
|
type: boolean
|
||||||
|
build_windows_msi:
|
||||||
|
description: 'Build for Windows msi'
|
||||||
default: true
|
default: true
|
||||||
required: true
|
required: true
|
||||||
type: boolean
|
type: boolean
|
||||||
@ -55,8 +60,8 @@ on:
|
|||||||
- cron: '25 3 * * 1-5'
|
- cron: '25 3 * * 1-5'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
windows-installer-create:
|
windows-installer-create-exe:
|
||||||
if: ${{ inputs.build_windows }}
|
if: ${{ inputs.build_windows_exe }}
|
||||||
uses: ./.github/workflows/cura-installer.yml
|
uses: ./.github/workflows/cura-installer.yml
|
||||||
with:
|
with:
|
||||||
platform: 'windows-2022'
|
platform: 'windows-2022'
|
||||||
@ -67,6 +72,22 @@ jobs:
|
|||||||
enterprise: ${{ inputs.enterprise }}
|
enterprise: ${{ inputs.enterprise }}
|
||||||
staging: ${{ inputs.staging }}
|
staging: ${{ inputs.staging }}
|
||||||
installer: ${{ inputs.installer }}
|
installer: ${{ inputs.installer }}
|
||||||
|
msi: false
|
||||||
|
secrets: inherit
|
||||||
|
|
||||||
|
windows-installer-create-msi:
|
||||||
|
if: ${{ inputs.build_windows_msi }}
|
||||||
|
uses: ./.github/workflows/cura-installer.yml
|
||||||
|
with:
|
||||||
|
platform: 'windows-2022'
|
||||||
|
os_name: 'win64'
|
||||||
|
cura_conan_version: ${{ inputs.cura_conan_version }}
|
||||||
|
conan_args: ${{ inputs.conan_args }}
|
||||||
|
conan_config: ${{ inputs.conan_config }}
|
||||||
|
enterprise: ${{ inputs.enterprise }}
|
||||||
|
staging: ${{ inputs.staging }}
|
||||||
|
installer: ${{ inputs.installer }}
|
||||||
|
msi: true
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
linux-installer-create:
|
linux-installer-create:
|
||||||
|
35
.github/workflows/cura-installer.yml
vendored
35
.github/workflows/cura-installer.yml
vendored
@ -44,6 +44,11 @@ on:
|
|||||||
default: true
|
default: true
|
||||||
required: true
|
required: true
|
||||||
type: boolean
|
type: boolean
|
||||||
|
msi:
|
||||||
|
description: 'Create the msi'
|
||||||
|
default: false
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CONAN_LOGIN_USERNAME_CURA: ${{ secrets.CONAN_USER }}
|
CONAN_LOGIN_USERNAME_CURA: ${{ secrets.CONAN_USER }}
|
||||||
@ -238,19 +243,33 @@ jobs:
|
|||||||
run: Compress-Archive -Path ".\UltiMaker-Cura" -DestinationPath ".\UltiMaker-Cura-$Env:CURA_VERSION_FULL-${{ inputs.os_name }}.zip"
|
run: Compress-Archive -Path ".\UltiMaker-Cura" -DestinationPath ".\UltiMaker-Cura-$Env:CURA_VERSION_FULL-${{ inputs.os_name }}.zip"
|
||||||
working-directory: dist
|
working-directory: dist
|
||||||
|
|
||||||
|
- name: Create the Windows exe installer (Powershell)
|
||||||
|
if: ${{ github.event.inputs.installer == 'true' && runner.os == 'Windows' && github.event.inputs.msi == 'false' }}
|
||||||
|
run: |
|
||||||
|
python ..\cura_inst\packaging\NSIS\create_windows_installer.py ../cura_inst . "UltiMaker-Cura-$Env:CURA_VERSION_FULL-${{ inputs.os_name }}.exe"
|
||||||
|
working-directory: dist
|
||||||
|
|
||||||
- name: Create the Windows msi installer (Powershell)
|
- name: Create the Windows msi installer (Powershell)
|
||||||
if: ${{ github.event.inputs.installer == 'true' && runner.os == 'Windows' }}
|
if: ${{ github.event.inputs.installer == 'true' && runner.os == 'Windows' && github.event.inputs.msi == 'true' }}
|
||||||
run: |
|
run: |
|
||||||
python ..\cura_inst\packaging\msi\create_windows_msi.py ..\cura_inst .\UltiMaker-Cura "UltiMaker-Cura-$Env:CURA_VERSION_FULL-${{ inputs.os_name }}.msi" "$Env:CURA_APP_NAME"
|
python ..\cura_inst\packaging\msi\create_windows_msi.py ..\cura_inst .\UltiMaker-Cura "UltiMaker-Cura-$Env:CURA_VERSION_FULL-${{ inputs.os_name }}.msi" "$Env:CURA_APP_NAME"
|
||||||
working-directory: dist
|
working-directory: dist
|
||||||
|
|
||||||
- name: Sign the Windows exe installer (Powershell)
|
- name: Sign the Windows exe installer (Powershell)
|
||||||
if: ${{ github.event.inputs.installer == 'true' && runner.os == 'Windows' }}
|
if: ${{ github.event.inputs.installer == 'true' && runner.os == 'Windows' && github.event.inputs.msi == 'false' }}
|
||||||
env:
|
env:
|
||||||
PFX_PATH: ${{ steps.create-pfx.outputs.PFX_PATH }}
|
PFX_PATH: ${{ steps.create-pfx.outputs.PFX_PATH }}
|
||||||
run: |
|
run: |
|
||||||
& "C:/Program Files (x86)/Windows Kits/10/bin/10.0.17763.0/x86/signtool.exe" sign /f $Env:PFX_PATH /p "$Env:WIN_CERT_INSTALLER_CER_PASS" /fd SHA256 /t http://timestamp.digicert.com "UltiMaker-Cura-$Env:CURA_VERSION_FULL-${{ inputs.os_name }}.exe"
|
& "C:/Program Files (x86)/Windows Kits/10/bin/10.0.17763.0/x86/signtool.exe" sign /f $Env:PFX_PATH /p "$Env:WIN_CERT_INSTALLER_CER_PASS" /fd SHA256 /t http://timestamp.digicert.com "UltiMaker-Cura-$Env:CURA_VERSION_FULL-${{ inputs.os_name }}.exe"
|
||||||
working-directory: dist
|
working-directory: dist
|
||||||
|
|
||||||
|
- name: Sign the Windows msi installer (Powershell)
|
||||||
|
if: ${{ github.event.inputs.installer == 'true' && runner.os == 'Windows' && github.event.inputs.msi == 'true' }}
|
||||||
|
env:
|
||||||
|
PFX_PATH: ${{ steps.create-pfx.outputs.PFX_PATH }}
|
||||||
|
run: |
|
||||||
|
& "C:/Program Files (x86)/Windows Kits/10/bin/10.0.17763.0/x86/signtool.exe" sign /f $Env:PFX_PATH /p "$Env:WIN_CERT_INSTALLER_CER_PASS" /fd SHA256 /t http://timestamp.digicert.com "UltiMaker-Cura-$Env:CURA_VERSION_FULL-${{ inputs.os_name }}.msi"
|
||||||
|
working-directory: dist
|
||||||
|
|
||||||
- name: Create the Linux AppImage (Bash)
|
- name: Create the Linux AppImage (Bash)
|
||||||
if: ${{ github.event.inputs.installer == 'true' && runner.os == 'Linux' }}
|
if: ${{ github.event.inputs.installer == 'true' && runner.os == 'Linux' }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user