diff --git a/make_macos_dotapp_new.sh b/make_macos_dotapp_new.sh
index 13415088..95450790 100644
--- a/make_macos_dotapp_new.sh
+++ b/make_macos_dotapp_new.sh
@@ -120,10 +120,6 @@ install_exec() {
# Add new single rpath
install_name_tool -add_rpath @loader_path/../Frameworks $EXEC_DEST
-
- # Re-sign
- codesign --remove-signature $EXEC_DEST
- codesign -s - $EXEC_DEST
}
# ========================= Install binaries =========================
@@ -196,4 +192,8 @@ echo ' CFBundleSignaturesdrp' >> $DOTAPP/Cont
echo ' CFBundleExecutablesdrpp' >> $DOTAPP/Contents/Info.plist
echo ' CFBundleIconFilesdrpp' >> $DOTAPP/Contents/Info.plist
echo ' ' >> $DOTAPP/Contents/Info.plist
-echo '' >> $DOTAPP/Contents/Info.plist
\ No newline at end of file
+echo '' >> $DOTAPP/Contents/Info.plist
+
+# ========================= Sign the dotapp =========================
+
+codesign --force --deep -s - $DOTAPP
\ No newline at end of file