mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 15:13:56 -05:00
26 lines
755 B
Ruby
26 lines
755 B
Ruby
require 'package'
|
|
|
|
class Codex < Package
|
|
description 'Lightweight coding agent that runs in your terminal'
|
|
homepage 'https://github.com/openai/codex'
|
|
version '0.64.0'
|
|
license 'Apache-2.0'
|
|
compatibility 'x86_64'
|
|
min_glibc '2.28'
|
|
source_url "https://github.com/openai/codex/releases/download/rust-v#{version}/codex-x86_64-unknown-linux-gnu.zst"
|
|
source_sha256 'd13fc4ea818b9bb5c2d590ebd4f20abc5d26efd5bd8aa8a477a6271fd0814c9a'
|
|
|
|
depends_on 'zstd'
|
|
|
|
no_compile_needed
|
|
|
|
def self.install
|
|
system 'zstd -dv codex-x86_64-unknown-linux-gnu.zst'
|
|
FileUtils.install 'codex-x86_64-unknown-linux-gnu', "#{CREW_DEST_PREFIX}/bin/codex", mode: 0o755
|
|
end
|
|
|
|
def self.postinstall
|
|
ExitMessage.add "\nType 'codex' to get started.\n"
|
|
end
|
|
end
|