ManageAlfredwithHomebrew.
WorkflowsrequirethepaidPowerpackupgrade.
Installbrewtapdanielbayley/alfredbrewalfredinstall#workflow#themeorwithbrewbundleusingaBrewfile:
#Brewfiletap"danielbayley/alfred"cask"alfred-theme"#Appdependencyalreadyinstalledindependently.alfred"alfred-workflow",args:{"skip-cask-deps":true}Contributegitconfigcore.hooksPath.github/hooksandfollowthecontributionguide,orcopyandadaptanexistingCask.
BecauseAlfredpreferencescanbesynced,thefollowingRubycodeisnecessarytoinstalltheworkflowintothecorrectfolder:
require_relative"../cmd/brew-alfred"artifactstaged_path,target:"#{HOMEBREW_ALFRED_WORKFLOW_PREFIX}.#{token}"orwithslightlydifferentcodeforthemes:
theme="#{HOMEBREW_ALFRED_THEME_PREFIX}.#{token}"artifact"theme.json",target:"#{theme}/theme.json"uninstallrmdir:themeLicenseMIT©DanielBayley
评论