Files
chromebrew/packages/bun.rb
2024-07-17 15:33:47 -04:00

24 lines
612 B
Ruby
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
require 'package'
class Bun < Package
description 'Incredibly fast JavaScript runtime, bundler, test runner, and package manager all in one'
homepage 'https://bun.sh/'
version '1.1.20'
license 'MIT'
compatibility 'x86_64'
source_url 'SKIP'
no_compile_needed
no_shrink
def self.install
ENV['BUN_INSTALL'] = CREW_DEST_PREFIX.to_s
system "curl -fsSL https://bun.sh/install | bash -s 'bun-v#{version}'"
FileUtils.ln_sf "#{CREW_PREFIX}/bin/bun", "#{CREW_DEST_PREFIX}/bin/bunx"
end
def self.postinstall
ExitMessage.add "\nType 'bun' to get started.\n".lightblue
end
end