command
module
Version:
v1.12.6
Opens a new window with list of versions in this module.
Published: Dec 30, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Manager
自定义软件和脚本管理器
Table of Contents
适配
- Linux: 适配
- macOS: 适配
- Windows: 适配
安装
一键安装
curl -fsSL https://raw.githubusercontent.com/YHYJ/manager/main/install.sh | sudo bash -s
也可以从 GitHub Releases 下载解压后使用
编译安装
当前平台
如果要为当前平台编译,可以使用以下命令:
go build -gcflags="-trimpath" -ldflags="-s -w -X github.com/yhyj/manager/general.GitCommitHash=`git rev-parse HEAD` -X github.com/yhyj/manager/general.BuildTime=`date +%s` -X github.com/yhyj/manager/general.BuildBy=$USER" -o build/manager 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, darwin 或 windows
- GOARCH: 根据当前系统架构设置
用法
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.