-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
Make staged_path work in installer stanzas #7843
Conversation
:args => ['--mode=silent', "--deploymentFile=/usr/local/Caskroom/photoshop/15.0.0/Adobe Photoshop CC 2014/Deployment/#{Utils.install_locale}_Deployment.xml"] | ||
|
||
# The hash of the specific installer can be found in the deployment.xml | ||
uninstall :script => "open /Library/Application Support/Adobe/Uninstall/#{Utils.hash}.app" |
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.
You seem to be misunderstanding this option. You're not meant to write a script with it, but point it to an existing one. Opening a .app
isn't acceptable. All automised options must be accomplished without calling a GUI.
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.
Ok, so running the following should uninstall it without gui:
/Applications/Utilities/Adobe Application Manager/core/Adobe Application Manager.app/Contents/MacOS/PDApp --mode=silent --action=uninstall --deploymentFile=Deployment.xml
I assume that after the install the dmg will be unmounted? If yes, where would be a good place to store this xml file?
Hi! This is neat. The reason caveats do
puts "staged_path #{staged_path}"
end We need to fix that so that so that We also don't have a way to specify variants such as localizations, though it is desirable, and discussed in #5592. For now, people just submit some of the more popular localizations under a different name in the versions repo. The contents of the DMG will remain available under Since we don't do variants (yet), there isn't much value in the Thanks a lot for this. We can get it to work (including some backend changes) if you are patient. |
Great, thanks for the answers. I've updated the uninstall for now, so that it runs a non-gui program. It is possible to wrap the script statement in a callback as well? Regarding the util, I put it there since there are a few strings that are repeating, and once this is merged it will be easier to adapt this cask for the other adobe apps if it's a bit modular. |
Ok, here's a new commit, adding support for staged_path on the installer stanza. To be honest, I have no clue of ruby, but it seems to work. |
hey @vitorgalvao , could you have a look at the last commit I pushed? |
@ponychicken I agree the Regarding the |
Ok, so this is a working cask, but I'm also looking for some guidance on how to express things a bit more nicely => see line comments