2025-11-06

This commit is contained in:
Qin tian
2025-11-06 06:31:01 +08:00
parent 8220474f90
commit 191a092cd5
18 changed files with 1012 additions and 2237 deletions

View File

@@ -1,10 +0,0 @@
@echo off
set CGO_ENABLED=1
set GOOS=windows
set GOARCH=386
set tmpPath=%~dp0
cd %tmpPath:~0,1%:
for %%I in ("%tmpPath%..\") do set "parentPath=%%~fI"
cd %parentPath%
go build -trimpath -buildmode=c-shared -tags mini -ldflags "-s -w" -o "G:\Sunny\SunnyNet\BuildLibrary\SunnyNet.dll"
@echo on

View File

@@ -0,0 +1,20 @@
echo "" > /dev/null
echo "正在编译..."
set CGO_ENABLED=1
set GOOS=darwin
set GOARCH=amd64
tmpPath=$(dirname "$(readlink -f "$0")")
parentPath=$(dirname "$tmpPath")
cd "$parentPath"
go build -trimpath -buildmode=c-shared -ldflags "-s -w" -o "$tmpPath/Library/darwin/amd64/SunnyNet.dylib"
# 检查命令的退出状态码
if [ $? -ne 0 ]; then
echo ""
echo ""
echo "编译失败!"
else
echo ""
echo ""
echo "编译完成!"
fi

View File

@@ -0,0 +1,20 @@
echo "" > /dev/null
echo "正在编译..."
set CGO_ENABLED=1
set GOOS=darwin
set GOARCH=arm64
tmpPath=$(dirname "$(readlink -f "$0")")
parentPath=$(dirname "$tmpPath")
cd "$parentPath"
go build -trimpath -buildmode=c-shared -ldflags "-s -w" -o "$tmpPath/Library/darwin/arm64/SunnyNet.dylib"
# 检查命令的退出状态码
if [ $? -ne 0 ]; then
echo ""
echo ""
echo "编译失败!"
else
echo ""
echo ""
echo "编译完成!"
fi

Binary file not shown.

File diff suppressed because it is too large Load Diff