@@ -84,21 +84,21 @@ def make_installer(author, application_name, description='', url='', project_pac
84
84
os .chmod (os .path .join (macos_dir , 'launch' ), 0o777 )
85
85
86
86
# make dmg
87
- with ['hdiutil' , 'create' , '-volname' , application_name , '-srcfolder' , os .path .abspath ('dist' ), '-ov' ,
88
- '-format' , 'UDZO' , application_name + '.dmg' ] as dmg_command :
89
- dmg_command = ' ' .join (dmg_command )
90
- if verbose :
91
- print ('%s' % str (dmg_command ))
92
- subprocess .check_call (dmg_command , shell = True )
87
+ dmg_command = ['hdiutil' , 'create' , '-volname' , application_name , '-srcfolder' , os .path .abspath ('dist' ), '-ov' ,
88
+ '-format' , 'UDZO' , application_name + '.dmg' ]
89
+ dmg_command = ' ' .join (dmg_command )
90
+ if verbose :
91
+ print ('%s' % str (dmg_command ))
92
+ subprocess .check_call (dmg_command , shell = True )
93
93
94
94
# make pkg based installer
95
95
pkgproj_path = application_name + '.pkgproj'
96
- with [os .path .join (os .sep , 'usr' , 'local' , 'bin' , 'packagesbuild' ), pkgproj_path ] as pkgproj_command :
97
- osnap .make_pkgproj .make_prkproj (application_name , pkgproj_path , verbose )
98
- pkgproj_command = ' ' .join (pkgproj_command )
99
- if verbose :
100
- print ('%s' % str (pkgproj_command ))
101
- subprocess .check_call (pkgproj_command , shell = True )
96
+ pkgproj_command = [os .path .join (os .sep , 'usr' , 'local' , 'bin' , 'packagesbuild' ), pkgproj_path ]
97
+ osnap .make_pkgproj .make_prkproj (application_name , pkgproj_path , verbose )
98
+ pkgproj_command = ' ' .join (pkgproj_command )
99
+ if verbose :
100
+ print ('%s' % str (pkgproj_command ))
101
+ subprocess .check_call (pkgproj_command , shell = True )
102
102
103
103
elif osnap .util .is_windows ():
104
104
0 commit comments