Skip to content

Commit 77450da

Browse files
authored
Merge pull request #78 from PropGit/demo
Fixed mistake in mac_app... script that left backup Info.plist file in the application bundle.
2 parents 3adcc2c + 9aac303 commit 77450da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package/mac_app_sign_and_package.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,10 @@ if [[ -e ${DISTRIBUTION}${APP_BUNDLE} ]]
250250
then
251251
if [[ -e ${DISTRIBUTION}${APP_BUNDLE}/Contents/Info.plist ]]
252252
then
253-
if sed -i.bak s_\<string\>0.0.0\<\/string\>_\<string\>${VERSION}\<\/string\>_ ${DISTRIBUTION}${APP_BUNDLE}/Contents/Info.plist > ${DISTRIBUTION}${APP_BUNDLE}/Contents/Info2.plist
253+
if sed -i.bak s_\<string\>0.0.0\<\/string\>_\<string\>${VERSION}\<\/string\>_ ${DISTRIBUTION}${APP_BUNDLE}/Contents/Info.plist
254254
then
255255
echo "Set bundle's Info.plist to version: \"${VERSION}\""
256+
rm ${DISTRIBUTION}${APP_BUNDLE}/Contents/Info.plist.bak
256257
else
257258
echo "[Error] Could not set bundle's version in Info.plist."
258259
exit 1

0 commit comments

Comments
 (0)