Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
73a1c647
Unverified
Commit
73a1c647
authored
Jun 19, 2020
by
Rémi Verschelde
Committed by
GitHub
Jun 19, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #37231 from Calinou/rename-osx-ios-bundle-identifier
Rename "Identifier" to "Bundle Identifier" in macOS/iOS export presets
parents
9562fb90
fdb89a3f
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
13 deletions
+13
-13
project.pbxproj
misc/dist/ios_xcode/godot_ios.xcodeproj/project.pbxproj
+2
-2
export_options.plist
misc/dist/ios_xcode/godot_ios/export_options.plist
+1
-1
Info.plist
misc/dist/osx_template.app/Contents/Info.plist
+1
-1
export.cpp
platform/iphone/export/export.cpp
+4
-4
export.cpp
platform/osx/export/export.cpp
+5
-5
No files found.
misc/dist/ios_xcode/godot_ios.xcodeproj/project.pbxproj
View file @
73a1c647
...
@@ -433,7 +433,7 @@
...
@@ -433,7 +433,7 @@
"$(inherited)"
,
"$(inherited)"
,
"$(PROJECT_DIR)"
,
"$(PROJECT_DIR)"
,
);
);
PRODUCT_BUNDLE_IDENTIFIER
=
$identifier
;
PRODUCT_BUNDLE_IDENTIFIER
=
$
bundle_
identifier
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE
=
"$provisioning_profile_uuid_debug"
;
PROVISIONING_PROFILE
=
"$provisioning_profile_uuid_debug"
;
TARGETED_DEVICE_FAMILY
=
"1,2"
;
TARGETED_DEVICE_FAMILY
=
"1,2"
;
...
@@ -459,7 +459,7 @@
...
@@ -459,7 +459,7 @@
"$(inherited)"
,
"$(inherited)"
,
"$(PROJECT_DIR)"
,
"$(PROJECT_DIR)"
,
);
);
PRODUCT_BUNDLE_IDENTIFIER
=
$identifier
;
PRODUCT_BUNDLE_IDENTIFIER
=
$
bundle_
identifier
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE
=
"$provisioning_profile_uuid_release"
;
PROVISIONING_PROFILE
=
"$provisioning_profile_uuid_release"
;
TARGETED_DEVICE_FAMILY
=
"1,2"
;
TARGETED_DEVICE_FAMILY
=
"1,2"
;
...
...
misc/dist/ios_xcode/godot_ios/export_options.plist
View file @
73a1c647
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<
k
e
y
>
provisioningProfiles
<
/k
e
y
>
<
k
e
y
>
provisioningProfiles
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
$identifier
<
/k
e
y
>
<
k
e
y
>
$
bundle_
identifier
<
/k
e
y
>
<
string
>
$provisioning_profile_uuid
<
/string
>
<
string
>
$provisioning_profile_uuid
<
/string
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
...
...
misc/dist/osx_template.app/Contents/Info.plist
View file @
73a1c647
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<
k
e
y
>
CFBundleIconFile
<
/k
e
y
>
<
k
e
y
>
CFBundleIconFile
<
/k
e
y
>
<
string
>
icon.icns
<
/string
>
<
string
>
icon.icns
<
/string
>
<
k
e
y
>
CFBundleIdentifier
<
/k
e
y
>
<
k
e
y
>
CFBundleIdentifier
<
/k
e
y
>
<
string
>
$identifier
<
/string
>
<
string
>
$
bundle_
identifier
<
/string
>
<
k
e
y
>
CFBundleInfoDictionaryVersion
<
/k
e
y
>
<
k
e
y
>
CFBundleInfoDictionaryVersion
<
/k
e
y
>
<
string
>
6.0
<
/string
>
<
string
>
6.0
<
/string
>
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
...
...
platform/iphone/export/export.cpp
View file @
73a1c647
...
@@ -217,7 +217,7 @@ void EditorExportPlatformIOS::get_export_options(List<ExportOption> *r_options)
...
@@ -217,7 +217,7 @@ void EditorExportPlatformIOS::get_export_options(List<ExportOption> *r_options)
r_options
->
push_back
(
ExportOption
(
PropertyInfo
(
Variant
::
STRING
,
"application/name"
,
PROPERTY_HINT_PLACEHOLDER_TEXT
,
"Game Name"
),
""
));
r_options
->
push_back
(
ExportOption
(
PropertyInfo
(
Variant
::
STRING
,
"application/name"
,
PROPERTY_HINT_PLACEHOLDER_TEXT
,
"Game Name"
),
""
));
r_options
->
push_back
(
ExportOption
(
PropertyInfo
(
Variant
::
STRING
,
"application/info"
),
"Made with Godot Engine"
));
r_options
->
push_back
(
ExportOption
(
PropertyInfo
(
Variant
::
STRING
,
"application/info"
),
"Made with Godot Engine"
));
r_options
->
push_back
(
ExportOption
(
PropertyInfo
(
Variant
::
STRING
,
"application/identifier"
,
PROPERTY_HINT_PLACEHOLDER_TEXT
,
"com.example.game"
),
""
));
r_options
->
push_back
(
ExportOption
(
PropertyInfo
(
Variant
::
STRING
,
"application/
bundle_
identifier"
,
PROPERTY_HINT_PLACEHOLDER_TEXT
,
"com.example.game"
),
""
));
r_options
->
push_back
(
ExportOption
(
PropertyInfo
(
Variant
::
STRING
,
"application/signature"
),
""
));
r_options
->
push_back
(
ExportOption
(
PropertyInfo
(
Variant
::
STRING
,
"application/signature"
),
""
));
r_options
->
push_back
(
ExportOption
(
PropertyInfo
(
Variant
::
STRING
,
"application/short_version"
),
"1.0"
));
r_options
->
push_back
(
ExportOption
(
PropertyInfo
(
Variant
::
STRING
,
"application/short_version"
),
"1.0"
));
r_options
->
push_back
(
ExportOption
(
PropertyInfo
(
Variant
::
STRING
,
"application/version"
),
"1.0"
));
r_options
->
push_back
(
ExportOption
(
PropertyInfo
(
Variant
::
STRING
,
"application/version"
),
"1.0"
));
...
@@ -293,8 +293,8 @@ void EditorExportPlatformIOS::_fix_config_file(const Ref<EditorExportPreset> &p_
...
@@ -293,8 +293,8 @@ void EditorExportPlatformIOS::_fix_config_file(const Ref<EditorExportPreset> &p_
strnew
+=
lines
[
i
].
replace
(
"$name"
,
p_config
.
pkg_name
)
+
"
\n
"
;
strnew
+=
lines
[
i
].
replace
(
"$name"
,
p_config
.
pkg_name
)
+
"
\n
"
;
}
else
if
(
lines
[
i
].
find
(
"$info"
)
!=
-
1
)
{
}
else
if
(
lines
[
i
].
find
(
"$info"
)
!=
-
1
)
{
strnew
+=
lines
[
i
].
replace
(
"$info"
,
p_preset
->
get
(
"application/info"
))
+
"
\n
"
;
strnew
+=
lines
[
i
].
replace
(
"$info"
,
p_preset
->
get
(
"application/info"
))
+
"
\n
"
;
}
else
if
(
lines
[
i
].
find
(
"$identifier"
)
!=
-
1
)
{
}
else
if
(
lines
[
i
].
find
(
"$
bundle_
identifier"
)
!=
-
1
)
{
strnew
+=
lines
[
i
].
replace
(
"$
identifier"
,
p_preset
->
get
(
"application/
identifier"
))
+
"
\n
"
;
strnew
+=
lines
[
i
].
replace
(
"$
bundle_identifier"
,
p_preset
->
get
(
"application/bundle_
identifier"
))
+
"
\n
"
;
}
else
if
(
lines
[
i
].
find
(
"$short_version"
)
!=
-
1
)
{
}
else
if
(
lines
[
i
].
find
(
"$short_version"
)
!=
-
1
)
{
strnew
+=
lines
[
i
].
replace
(
"$short_version"
,
p_preset
->
get
(
"application/short_version"
))
+
"
\n
"
;
strnew
+=
lines
[
i
].
replace
(
"$short_version"
,
p_preset
->
get
(
"application/short_version"
))
+
"
\n
"
;
}
else
if
(
lines
[
i
].
find
(
"$version"
)
!=
-
1
)
{
}
else
if
(
lines
[
i
].
find
(
"$version"
)
!=
-
1
)
{
...
@@ -1346,7 +1346,7 @@ bool EditorExportPlatformIOS::can_export(const Ref<EditorExportPreset> &p_preset
...
@@ -1346,7 +1346,7 @@ bool EditorExportPlatformIOS::can_export(const Ref<EditorExportPreset> &p_preset
valid
=
false
;
valid
=
false
;
}
}
String
identifier
=
p_preset
->
get
(
"application/identifier"
);
String
identifier
=
p_preset
->
get
(
"application/
bundle_
identifier"
);
String
pn_err
;
String
pn_err
;
if
(
!
is_package_name_valid
(
identifier
,
&
pn_err
))
{
if
(
!
is_package_name_valid
(
identifier
,
&
pn_err
))
{
err
+=
TTR
(
"Invalid Identifier:"
)
+
" "
+
pn_err
+
"
\n
"
;
err
+=
TTR
(
"Invalid Identifier:"
)
+
" "
+
pn_err
+
"
\n
"
;
...
...
platform/osx/export/export.cpp
View file @
73a1c647
...
@@ -145,7 +145,7 @@ void EditorExportPlatformOSX::get_export_options(List<ExportOption> *r_options)
...
@@ -145,7 +145,7 @@ void EditorExportPlatformOSX::get_export_options(List<ExportOption> *r_options)
r_options
->
push_back
(
ExportOption
(
PropertyInfo
(
Variant
::
STRING
,
"application/name"
,
PROPERTY_HINT_PLACEHOLDER_TEXT
,
"Game Name"
),
""
));
r_options
->
push_back
(
ExportOption
(
PropertyInfo
(
Variant
::
STRING
,
"application/name"
,
PROPERTY_HINT_PLACEHOLDER_TEXT
,
"Game Name"
),
""
));
r_options
->
push_back
(
ExportOption
(
PropertyInfo
(
Variant
::
STRING
,
"application/info"
),
"Made with Godot Engine"
));
r_options
->
push_back
(
ExportOption
(
PropertyInfo
(
Variant
::
STRING
,
"application/info"
),
"Made with Godot Engine"
));
r_options
->
push_back
(
ExportOption
(
PropertyInfo
(
Variant
::
STRING
,
"application/icon"
,
PROPERTY_HINT_FILE
,
"*.png,*.icns"
),
""
));
r_options
->
push_back
(
ExportOption
(
PropertyInfo
(
Variant
::
STRING
,
"application/icon"
,
PROPERTY_HINT_FILE
,
"*.png,*.icns"
),
""
));
r_options
->
push_back
(
ExportOption
(
PropertyInfo
(
Variant
::
STRING
,
"application/identifier"
,
PROPERTY_HINT_PLACEHOLDER_TEXT
,
"com.example.game"
),
""
));
r_options
->
push_back
(
ExportOption
(
PropertyInfo
(
Variant
::
STRING
,
"application/
bundle_
identifier"
,
PROPERTY_HINT_PLACEHOLDER_TEXT
,
"com.example.game"
),
""
));
r_options
->
push_back
(
ExportOption
(
PropertyInfo
(
Variant
::
STRING
,
"application/signature"
),
""
));
r_options
->
push_back
(
ExportOption
(
PropertyInfo
(
Variant
::
STRING
,
"application/signature"
),
""
));
r_options
->
push_back
(
ExportOption
(
PropertyInfo
(
Variant
::
STRING
,
"application/short_version"
),
"1.0"
));
r_options
->
push_back
(
ExportOption
(
PropertyInfo
(
Variant
::
STRING
,
"application/short_version"
),
"1.0"
));
r_options
->
push_back
(
ExportOption
(
PropertyInfo
(
Variant
::
STRING
,
"application/version"
),
"1.0"
));
r_options
->
push_back
(
ExportOption
(
PropertyInfo
(
Variant
::
STRING
,
"application/version"
),
"1.0"
));
...
@@ -354,8 +354,8 @@ void EditorExportPlatformOSX::_fix_plist(const Ref<EditorExportPreset> &p_preset
...
@@ -354,8 +354,8 @@ void EditorExportPlatformOSX::_fix_plist(const Ref<EditorExportPreset> &p_preset
strnew
+=
lines
[
i
].
replace
(
"$name"
,
p_binary
)
+
"
\n
"
;
strnew
+=
lines
[
i
].
replace
(
"$name"
,
p_binary
)
+
"
\n
"
;
}
else
if
(
lines
[
i
].
find
(
"$info"
)
!=
-
1
)
{
}
else
if
(
lines
[
i
].
find
(
"$info"
)
!=
-
1
)
{
strnew
+=
lines
[
i
].
replace
(
"$info"
,
p_preset
->
get
(
"application/info"
))
+
"
\n
"
;
strnew
+=
lines
[
i
].
replace
(
"$info"
,
p_preset
->
get
(
"application/info"
))
+
"
\n
"
;
}
else
if
(
lines
[
i
].
find
(
"$identifier"
)
!=
-
1
)
{
}
else
if
(
lines
[
i
].
find
(
"$
bundle_
identifier"
)
!=
-
1
)
{
strnew
+=
lines
[
i
].
replace
(
"$
identifier"
,
p_preset
->
get
(
"application/
identifier"
))
+
"
\n
"
;
strnew
+=
lines
[
i
].
replace
(
"$
bundle_identifier"
,
p_preset
->
get
(
"application/bundle_
identifier"
))
+
"
\n
"
;
}
else
if
(
lines
[
i
].
find
(
"$short_version"
)
!=
-
1
)
{
}
else
if
(
lines
[
i
].
find
(
"$short_version"
)
!=
-
1
)
{
strnew
+=
lines
[
i
].
replace
(
"$short_version"
,
p_preset
->
get
(
"application/short_version"
))
+
"
\n
"
;
strnew
+=
lines
[
i
].
replace
(
"$short_version"
,
p_preset
->
get
(
"application/short_version"
))
+
"
\n
"
;
}
else
if
(
lines
[
i
].
find
(
"$version"
)
!=
-
1
)
{
}
else
if
(
lines
[
i
].
find
(
"$version"
)
!=
-
1
)
{
...
@@ -399,7 +399,7 @@ Error EditorExportPlatformOSX::_notarize(const Ref<EditorExportPreset> &p_preset
...
@@ -399,7 +399,7 @@ Error EditorExportPlatformOSX::_notarize(const Ref<EditorExportPreset> &p_preset
args
.
push_back
(
"--notarize-app"
);
args
.
push_back
(
"--notarize-app"
);
args
.
push_back
(
"--primary-bundle-id"
);
args
.
push_back
(
"--primary-bundle-id"
);
args
.
push_back
(
p_preset
->
get
(
"application/identifier"
));
args
.
push_back
(
p_preset
->
get
(
"application/
bundle_
identifier"
));
args
.
push_back
(
"--username"
);
args
.
push_back
(
"--username"
);
args
.
push_back
(
p_preset
->
get
(
"notarization/apple_id_name"
));
args
.
push_back
(
p_preset
->
get
(
"notarization/apple_id_name"
));
...
@@ -885,7 +885,7 @@ bool EditorExportPlatformOSX::can_export(const Ref<EditorExportPreset> &p_preset
...
@@ -885,7 +885,7 @@ bool EditorExportPlatformOSX::can_export(const Ref<EditorExportPreset> &p_preset
valid
=
dvalid
||
rvalid
;
valid
=
dvalid
||
rvalid
;
r_missing_templates
=
!
valid
;
r_missing_templates
=
!
valid
;
String
identifier
=
p_preset
->
get
(
"application/identifier"
);
String
identifier
=
p_preset
->
get
(
"application/
bundle_
identifier"
);
String
pn_err
;
String
pn_err
;
if
(
!
is_package_name_valid
(
identifier
,
&
pn_err
))
{
if
(
!
is_package_name_valid
(
identifier
,
&
pn_err
))
{
err
+=
TTR
(
"Invalid bundle identifier:"
)
+
" "
+
pn_err
+
"
\n
"
;
err
+=
TTR
(
"Invalid bundle identifier:"
)
+
" "
+
pn_err
+
"
\n
"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment