Skip to content

Commit

Permalink
Only create Innosetup compiler when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
ctoth committed Aug 20, 2022
1 parent db914d3 commit e59fcc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion installer_builder2.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import innosetup_builder
from attr import Factory, define, field

innosetup_compiler = innosetup_builder.InnosetupCompiler()

OS = platform.system()

Expand Down Expand Up @@ -48,6 +47,7 @@ def create_installer(self):
installer_filename = self.dist_path / \
(self.app_name + '-' + self.version + '.exe')
innosetup_installer.output_base_filename = installer_filename
innosetup_compiler = innosetup_builder.InnosetupCompiler()
innosetup_compiler.build(
innosetup_installer, output_path=self.dist_path)

Expand Down

0 comments on commit e59fcc1

Please sign in to comment.