You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If [code]true[/code], existing "project name" and "project name.xcodeproj" in the export destination directory will be unconditionally deleted during export.
add_message(EXPORT_MESSAGE_ERROR, TTR("Export"), vformat(TTR("Unexpected files found in the export destination directory \"%s.xcodeproj\", delete it manually or select another destination."), binary_dir));
1892
+
return ERR_CANT_CREATE;
1893
+
}
1867
1894
}
1895
+
da->change_dir(current_dir);
1896
+
1868
1897
if (da->change_dir(binary_dir) == OK) {
1869
-
da->erase_contents_recursive();
1898
+
// Check directory content before deleting.
1899
+
int expected_files = 0;
1900
+
int total_files = 0;
1901
+
if (!delete_old) {
1902
+
da->list_dir_begin();
1903
+
for (String n = da->get_next(); !n.is_empty(); n = da->get_next()) {
1904
+
if (!n.begins_with(".")) { // Ignore ".", ".." and hidden files.
1905
+
if (da->current_is_dir()) {
1906
+
if (n == "dylibs" || n == "Images.xcassets" || n.ends_with(".lproj") || n == "godot-publish-dotnet" || n.ends_with(".xcframework") || n.ends_with(".framework")) {
1907
+
expected_files++;
1908
+
}
1909
+
} else {
1910
+
if (n == binary_name + "-Info.plist" || n == binary_name + ".entitlements" || n == "Launch Screen.storyboard" || n == "export_options.plist" || n.begins_with("dummy.") || n.ends_with(".gdip")) {
add_message(EXPORT_MESSAGE_ERROR, TTR("Export"), vformat(TTR("Unexpected files found in the export destination directory \"%s\", delete it manually or select another destination."), binary_dir));
0 commit comments