Skip to content

Commit

Permalink
2023-09-08
Browse files Browse the repository at this point in the history
  • Loading branch information
qtgolang committed Sep 8, 2023
1 parent 1759020 commit 9e11f08
Show file tree
Hide file tree
Showing 1,067 changed files with 537,072 additions and 145 deletions.
4 changes: 2 additions & 2 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions BuildLibrary/Linux.sh → Build-Linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ echo "正在编译..."
set CGO_ENABLED=1
set GOOS=linux
set GOARCH=386
tmpPath=$(dirname "$(readlink -f "$0")")
parentPath=$(dirname "$tmpPath")
cd "$parentPath"

go build -buildmode=c-shared -ldflags "-s -w" -o "$tmpPath/Library/Sunny.so"
go build -buildmode=c-shared -ldflags "-s -w" -o "export/LinuxSunny.so"
# 检查命令的退出状态码
if [ $? -ne 0 ]; then
echo ""
Expand Down
5 changes: 5 additions & 0 deletions Build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
set CGO_ENABLED=1
set GOOS=windows
set GOARCH=386
go build -buildmode=c-shared -ldflags "-s -w" -o "export\Sunny.dll"
pause
10 changes: 0 additions & 10 deletions BuildLibrary/Build.bat

This file was deleted.

10 changes: 0 additions & 10 deletions BuildLibrary/Buildx64.bat

This file was deleted.

5 changes: 5 additions & 0 deletions Buildx64.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
set CGO_ENABLED=1
set GOOS=windows
set GOARCH=amd64
go build -buildmode=c-shared -ldflags "-s -w" -o "export\Sunny64.dll"
pause
6 changes: 3 additions & 3 deletions api.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/*
本类为所有动态库导出函数集合
本类为所有DLL导出函数集合
*/
package main

import "C"
import (
"github.com/qtgolang/SunnyNet/Api"
"github.com/qtgolang/SunnyNet/public"
"SunnyNet/project/Api"
"SunnyNet/project/public"
)

// 获取SunnyNet版本
Expand Down
2 changes: 1 addition & 1 deletion BuildLibrary/Library/Sunny.h → export/LinuxSunny.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Code generated by cmd/cgo; DO NOT EDIT. */

/* package github.com/qtgolang/SunnyNet */
/* package SunnyNet */


#line 1 "cgo-builtin-export-prolog"
Expand Down
Binary file not shown.
Binary file renamed BuildLibrary/Library/Sunny.dll → export/Sunny.dll
Binary file not shown.
Loading

0 comments on commit 9e11f08

Please sign in to comment.