qtinstaller

command module
v0.0.0-...-dd7d791 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2023 License: MIT Imports: 6 Imported by: 0

README

qtinstaller

Go

Wrapper around windeployqt and binarycreator for easily generating windows installers for your Qt applications.

The two binaries must be installed and already in PATH. These are normally installed together with Qt.

NB: This assumes Qt6. This has not been tested on Qt5 or lower versions. Feel free to try it out and share your feedback.

Installation

go install github.com/abiiranathan/qtinstaller@latest
Usage
  • Generate .env file in the same directory. This will store installer configuration.
    qtinstaller.exe init
    
  • Edit the .env file and set all the required variables then run qtinstaller.exe to generate the installer.

Note that the .exe extension can be ommitted.

By default, this generates an offline-only installer and sets up a start menu shortcut and desktop icon for your application using an install script.

Example env file

# Application display name
DISPLAY_NAME=HMIS

# Company name
PUBLISHER=Acme Software Technologies

# Description of what the software does.
DESCRIPTION=Health information management system

# Release date
RELEASE_DATE=2023-01-01

# Version number of the software
VERSION=0.1.0-1

# Package name for the software
PACKAGE_NAME=com.acme.hmis

# The path to the release Qt application
EXECUTABLE=C:\Qt\Projects\Releases\HMIS.exe

# Output name for the installer
INSTALLER_NAME=Installer.exe

# Name of the license
LICENSE_NAME=MIT LICENCE

# Path to the license file
LICENSE_FILE=license.txt

# Filename for a logo in PNG format used as QWizard::LogoPixmap.
LOGO=logo.png

# Filename for a custom installer icon.
INSTALLER_APPLICATION_ICON=favicon.ico

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL