Giter VIP home page Giter VIP logo

rolling's Introduction

Rolling

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


Go build and release by GoReleaser


Table of Contents



适配

  • Linux: 适配 Arch Linux 及基于 Arch Linux 的发行版
  • macOS: 不适配
  • Windows: 不适配

安装

一键安装

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

也可以从 GitHub Releases 下载解压后使用

编译安装

当前平台

如果要为当前平台编译,可以使用以下命令:

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 和 macOS 使用命令uname -m,Windows 使用命令echo %PROCESSOR_ARCHITECTURE% 确认系统架构

  • 例如 x86_64 则设 GOARCH=amd64
  • 例如 aarch64 则设 GOARCH=arm64
  • ...

设置如下系统变量后使用 编译安装 的命令即可进行交叉编译:

  • CGO_ENABLED: 不使用 CGO,设为 0
  • GOOS: 设为 linux
  • GOARCH: 根据当前系统架构设置

用法

  • view子命令

    查看系统安装和更新信息

  • version子命令

    查看程序版本信息

  • help子命令

    查看程序帮助信息

rolling's People

Contributors

yhyj avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.