Auto-build-Golang-Releases
1.0.2
dotnet tool install --global Auto-build-Golang-Releases --version 1.0.2
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local Auto-build-Golang-Releases --version 1.0.2
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Auto-build-Golang-Releases&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package Auto-build-Golang-Releases --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Auto-build-Golang-Releases
One click automatic cross compilation of golang binaries 一键自动交叉编译golang的二进制文件
使用
在你的
go项目的根目录
执行命令(需要安装dotnet-tool
)最终文件会放在
releases
文件夹中
# 编译全部平台
gor -a
# win 64
gor -w
# linux 64
gor -l
# macos 64
gor -m
# 显示所有参数帮助
gor --help
PS E:\Work\CSharpProject\Auto-build-Golang-Releases\Auto-build-Golang-Releases> gor --help
=========================== 启动成功 ===========================
Auto-build-Golang-Releases 1.0.1
Copyright (C) 2021 Auto-build-Golang-Releases
--win32 编译出 windows 32位 go程序
-w, --win64 编译出 windows 64位 go程序
--linux32 编译出 linux 32位 go程序
-l, --linux64 编译出 linux 64位 go程序
-m, --macos 编译出 macos 64位 go程序
-a, --all 编译所有平台的go程序
--help Display this help screen.
--version Display version information.
当前 0 个线程正在运行...
=========================== 全部结束,按回车键退出程序 ===========================
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.