Skip to content

Commit

Permalink
Merge pull request #2 from Brynify/master
Browse files Browse the repository at this point in the history
Enable building console apps.
  • Loading branch information
ctoth authored Jan 21, 2024
2 parents 5845063 + fa246de commit 19c7366
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion installer_builder2.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class InstallerBuilder:
version: str = field(default='0.0', converter=str)
author: str = field(default='', converter=str)
run_at_startup: bool = field(default=False)
console: bool = field(default=False) # For compiling your app in console/command line mode
url: str = field(default='', converter=str)
company_name: str = field(default='')
include_modules: list = field(default=Factory(list), converter=list)
Expand All @@ -32,7 +33,7 @@ class InstallerBuilder:

def compile_distribution(self):
run_nuitka(self.main_module, self.dist_path, app_name=self.app_name, app_version=self.version, company_name=self.company_name,
include_modules=self.include_modules, include_data_files=self.data_files, include_data_dirs=self.data_directories, packages_to_include=self.include_packages, data_file_packages=self.data_file_packages, ignore_imports=self.ignore_imports)
include_modules=self.include_modules, include_data_files=self.data_files, include_data_dirs=self.data_directories, packages_to_include=self.include_packages, data_file_packages=self.data_file_packages, ignore_imports=self.ignore_imports, console=self.console)

def create_installer(self):
import innosetup_builder
Expand Down

0 comments on commit 19c7366

Please sign in to comment.