[Feature] Beta FileBot homebrew cask

All your suggestions, requests and ideas for future development
Post Reply
devster
Posts: 417
Joined: 06 Jun 2017, 22:56

[Feature] Beta FileBot homebrew cask

Post 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.
I only work in black and sometimes very, very dark grey. (Batman)
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [Feature] Beta FileBot homebrew cask

Post 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.

:idea: 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.
:idea: Please read the FAQ and How to Request Help.
devster
Posts: 417
Joined: 06 Jun 2017, 22:56

Re: [Feature] Beta FileBot homebrew cask

Post 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.
I only work in black and sometimes very, very dark grey. (Batman)
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [Feature] Beta FileBot homebrew cask

Post 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).
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [Feature] Beta FileBot homebrew cask

Post 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. :lol:
:idea: Please read the FAQ and How to Request Help.
Post Reply