-# Update projects/osx/XestiaAddressBook.xcodeproj/project.pbxproj
-
-$filename = "../../projects/osx/XestiaAddressBook.xcodeproj/project.pbxproj";
-tie(@file_data, 'Tie::File', $filename);
-foreach my $file_data_line(@file_data) {
-
- # Look for PRODUCT_VERSION
-
- if ($file_data_line =~ /^\t\t\t\tPRODUCT_VERSION/){
- my $line_output = "\t\t\t\tPRODUCT_VERSION = ";
- $line_output .= $version;
- $line_output .= ";";
- $file_data_line = $line_output;
+# Update source/os/osx/Info.plist
+
+$filename = "../os/osx/Info.plist";
+open($file_handle, '+<', $filename);
+my $line_found = 0;
+my $new_file = "";
+while(<$file_handle>)
+{
+ if ($line_found eq 1)
+ {
+ my $new_line = "\t<string>" . $version_major . "." . $version_minor . "</string>\n";
+ $new_file .= $new_line;
+ $line_found = 0;
+ next;