[mlaunch] Add a commit message with a pointer to the maccore hash that GitHub renders as a link. (#8956)

Add a commit message with a pointer to the maccore hash that GitHub renders as
a link when publishing an mlaunch binary to the macios-binaries repository.

This will hopefully make it _slightly_ easier to review since verifying the
maccore hash is now just a click away.
This commit is contained in:
Rolf Bjarne Kvinge 2020-06-26 10:55:51 +02:00 коммит произвёл GitHub
Родитель 56a896d371
Коммит 8866707bdb
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -15,12 +15,13 @@ all-local install-local::
endif
ifdef ENABLE_XAMARIN
MACCORE_HASH:=$(shell cd $(MACCORE_PATH) && git log -1 --pretty=%h)
publish:
$(Q) mkdir -p $(MACIOS_BINARIES_PATH)/mlaunch/bin
$(Q) mkdir -p $(MACIOS_BINARIES_PATH)/mlaunch/lib
$(Q) $(CP) -R $(IOS_DESTDIR)/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mlaunch $(MACIOS_BINARIES_PATH)/mlaunch/bin
$(Q) $(CP) -R $(IOS_DESTDIR)/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mlaunch $(MACIOS_BINARIES_PATH)/mlaunch/lib
$(Q) cd $(MACIOS_BINARIES_PATH) && git add mlaunch && git commit -q -m "Bump mlaunch to xamarin/maccore@$(shell cd $(MACCORE_PATH) && git log -1 --pretty=%h)" && git log -1 --pretty=short
$(Q) cd $(MACIOS_BINARIES_PATH) && git add mlaunch && git commit -q -m $$'Bump mlaunch to xamarin/maccore@$(MACCORE_HASH)\n\nRef: xamarin/maccore@$(MACCORE_HASH)' && git log -1 --pretty=short
$(Q) echo "$(COLOR_GREEN)A new version of mlaunch has been copied to $(MACIOS_BINARIES_PATH), and a commit created with the new version.$(COLOR_CLEAR)"
$(Q) echo "$(COLOR_GREEN)Please create pull request in the macios-binaries repository for the new mlaunch version, and once merged, bump the submodule in xamarin-macios.$(COLOR_CLEAR)"
else