Skip to content

Close log build date, git branch and commit hash, #3970 #3971

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 10, 2022
Merged

Conversation

low-batt
Copy link
Contributor

@low-batt low-batt commented Oct 7, 2022

This commit will:

  • Add custom keys to Info.plist to contain build information
  • Enable preprocessing of the Info.plist file in the Xcode build
  • Enable use of an Info.plist header file in the Xcode build
  • Add a shell script write_info_plist_header.sh that generates the Info.plist header file
  • Add a new Xcode build phase to execute the script
  • Add a new logBuildDetails method to AppDelegate

With these changes IINA will log a message during startup containing the build date, git branch and commit hash.


Description:

@low-batt low-batt force-pushed the fix-3970 branch 3 times, most recently from ca486f1 to 9232d54 Compare October 7, 2022 06:07
@low-batt low-batt linked an issue Oct 17, 2022 that may be closed by this pull request
This commit will:
- Add custom keys to Info.plist to contain build information
- Enable preprocessing of the Info.plist file in the Xcode build
- Enable use of an Info.plist header file in the Xcode build
- Add a shell script write_info_plist_header.sh that generates the
  Info.plist header file
- Add a new Xcode build phase to execute the script
- Add a new logBuildDetails method to AppDelegate

With these changes IINA will log a message during startup containing the
build date, git branch and commit hash.
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "iina/write_info_plist_header.sh\n";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this \n intended?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Xcode demands it. I was unable to remove it within Xcode editing the build phase. So with Xcode shutdown I removed it using Emacs. Confirmed with git diff. Brought up Xcode. Confirmed build still worked. Checked git status. No change. Xcode put the newline back in.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then it should be ok as long as it works

iina/Info.plist Outdated
@@ -611,7 +617,7 @@ Released under GPLv3.</string>
<string>public.audio</string>
</array>
<key>UTTypeDescription</key>
<string>Monkey's Audio Lossless Audio</string>
<string>Monkey&apos;s Audio Lossless Audio</string>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also please revert this. I've seen Xcode automatically jumped between ' and ' multiple times...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted.

Updated to address review comments.

This commit will:
- Add custom keys to Info.plist to contain build information
- Enable preprocessing of the Info.plist file in the Xcode build
- Enable use of an Info.plist header file in the Xcode build
- Add a shell script write_info_plist_header.sh that generates the
  Info.plist header file
- Add a new Xcode build phase to execute the script
- Add a new logBuildDetails method to AppDelegate

With these changes IINA will log a message during startup containing the
build date, git branch and commit hash.
@uiryuu uiryuu merged commit 4af763f into develop Nov 10, 2022
@uiryuu uiryuu deleted the fix-3970 branch November 10, 2022 01:10
@uiryuu uiryuu restored the fix-3970 branch November 10, 2022 01:10
@uiryuu uiryuu deleted the fix-3970 branch November 10, 2022 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Log build date, git branch and commit hash
2 participants