代码拉取完成,页面将自动刷新
同步操作将从 少年郎秃头呀/p2p-tunnel 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
target=$(cd $(dirname $0); pwd)
image="snltty/p2p-tunnel"
fs=('client' 'server')
ps=('alpine' 'debian')
rs=('x64' 'arm64')
for f in ${fs[@]}
do
for p in ${ps[@]}
do
for r in ${rs[@]}
do
dotnet publish ./${f}/${f}.service -c release -f net7.0 -o ./public/publish/linux-${p}-${r}/${f} -r ${p}-${r} --self-contained true -p:TieredPGO=true -p:DebugType=none -p:DebugSymbols=false -p:PublishSingleFile=true -p:PublishTrimmed=true -p:EnableCompressionInSingleFile=true -p:DebuggerSupport=false -p:EnableUnsafeBinaryFormatterSerialization=false -p:EnableUnsafeUTF7Encoding=false -p:HttpActivityPropagationSupport=false -p:InvariantGlobalization=true -p:MetadataUpdaterSupport=false -p:UseSystemResourceKeys=true -p:TrimMode=partial
cp -rf public/publish/linux-${p}-${r}/${f}/${f}.service public/publish/linux-${p}-${r}/${f}/service.run
rm -rf public/publish/linux-${p}-${r}/${f}/${f}.service
cp -rf client/client.service/Dockerfile-${p}-${f} public/publish/linux-${p}-${r}/${f}/Dockerfile-${p}-${f}
cp -rf client/plugins/client.service.vea/tun2socks-linux-${r} public/publish/linux-${p}-${r}/${f}/tun2socks-linux
rm -rf public/publish/linux-${p}-${r}/${f}/tun2socks-osx
rm -rf public/publish/linux-${p}-${r}/${f}/tun2socks-windows.exe
rm -rf public/publish/linux-${p}-${r}/${f}/wintun.dll
cp -rf client/plugins/client.service.ui/client.service.ui.api.service/public/web/ public/publish/${p}-${r}-single/client/public/web/
done
cd public/publish/linux-${p}-x64/${f}
docker buildx build -f ${target}/public/publish/linux-${p}-x64/${f}/Dockerfile-${p}-${f} --platform="linux/x86_64" --force-rm -t "${image}-${f}-${p}-x64" . --push
cd ../../../../
cd public/publish/linux-${p}-arm64/${f}
docker buildx build -f ${target}/public/publish/linux-${p}-arm64/${f}/Dockerfile-${p}-${f} --platform="linux/arm64" --force-rm -t "${image}-${f}-${p}-arm64" . --push
cd ../../../../
done
done
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。