mirror of
https://github.com/qtgolang/SunnyNet.git
synced 2026-08-30 22:11:29 -07:00
2025-11-06
This commit is contained in:
@@ -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
|
||||
20
BuildLibrary/MacOs_amd64.sh
Normal file
20
BuildLibrary/MacOs_amd64.sh
Normal 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
|
||||
20
BuildLibrary/MacOs_arm64.sh
Normal file
20
BuildLibrary/MacOs_arm64.sh
Normal 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
Reference in New Issue
Block a user