Files
chromebrew/packages/bearly.rb
chromebrew-actions[bot] 50242f5343 bearly -> 5.0.4 in updater-bearly-5.0.4 — bearly: 5.0.3 → 5.0.4 (#14863)
* bearly -> 5.0.4 in updater-bearly-5.0.4

* Mark packages from successful builds as automatically buildable.

* updater-bearly-5.0.4: Package File Update Run on linux/amd64 container.

---------

Co-authored-by: github-merge-queue <github-merge-queue@users.noreply.github.com>
Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com>
Co-authored-by: chromebrew-actions[bot] <220035932+chromebrew-actions[bot]@users.noreply.github.com>
2026-03-02 03:26:56 +00:00

45 lines
1.3 KiB
Ruby

require 'package'
class Bearly < Package
description 'Bearly makes you 10x faster by adding state of the art AI to your workflow.'
homepage 'https://bearly.ai/'
version '5.0.4'
license 'Unknown'
compatibility 'x86_64'
source_url "https://github.com/bearlyai/releases/releases/download/v#{version}/Bearly-#{version}.AppImage"
source_sha256 'b7a2fa82c91ec20cc07263273e0274bd034e0a27ac9fd4f1e4895095842e1f5a'
no_compile_needed
no_shrink
depends_on 'gtk3'
depends_on 'sommelier' => :logical
def self.patch
system "sed -i 's,AppRun,bearly,' bearly.desktop"
system "sed -i '24iAPPDIR=#{CREW_PREFIX}/share/bearly' AppRun"
end
def self.build
File.write 'bearly.sh', <<~EOF
#!/bin/bash
cd #{CREW_PREFIX}/share/bearly
GDK_BACKEND=x11 ./AppRun "$@"
EOF
end
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.cp_r 'usr/share', CREW_DEST_PREFIX
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/bearly"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/applications"
FileUtils.mv 'bearly.desktop', "#{CREW_DEST_PREFIX}/share/applications"
FileUtils.install 'bearly.sh', "#{CREW_DEST_PREFIX}/bin/bearly", mode: 0o755
FileUtils.mv Dir['*'], "#{CREW_DEST_PREFIX}/share/bearly"
end
def self.postinstall
ExitMessage.add "\nType 'bearly' to get started.\n".lightblue
end
end