1 Star 0 Fork 105

Robin/p2p-tunnel

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
publish.bat 2.26 KB
一键复制 编辑 原始数据 按行查看 历史
xr 提交于 2022-04-24 01:48 . 更细致的拆分,更容易扩展
@echo off
SET target=%~dp0
echo publish client ==============================================
cd %target%/client/client.service
echo publish win-x64----------------------------------------------
dotnet publish -c release -r win-x64 --self-contained=false -f net6.0 -o ./public/publish/win-x64 -p:DebugType=none -p:DebugSymbols=false
dotnet publish -c release -r win-x64 --self-contained=true -f net6.0 -o ./public/publish-single/win-x64 -p:DebugType=none -p:DebugSymbols=false -p:EnableCompressionInSingleFile=true -p:PublishSingleFile=true -p:PublishTrimmed=true -p:IncludeNativeLibrariesForSelfExtract=true
echo publish linux-x64--------------------------------------------
dotnet publish -c release -r linux-x64 --self-contained=false -f net6.0 -o ./public/publish/linux-x64 -p:DebugType=none -p:DebugSymbols=false
dotnet publish -c release -r linux-x64 --self-contained=true -f net6.0 -o ./public/publish-single/linux-x64 -p:DebugType=none -p:DebugSymbols=false -p:EnableCompressionInSingleFile=true -p:PublishSingleFile=true -p:PublishTrimmed=true -p:IncludeNativeLibrariesForSelfExtract=true
echo publish client ============================================== OK
echo publish server ==============================================
cd %target%/server/server.service
echo publish win-x64----------------------------------------------
dotnet publish -c release -r win-x64 --self-contained=false -f net6.0 -o ./public/publish/win-x64 -p:DebugType=none -p:DebugSymbols=false
dotnet publish -c release -r win-x64 --self-contained=true -f net6.0 -o ./public/publish-single/win-x64 -p:DebugType=none -p:DebugSymbols=false -p:EnableCompressionInSingleFile=true -p:PublishSingleFile=true -p:PublishTrimmed=true -p:IncludeNativeLibrariesForSelfExtract=true
echo publish linux-x64--------------------------------------------
dotnet publish -c release -r linux-x64 --self-contained=false -f net6.0 -o ./public/publish/linux-x64 -p:DebugType=none -p:DebugSymbols=false
dotnet publish -c release -r linux-x64 --self-contained=true -f net6.0 -o ./public/publish-single/linux-x64 -p:DebugType=none -p:DebugSymbols=false -p:EnableCompressionInSingleFile=true -p:PublishSingleFile=true -p:PublishTrimmed=true -p:IncludeNativeLibrariesForSelfExtract=true
echo publish server ============================================== OK
pause
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/jdcheng/p2p-tunnel.git
git@gitee.com:jdcheng/p2p-tunnel.git
jdcheng
p2p-tunnel
p2p-tunnel
master

搜索帮助