mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-10-21 22:02:37 +00:00
macOS: refresh app bundles before notarization
Refresh the app bundle after every build, without requiring -p.
This commit is contained in:
@@ -105,6 +105,8 @@ if [ "$brew" = true ]; then
|
||||
make
|
||||
if [ "$package" = true ]; then
|
||||
make package
|
||||
else
|
||||
make bundle
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
@@ -159,6 +161,9 @@ make WXSTATIC=FULL clean
|
||||
make WXSTATIC=FULL
|
||||
if [ "$package" = true ]; then
|
||||
make WXSTATIC=FULL package
|
||||
else
|
||||
# Notarization consumes the app bundle, not the standalone executable.
|
||||
make WXSTATIC=FULL bundle
|
||||
fi
|
||||
|
||||
echo "VeraCrypt build completed successfully."
|
||||
|
||||
+7
-1
@@ -222,8 +222,12 @@ endif
|
||||
endif
|
||||
|
||||
ifeq "$(PLATFORM)" "MacOSX"
|
||||
prepare: $(APPNAME)
|
||||
.PHONY: bundle prepare
|
||||
|
||||
# Keep bundle assembly available to builds that do not have signing credentials.
|
||||
bundle: $(APPNAME)
|
||||
mkdir -p $(APPNAME).app/Contents/MacOS $(APPNAME).app/Contents/Resources/doc
|
||||
rm -rf $(APPNAME).app/Contents/_CodeSignature
|
||||
rm -rf $(APPNAME).app/Contents/Resources/doc/HTML
|
||||
mkdir -p $(APPNAME).app/Contents/Resources/doc/HTML
|
||||
mkdir -p $(APPNAME).app/Contents/MacOS $(APPNAME).app/Contents/Resources/languages
|
||||
@@ -258,6 +262,8 @@ else
|
||||
sed -e 's/_VERSION_/$(patsubst %a,%.1,$(patsubst %b,%.2,$(TC_VERSION)))/' ../Build/Resources/MacOSX/Info.plist.xml >$(APPNAME).app/Contents/Info.plist
|
||||
endif
|
||||
chmod -R go-w $(APPNAME).app
|
||||
|
||||
prepare: bundle
|
||||
ifneq ("$(LOCAL_DEVELOPMENT_BUILD)","true")
|
||||
codesign -s "Developer ID Application: Mounir Joseph IDRASSI (HLTN5GLG99)" --timestamp $(APPNAME).app
|
||||
endif
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#------ Targets ------
|
||||
# all
|
||||
# clean
|
||||
# bundle: Assemble the macOS app bundle without signing or packaging
|
||||
# wxbuild: Configure and build wxWidgets - source code must be located at $(WX_ROOT)
|
||||
|
||||
|
||||
@@ -714,6 +715,12 @@ all clean:
|
||||
export LIBS="$(BASE_DIR)/$$DIR/$$PROJ.a $$LIBS"; \
|
||||
done
|
||||
|
||||
ifeq "$(PLATFORM)" "MacOSX"
|
||||
.PHONY: bundle
|
||||
bundle:
|
||||
$(MAKE) -C Main -f Main.make NAME=Main bundle
|
||||
endif
|
||||
|
||||
install:
|
||||
$(MAKE) -C Main -f Main.make NAME=Main install
|
||||
|
||||
|
||||
Reference in New Issue
Block a user