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

parallels-desktop.rb: updated *flights to moving #21636

Merged
merged 1 commit into from
Jun 2, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 3 additions & 10 deletions Casks/parallels-desktop.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,14 @@
app 'Parallels Desktop.app'

postflight do
# Set the file to visible, since it was hidden in the dmg
system '/usr/bin/SetFile', '-a', 'v', staged_path.join('Parallels Desktop.app')

# Run the initialization script
system '/usr/bin/sudo', '-E', '--',
staged_path.join('Parallels Desktop.app/Contents/MacOS/inittool'),
'init', '-b', staged_path.join('Parallels Desktop.app')

# Set the correct permissions on the link - remove after #13201 is solved
system '/usr/bin/sudo', '-E', '--',
'chown', '-h', 'root:wheel', Hbc.appdir.join('Parallels Desktop.app')
"#{Hbc.appdir}/Parallels Desktop.app/Contents/MacOS/inittool",
'init', '-b', "#{Hbc.appdir}/Parallels Desktop.app"
end

uninstall_preflight do
set_ownership staged_path.join('Parallels Desktop.app')
set_ownership "#{Hbc.appdir}/Parallels Desktop.app"
end

uninstall delete: [
Expand Down