Page 1 of 1
[Feature] Beta FileBot homebrew cask
Posted: 27 May 2019, 23:13
by devster
I know, very niche, but I find this option the best to install the newest version without too much hassle.
Code: Select all
cd (brew --repository homebrew/cask)/Casks
and add the following file:
Code: Select all
cask 'filebot-beta' do
version '4.8.6'
sha256 :no_check
conflicts_with cask: "filebot"
url "https://get.filebot.net/filebot/BETA/FileBot_#{version}.app.tar.xz"
name 'FileBot'
homepage 'https://www.filebot.net/'
app 'FileBot.app'
binary "#{appdir}/FileBot.app/Contents/MacOS/filebot.sh", target: 'filebot'
zap trash: '~/Library/Preferences/net.filebot.ui.plist'
end
then simply run brew cask install filebot-beta.
The :latest option for version wouldn't work as homebrew simply substitutes it into the link pattern.
Re: [Feature] Beta FileBot homebrew cask
Posted: 28 May 2019, 04:14
by rednoah
Sorry, to make this work well, I'd have to bump and commit the version number every time, and then somebody on the brew cask team would have to accept a pull request every single time. It's just too much work for nightly builds.

You can look into the portable package though. That one contains an auto-update script that can be used to quickly upgrade to minor revision bumps. You can either use that or modify the script to make it update the jar in the macOS application folder.
Re: [Feature] Beta FileBot homebrew cask
Posted: 28 May 2019, 06:51
by devster
I see.
I believe the file can be used ad-hoc by whoever wants to try it (manually changing the versions).
Reading through homebrew docs it seems they support a :latest option for version which would replace the 4.8.6 with a 'latest' string. This, paired with a dedicated appcast for beta might be a workaround.
Re: [Feature] Beta FileBot homebrew cask
Posted: 28 May 2019, 07:17
by rednoah
While I don't plan on officially adding a filebot-beta cask, you can quite easily create your own cask descriptor and maintain it on behalf of the community:
Code: Select all
brew cask cat https://raw.githubusercontent.com/filebot/plugins/master/brew/filebot.rb
Code: Select all
brew cask install https://raw.githubusercontent.com/filebot/plugins/master/brew/filebot.rb

Since you won't be able to use SHA-256, I recommend using the GPG public key / signature options to verify the integrity of the download
(not sure if brew cask fully implements that at this point yet though, the options are there, but not doing anything last time I checked).
Re: [Feature] Beta FileBot homebrew cask
Posted: 28 May 2019, 07:39
by rednoah
Never mind. Here you go:
https://github.com/filebot/plugins/blob ... ot-beta.rb
Code: Select all
brew cask install https://raw.githubusercontent.com/filebot/plugins/master/brew/filebot-beta.rb

The version number is hard coded. I will forget to update it. So just remind me if it ever stops working sometime in the future.
