firma su exe windows
This commit is contained in:
@@ -21,11 +21,27 @@ jobs:
|
|||||||
- name: Build Flutter Windows
|
- name: Build Flutter Windows
|
||||||
run: flutter build windows --release
|
run: flutter build windows --release
|
||||||
|
|
||||||
|
# 1. FIRMA DELL'ESEGUIBILE RAW
|
||||||
|
- name: Firma Eseguibile Flutter
|
||||||
|
run: |
|
||||||
|
# Cerca dinamicamente signtool.exe nell'SDK di Windows per non sbagliare percorso
|
||||||
|
$Signtool = (Get-ChildItem "C:\Program Files (x86)\Windows Kits\10\bin\*\x64\signtool.exe" | Sort-Object FullName -Descending | Select-Object -First 1).FullName
|
||||||
|
|
||||||
|
# Sostituisci il percorso con dove hai salvato fisicamente il file .pfx sul PC del runner!
|
||||||
|
& $Signtool sign /f "C:\flux_privato.pfx" /p "${{ secrets.PFX_PASSWORD }}" /fd SHA256 "build\windows\x64\runner\Release\flux.exe"
|
||||||
|
|
||||||
- name: Build Windows Installer
|
- name: Build Windows Installer
|
||||||
run: |
|
run: |
|
||||||
$TagVersion = "${{ github.ref_name }}".Substring(1)
|
$TagVersion = "${{ github.ref_name }}".Substring(1)
|
||||||
& "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" "/DMyAppVersion=$TagVersion" "win_installer.iss"
|
& "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" "/DMyAppVersion=$TagVersion" "win_installer.iss"
|
||||||
|
|
||||||
|
# 2. FIRMA DELL'INSTALLER GENERATO DA INNO SETUP
|
||||||
|
- name: Firma Installer
|
||||||
|
run: |
|
||||||
|
$Signtool = (Get-ChildItem "C:\Program Files (x86)\Windows Kits\10\bin\*\x64\signtool.exe" | Sort-Object FullName -Descending | Select-Object -First 1).FullName
|
||||||
|
|
||||||
|
& $Signtool sign /f "C:\flux_privato.pfx" /p "${{ secrets.PFX_PASSWORD }}" /fd SHA256 "build\windows\installer\FluxInstaller.exe"
|
||||||
|
|
||||||
# Nel dubbio usiamo l'action per caricare l'asset
|
# Nel dubbio usiamo l'action per caricare l'asset
|
||||||
- name: Upload Windows Asset
|
- name: Upload Windows Asset
|
||||||
uses: https://gitea.com/actions/release-action@main
|
uses: https://gitea.com/actions/release-action@main
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
name: flux
|
name: flux
|
||||||
description: "Gestione attività negozio di telefonia"
|
description: "Gestione attività negozio di telefonia"
|
||||||
publish_to: 'none'
|
publish_to: 'none'
|
||||||
version: 1.1.1+19
|
version: 1.1.2+20
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.11.3
|
sdk: ^3.11.3
|
||||||
|
|||||||
Reference in New Issue
Block a user