Skip to main content

Azure Code signing tool for Windows executable.

Project description

License Build Quality Gate Minarca Client Coverage

Exebuild

A command-line utility for creating Windows executables for software distribution. Exebuild simplifies the process of signing executables using Azure Trusted Code Signing and helps create software installers using NSIS.

Description

Exebuild streamlines the tedious process of signing Windows executables with signtool.exe by combining multiple steps into a single, efficient command.

This project was created to address the complexity of signing executables on Windows and to provide a reusable solution for all the projects we develop at IKUS Software.

Installation

Install Exebuild via PyPI:

pip install exebuild

Usage: signexe

Here’s an example of how to use Exebuild to quickly sign an executable.

First, create an Azure Certificate profile. Follow the documentation here: Code Signing on Windows with Azure Trusted Signing.

CLI:

set AZURE_TENANT_ID=your-tenant-id
set AZURE_CLIENT_ID=your-client-id
set AZURE_CLIENT_SECRET=your-client-secret
set AZURE_ENDPOINT=your-endpoint
set AZURE_CODE_SIGNING_NAME=your-code-signing-name
set AZURE_CERT_PROFILE_NAME=your-cert-profile-name
signexe.exe <path-to-exe>

Python:

from exebuild import signexe
signexe('c:/path/to/my.exe')

Usage: makensis

Exebuild also simplifies creating installers using NSIS. It supports the same command-line arguments as the original makensis, but Exebuild automatically installs NSIS via NuGet.

CLI:

makensis.exe -NOCD -INPUTCHARSET UTF8 -DOutFile=installer.exe <path-to-nsi-file>

Python:

from exebuild import makensis

makensis([
    '-NOCD',
    '-INPUTCHARSET', 'UTF8',
    '-DOutFile=installer.exe',
    'c:/path/to/file.nsi',
])

Roadmap

  • Add support for installing .NET Runtime v6.0.
  • Simplify the NSIS interface for easier usage.
  • Expand signexe to support additional code-signing options (e.g., alternatives to Azure Code Signing).

Got more ideas? Submit a new issue.

Support

If you encounter any issues or need assistance, feel free to open a ticket on GitLab or GitHub.

License

This project is released under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

exebuild-0.1.1-py3-none-any.whl (32.3 kB view details)

Uploaded Python 3

File details

Details for the file exebuild-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: exebuild-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 32.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for exebuild-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9df58aae0e4c2f19557efac7b9f0d433e117ab518ffb75162b69febb238c5bf9
MD5 64d8784ec19c6a2c1a8544fdc392cd40
BLAKE2b-256 4de9d5b7250b44829c3a3c1e252f7b29fdb18838128874baca6824120ff0ff3a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page