-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Conversation
ca486f1
to
9232d54
Compare
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"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this \n intended?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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's Audio Lossless Audio</string> |
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
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.
This commit will:
With these changes IINA will log a message during startup containing the build date, git branch and commit hash.
Description: