-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
libreoffice-language-pack: install manually #52893
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets just add the caveat. Adding the AppleScript is too much, and HBC should never trigger GUIs, especially one as taxing as LibreOffice.
I understand @vitorgalvao. But since this step is essential for LibreOffice to work out of the box (TDF even adds it in their own executable), I'd like to get a consensus on this. |
I’d rather remove the auto-installation (which is a non-standard hacky method anyway) and change the cask to |
👍
👍
👍 |
I know you guys come across a lot of issues and have standards to solve them, but just from a user and automation point of view adding the applescript seems the best way to implement. As using the homebrew-cask install one of the most things I love about it is the automation. And if there is a way to do the install automatically without breaking downsides I (and I guess other users) would love to see a most effortless install as possible. For me as an example I would have to explain to everyone in the office what to do and why instead of just installing the cask. Would be nice to have see the most automated version possible. Thanks a lot for all your work. I really do like this project. Have a nice weekend together ;) |
Unfortunately, that doesn’t consider the users who don’t want a GUI to spring up when installing, especially one that’s slow like LibreOffice. |
I am pretty sure there is no "real" popup of a window when install the language pack manually. I will try and report back in a few minutes... |
I just downloaded the latest libreoffice and language pack from the offical website. Then I dragged the LibreOffice.app to /Applications/LibreOffice.app and unmounted the .dmg. The only thing is that libreoffice asks for permission to open on first launch due to gatekeeper. This could be avoided by exporting the quarantine data, deleting the xattr, open Libreoffice and reimport the quarantine afterwards like this:
|
I tried that, unfortunately restoring the com.apple.quarantine xattr does seem to break libreoffice again after the process completes. So it would still be possible with the applescriop, the only thing a user would have to do is hit one button to allow libreoffice to be opened, the rest could be automated without long waiting and without seeing any libreoffice gui. |
What you actually want is to toggle the "opened" bit in |
@vitorgalvao - just in case, please remember that the AppleScript automatically closes the app, it doesn't leave it open. I also shortened its timeout -15 sec- to ensure that this step doesn't delay unreasonably the rest of the process. If there's no further comment, I'll proceed with |
Gatekeeper requires LibreOffice to be run at least once before injecting the language resources; otherwise, it will trip the digital signature checks and reject the app.
Need to add a fake homebrew-cask/Casks/google-cloud-sdk.rb Line 19 in 959f4d9
|
After making all changes to the cask:
brew cask audit --download {{cask_file}}
is error-free.brew cask style --fix {{cask_file}}
reports no offenses.Additionally, if adding a new cask:
brew cask install {{cask_file}}
worked successfully.brew cask uninstall {{cask_file}}
worked successfully.--
LibreOffice Language Pack, when manually executed, runs LibreOffice at least once (using AppleScript) before inserting the language files. This is to trigger Gatekeeper and thus cheat the code signature assessment.
This pull request
adds this step to thechanges this Cask to manual installation.preflight
block.Fixes #52758 , fixes #52883 .
(source for the fix:Contents/osx_install.applescript
inside the Cask's DMG)