@@ -417,7 +417,7 @@ - (BOOL)createApplication:(NSString *)destination {
417417
418418 // We set this specifically
419419 spec[AppSpecKey_DestinationPath] = appPath;
420- spec[AppSpecKey_ExecutablePath] = [[NSBundle mainBundle ] pathForResource: CMDLINE_SCRIPTEXEC_GZIP_NAME ofType: nil ];
420+ spec[AppSpecKey_ExecutablePath] = [[NSBundle mainBundle ] pathForResource: CMDLINE_SCRIPTEXEC_BIN_B64_NAME ofType: nil ];
421421 spec[AppSpecKey_NibPath] = [[NSBundle mainBundle ] pathForResource: CMDLINE_NIB_NAME ofType: nil ];
422422 spec[AppSpecKey_SymlinkFiles] = @((BOOL )[createSymlinksCheckbox intValue ]);
423423 spec[AppSpecKey_StripNib] = @((BOOL )[stripNibFileCheckbox intValue ]);
@@ -869,7 +869,8 @@ - (NSString *)estimatedAppSizeString {
869869 estimatedAppSize += [WORKSPACE fileOrFolderSize: [iconController icnsFilePath ]];
870870 estimatedAppSize += [WORKSPACE fileOrFolderSize: [dropSettingsController docIconPath ]];
871871 estimatedAppSize += [WORKSPACE fileOrFolderSize: [scriptPathTextField stringValue ]];
872- estimatedAppSize += ([WORKSPACE fileOrFolderSize: [[NSBundle mainBundle ] pathForResource: CMDLINE_SCRIPTEXEC_GZIP_NAME ofType: nil ]] * 3.8 );
872+ // base64 encoding expands data to ~1.33x, so estimate original size by mult. * 0.75
873+ estimatedAppSize += ([WORKSPACE fileOrFolderSize: [[NSBundle mainBundle ] pathForResource: CMDLINE_SCRIPTEXEC_BIN_B64_NAME ofType: nil ]] * 0.75 );
873874
874875 // Nib size is much smaller if compiled with ibtool
875876 UInt64 nibSize = [WORKSPACE fileOrFolderSize: [[NSBundle mainBundle ] pathForResource: @" MainMenu.nib" ofType: nil ]];
@@ -878,8 +879,6 @@ - (NSString *)estimatedAppSizeString {
878879 }
879880 estimatedAppSize += nibSize;
880881
881- estimatedAppSize -= 50 * 1024 ; // Just because it's more accurate!
882-
883882 // Bundled files altogether
884883 estimatedAppSize += [bundledFilesController totalSizeOfFiles ];
885884
0 commit comments