You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-7Lines changed: 24 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -166,10 +166,11 @@ Building the project with default configuration will result in script name `__ma
166
166
167
167
### Signing Windows Binaries
168
168
169
-
If you would like to sign Windows binaries, you can set `certificate` and the action will also take care of signing all binaries.
170
-
It is also recommended to use `certificate-password`.
169
+
If you would like to sign Windows binaries, you can configure Azure Key Vault credentials and the action will automatically sign all binaries after building. Signing is only performed for `windows-amd64` platform builds.
171
170
172
-
The `certificate` should be a PFX (Personal Information Exchange) certificate file encoded in base64 format.
171
+
The action uses the [espressif/release-sign](https://github.com/espressif/release-sign) action internally, which requires Azure credentials to access a certificate stored in Azure Key Vault. If the Azure client secret is not set, signing will be skipped with a warning message.
172
+
173
+
To enable signing, you must explicitly pass the Azure credentials as inputs from your workflow. Set the following secrets in your repository and pass them to the action:
173
174
174
175
```yaml
175
176
- name: Build Python executable
@@ -178,8 +179,12 @@ The `certificate` should be a PFX (Personal Information Exchange) certificate fi
| `test-command-args` | Command arguments to test executables | `"--help"` | `"--version"` |
278
-
| `certificate` | Certificate to use for signing binaries | `""` | `${{ secrets.CERTIFICATE }}` |
279
-
| `certificate-password` | Password for the certificate | `""` | `${{ secrets.CERTIFICATE_PASSWORD }}` |
280
283
281
284
> [!IMPORTANT]
282
285
> Be careful when changing `pyinstaller-version` as it might lead to increased false positives with anti-virus software. It is recommended to check your executables with antivirus software such as [Virustotal](https://www.virustotal.com/gui/home/upload).
283
286
287
+
### Optional Inputs for Signing Binaries
288
+
289
+
For signing binaries on Windows, this action uses the [espressif/release-sign](https://github.com/espressif/release-sign) action. The following inputs are optional but required if you want to sign your Windows executables.
290
+
291
+
Signing is optional but strongly recommended. The action will produce a warning if a Windows executable was built but was not signed.
0 commit comments