rolling

command module
v0.7.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

README

Rolling


Go build and release by GoReleaser


Table of Contents



适用于 Arch Linux 的系统安装信息统计工具

Install

一键安装

curl -fsSL https://raw.githubusercontent.com/YHYJ/rolling/main/install.sh | sudo bash -s

Usage

  • view子命令

    该子命令用于查看系统安装和更新信息

  • version子命令

    查看程序版本信息

  • help子命令

    查看程序帮助信息

Compile

当前平台

go build -gcflags="-trimpath" -ldflags="-s -w -X github.com/yhyj/rolling/general.GitCommitHash=`git rev-parse HEAD` -X github.com/yhyj/rolling/general.BuildTime=`date +%s` -X github.com/yhyj/rolling/general.BuildBy=$USER" -o build/rolling main.go

交叉编译

使用命令go tool dist list查看支持的平台

Linux
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -gcflags="-trimpath" -ldflags="-s -w -X github.com/yhyj/rolling/general.GitCommitHash=`git rev-parse HEAD` -X github.com/yhyj/rolling/general.BuildTime=`date +%s` -X github.com/yhyj/rolling/general.BuildBy=$USER" -o build/rolling main.go

使用uname -m确定硬件架构

  • 结果是 x86_64 则 GOARCH=amd64
  • 结果是 aarch64 则 GOARCH=arm64

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL