diff --git a/Makefile b/Makefile index 42b25230..066e4cc8 100644 --- a/Makefile +++ b/Makefile @@ -179,9 +179,11 @@ $(TARGET).sym: $(OBJ) @echo dsym $(notdir $(TARGET).dSYM) $(VERBOSE) $(ENV) $(DSYM) $@ -o $(TARGET).dSYM -$(TARGET): $(TARGET).sym +$(TARGET): $(TARGET).sym app.entitlements @echo strip $(notdir $@) $(VERBOSE) $(ENV) $(STRIP) $(TARGET).sym -o $@ + @echo sign $(notdir $@) + $(VERBOSE) $(ENV) $(CODESIGN) -s - --entitlements app.entitlements --force $@ clean: @rm -rf build diff --git a/app.entitlements b/app.entitlements new file mode 100644 index 00000000..08afa108 --- /dev/null +++ b/app.entitlements @@ -0,0 +1,8 @@ + + + + + com.apple.security.hypervisor + + + \ No newline at end of file diff --git a/config.mk b/config.mk index f7f19acb..8682e937 100644 --- a/config.mk +++ b/config.mk @@ -19,6 +19,7 @@ LD := clang STRIP := strip DSYM := dsymutil DTRACE := dtrace +CODESIGN := codesign ENV := \ LANG=en_US.US-ASCII