forked from qt-creator/qt-creator
macOS: Fix that Info.plist was overwritten in in-source builds
$$PWD and $$OUT_PWD are the same for in-source builds, so rename the source Info.plist to avoid overwriting it with the same name (which could easily lead to an accidental git submit of the generated file). Change-Id: Idc593d8e00dc52f11309eae3b913799fb9b8afdf Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Jake Petroules <jake.petroules@qt.io>
This commit is contained in:
@@ -59,7 +59,7 @@ win32 {
|
||||
}
|
||||
}
|
||||
|
||||
infoplist = $$cat($$PWD/Info.plist, blob)
|
||||
infoplist = $$cat($$PWD/app-Info.plist, blob)
|
||||
infoplist = $$replace(infoplist, @MACOSX_DEPLOYMENT_TARGET@, $$QMAKE_MACOSX_DEPLOYMENT_TARGET)
|
||||
infoplist = $$replace(infoplist, @QTCREATOR_COPYRIGHT_YEAR@, $$QTCREATOR_COPYRIGHT_YEAR)
|
||||
write_file($$OUT_PWD/Info.plist, infoplist)
|
||||
|
@@ -39,7 +39,7 @@ QtcProduct {
|
||||
Depends { name: "ExtensionSystem" }
|
||||
|
||||
files: [
|
||||
"Info.plist",
|
||||
"app-Info.plist",
|
||||
"main.cpp",
|
||||
"qtcreator.xcassets",
|
||||
"../shared/qtsingleapplication/qtsingleapplication.h",
|
||||
|
Reference in New Issue
Block a user