aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThe Qt Project <gerrit-noreply@qt-project.org>2023-02-14 16:01:46 +0000
committerThe Qt Project <gerrit-noreply@qt-project.org>2023-02-14 16:01:46 +0000
commit6d05d98dca984a3a0c7a2b161fb0fc6b93f66c4c (patch)
treee7ead2f5f3c7cdbd759b844206eb4568cf249ba1
parent0f23dd99b940d9526a18aaa4866d5d0b6d78f62f (diff)
parent364013b9ac077ff858916a985c82a0dcba67ec2e (diff)
Merge "Merge remote-tracking branch 'origin/9.0' into 10.0" into 10.0v10.0.0-beta1
-rwxr-xr-xscripts/build.py2
-rwxr-xr-xshare/qtcreator/scripts/openTerminal.py8
-rw-r--r--tests/system/suite_tools/tst_designer_autocomplete/test.py3
3 files changed, 10 insertions, 3 deletions
diff --git a/scripts/build.py b/scripts/build.py
index ae1b450f91..d6a30a18ff 100755
--- a/scripts/build.py
+++ b/scripts/build.py
@@ -189,7 +189,7 @@ def build_qtcreator(args, paths):
if args.with_cpack:
cmake_args += ['-DCPACK_PACKAGE_FILE_NAME=qtcreator' + args.zip_infix]
if common.is_linux_platform():
- cmake_args += ['-DCPACK_INSTALL_PREFIX=/opt']
+ cmake_args += ['-DCPACK_INSTALL_PREFIX=/opt/qt-creator']
cmake_args += args.config_args
diff --git a/share/qtcreator/scripts/openTerminal.py b/share/qtcreator/scripts/openTerminal.py
index 6ece8152ff..3dd1bcb1b9 100755
--- a/share/qtcreator/scripts/openTerminal.py
+++ b/share/qtcreator/scripts/openTerminal.py
@@ -100,7 +100,13 @@ def main():
shell_script.write(commands)
shell_script.flush()
os.chmod(shell_script.name, stat.S_IXUSR | stat.S_IRUSR | stat.S_IWUSR)
- subprocess.call(['/usr/bin/open', '-a', 'Terminal', shell_script.name])
+ # TODO /usr/bin/open doesn't work with notarized app in macOS 13,
+ # use osascript instead (QTCREATORBUG-28683).
+ # This has the disadvantage that the Terminal windows doesn't close
+ # automatically anymore.
+ # subprocess.call(['/usr/bin/open', '-a', 'Terminal', shell_script.name])
+ subprocess.call(['/usr/bin/osascript', '-e', 'tell app "Terminal" to activate'])
+ subprocess.call(['/usr/bin/osascript', '-e', 'tell app "Terminal" to do script "' + shell_script.name + '"'])
if __name__ == "__main__":
main()
diff --git a/tests/system/suite_tools/tst_designer_autocomplete/test.py b/tests/system/suite_tools/tst_designer_autocomplete/test.py
index c720d8917e..e60c754e92 100644
--- a/tests/system/suite_tools/tst_designer_autocomplete/test.py
+++ b/tests/system/suite_tools/tst_designer_autocomplete/test.py
@@ -8,7 +8,8 @@ def main():
if not startedWithoutPluginError():
return
projectName = "DesignerTestApp"
- createProject_Qt_GUI(tempDir(), projectName)
+ createProject_Qt_GUI(tempDir(), projectName,
+ buildSystem="qmake" if JIRA.isBugStillOpen(28787) else "CMake")
invokeMenuItem('Build', 'Build Project "%s"' % projectName)
selectFromLocator("mainwindow.ui")
dragAndDrop(waitForObject("{container=':qdesigner_internal::WidgetBoxCategoryListView'"