-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore]: CI - Check CFBundleShortVersionString in Info.plist (#1006)
* add check that CFBundleShortVersionString exists in Info.plist * fix naming, add PR reference * add comments to script * move to non generated Info.plist file * add copyright to xcconfigs * migrate to non-generated Info.plist for remaining targets
- Loading branch information
1 parent
efd18ec
commit fd2c961
Showing
9 changed files
with
79 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
# get the version number from the Info.plist file using agvtool | ||
VERS=$(xcrun agvtool mvers -terse1) | ||
|
||
# if the version number is empty, exit with an error | ||
if [ "$VERS" == "" ]; then | ||
echo "No version number found" | ||
echo "Make sure Info.plist has a CFBundleShortVersionString key" | ||
echo "" | ||
echo "If Info.plist does not have a CFBundleShortVersionString key, add the following to your Info.plist file:" | ||
echo "" | ||
echo "<key>CFBundleShortVersionString</key>" | ||
echo "<string>0.0.1</string>" | ||
echo "" | ||
echo "For more information see https://github.com/CodeEditApp/CodeEdit/pull/1006" | ||
exit 1 # exit with an error | ||
else | ||
echo "Version number is $VERS" | ||
exit 0 # exit with no error | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ | |
|
||
CE_APPICON_NAME = AppIconAlpha | ||
CE_VERSION_POSTFIX = -alpha | ||
CE_COPYRIGHT = Copyright © 2022-2023 CodeEdit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ | |
|
||
CE_APPICON_NAME = AppIconBeta | ||
CE_VERSION_POSTFIX = -beta | ||
CE_COPYRIGHT = Copyright © 2022-2023 CodeEdit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ | |
|
||
CE_APPICON_NAME = AppIconDev | ||
CE_VERSION_POSTFIX = -dev | ||
CE_COPYRIGHT = Copyright © 2022-2023 CodeEdit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters