mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 23:48:01 -05:00
* Add unbuilt codex to updater-codex-0.80.0 * updater-codex-0.80.0: 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>
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.80.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 'df8faf07185fc4766890a48d7e3865b5972ca94d6393cf78829776e96b1b1b71'
|
|
|
|
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
|