Skip to content

Commit

Permalink
Set com.apple.security.get-task-allow to true for debug builds
Browse files Browse the repository at this point in the history
  • Loading branch information
sorbits committed Mar 28, 2021
1 parent 659254d commit f3751f2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Applications/TextMate/Entitlements.plist
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@
<true/>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
<key>com.apple.security.get-task-allow</key>
<${CS_GET_TASK_ALLOW}/>
</dict>
</plist>
11 changes: 10 additions & 1 deletion Applications/TextMate/default.rave
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,20 @@ target "${dirname}" {

set HTML_HEADER "${dir}/templates/header.html"
set HTML_FOOTER "${dir}/templates/footer.html"
set CS_ENTITLEMENTS "${dir}/Entitlements.plist"

set TEXTMATE_CHANGES "${dir}/about/Changes.md"
capture TEXTMATE_VERSION "grep -om1 '^## .* (v.*)$' '${TEXTMATE_CHANGES}'|sed 's/.*(v\\(.*\))/\\1/'"

config "debug" {
add PLIST_FLAGS "-d'CS_GET_TASK_ALLOW=true'"
}

config "release" {
add PLIST_FLAGS "-d'CS_GET_TASK_ALLOW=false'"
}

expand CS_ENTITLEMENTS "${dir}/Entitlements.plist"

add PLIST_FLAGS "-dAPP_VERSION='${TEXTMATE_VERSION}'"
add MD_FLAGS "-h'${HTML_HEADER}' -f'${HTML_FOOTER}'"
add CS_FLAGS "--entitlements '${CS_ENTITLEMENTS}'"
Expand Down

0 comments on commit f3751f2

Please sign in to comment.