Skip to content

Commit ccb0325

Browse files
committed
macdeploy: move qt_conf to where it's used
1 parent 6390a04 commit ccb0325

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

contrib/macdeploy/macdeployqtplus

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -501,11 +501,6 @@ def deployPlugins(appBundleInfo: ApplicationBundleInfo, deploymentInfo: Deployme
501501
if dependency.frameworkName not in deploymentInfo.deployedFrameworks:
502502
deployFrameworks([dependency], appBundleInfo.path, destinationPath, strip, verbose, deploymentInfo)
503503

504-
qt_conf="""[Paths]
505-
Translations=Resources
506-
Plugins=PlugIns
507-
"""
508-
509504
ap = ArgumentParser(description="""Improved version of macdeployqt.
510505
511506
Outputs a ready-to-deploy app in a folder "dist" and optionally wraps it in a .dmg file.
@@ -607,6 +602,11 @@ for file in lang_files:
607602

608603
print("+ Installing qt.conf +")
609604

605+
qt_conf="""[Paths]
606+
Translations=Resources
607+
Plugins=PlugIns
608+
"""
609+
610610
with open(os.path.join(applicationBundle.resourcesPath, "qt.conf"), "wb") as f:
611611
f.write(qt_conf.encode())
612612

0 commit comments

Comments
 (0)