Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eclipse-java: make Contents/Eclipse read-only to install plugins in user folder and preserve code signing #169881

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 9 additions & 0 deletions Casks/e/eclipse-java.rb
Expand Up @@ -17,6 +17,15 @@
# Renamed to avoid conflict with other Eclipse.
app "Eclipse.app", target: "Eclipse Java.app"

# https://help.eclipse.org/latest/topic/org.eclipse.platform.doc.isv/reference/misc/multi_user_installs.html
postflight do
set_permissions "/Applications/Eclipse Java.app/Contents/Eclipse", "0555"
end

uninstall_preflight do
set_permissions "/Applications/Eclipse Java.app/Contents/Eclipse", "0755"
end

zap trash: [
"~/.eclipse",
"~/eclipse-workspace",
Expand Down