mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 23:48:01 -05:00
* Add unbuilt github_cli to updater-github_cli-2.83.1 * updater-github_cli-2.83.1: Package File Update Run on linux/386 container. * updater-github_cli-2.83.1: Package File Update Run on linux/amd64 container. * updater-github_cli-2.83.1: Package File Update Run on linux/arm/v7 container. --------- Co-authored-by: satmandu <satmandu@users.noreply.github.com> Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com>
31 lines
1.2 KiB
Ruby
31 lines
1.2 KiB
Ruby
require 'package'
|
|
|
|
class Github_cli < Package
|
|
description 'Official Github CLI tool'
|
|
homepage 'https://cli.github.com/'
|
|
version '2.83.1'
|
|
license 'MIT'
|
|
compatibility 'all'
|
|
source_url({
|
|
aarch64: "https://github.com/cli/cli/releases/download/v#{version}/gh_#{version}_linux_armv6.tar.gz",
|
|
armv7l: "https://github.com/cli/cli/releases/download/v#{version}/gh_#{version}_linux_armv6.tar.gz",
|
|
i686: "https://github.com/cli/cli/releases/download/v#{version}/gh_#{version}_linux_386.tar.gz",
|
|
x86_64: "https://github.com/cli/cli/releases/download/v#{version}/gh_#{version}_linux_amd64.tar.gz"
|
|
})
|
|
source_sha256({
|
|
aarch64: '1b77954a84193011b1421b3f440e5973430600deefb2bf04d8380bc09e7d35a6',
|
|
armv7l: '1b77954a84193011b1421b3f440e5973430600deefb2bf04d8380bc09e7d35a6',
|
|
i686: '79e6be008139dd3edf701af3e6e293254cca7e48104b8c3eaa9ed21d1c46d0af',
|
|
x86_64: '1c5252d4ce3db07b51c01ff0b909583da6364ff3fdc06d0c2e75e62dc0380a34'
|
|
})
|
|
|
|
no_compile_needed
|
|
no_shrink
|
|
no_strip # ./usr/local/bin/gh: 1: ./usr/local/bin/gh: Syntax error: redirection unexpected (expecting ")")
|
|
|
|
def self.install
|
|
FileUtils.install 'bin/gh', "#{CREW_DEST_PREFIX}/bin/gh", mode: 0o755
|
|
FileUtils.mv 'share', CREW_DEST_PREFIX
|
|
end
|
|
end
|