优化星尘平台发布包
This commit is contained in:
parent
d9769a8e48
commit
bee605bb33
|
@ -14,7 +14,7 @@
|
|||
<Delay>3000</Delay>
|
||||
<!--应用服务集合-->
|
||||
<Services>
|
||||
<ServiceInfo Name="starServer" FileName="dotnet" Arguments="StarServer.dll" WorkingDirectory="..\server" Enable="true" AutoStart="true" MaxMemory="0" />
|
||||
<ServiceInfo Name="starWeb" FileName="StarWeb.zip" Arguments="urls=http://*:6680" WorkingDirectory="..\web" Enable="true" AutoStart="true" MaxMemory="0" />
|
||||
<ServiceInfo Name="StarServer" FileName="dotnet" Arguments="StarServer.dll" WorkingDirectory="..\server" Enable="true" AutoStart="true" MaxMemory="0" />
|
||||
<ServiceInfo Name="StarWeb" FileName="StarWeb.zip" Arguments="urls=http://*:6680" WorkingDirectory="..\web" Enable="true" AutoStart="true" MaxMemory="0" />
|
||||
</Services>
|
||||
</StarAgent>
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
# 获取处理器架构
|
||||
arch=$(uname -m)
|
||||
ver="9.0.0"
|
||||
ver="9.0.6"
|
||||
prefix="aspnetcore-runtime-$ver-linux"
|
||||
source="http://x.newlifex.com"
|
||||
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
|
||||
#!/bin/bash
|
||||
|
||||
gzfile="aspnetcore-runtime-3.1.30-linux-x64.tar.gz"
|
||||
if [ ! -f "$gzfile" ]; then
|
||||
wget "http://x.newlifex.com/dotnet/"$gzfile
|
||||
fi
|
||||
if [ ! -d "/usr/share/dotnet/" ]; then
|
||||
mkdir /usr/share/dotnet
|
||||
fi
|
||||
tar -xzf $gzfile -C /usr/share/dotnet
|
||||
if [ ! -f "/usr/bin/dotnet" ]; then
|
||||
ln /usr/share/dotnet/dotnet /usr/bin/dotnet -s
|
||||
fi
|
||||
|
||||
dotnet --info
|
||||
|
||||
rm $gzfile -f
|
||||
rm net31.sh
|
||||
|
|
@ -0,0 +1,56 @@
|
|||
|
||||
#!/bin/bash
|
||||
|
||||
# 获取处理器架构
|
||||
arch=$(uname -m)
|
||||
ver="7.0.20"
|
||||
prefix="aspnetcore-runtime-$ver-linux"
|
||||
source="http://x.newlifex.com"
|
||||
|
||||
echo arch: $arch
|
||||
|
||||
# 识别Alpine
|
||||
if [ -f "/proc/version" ]; then
|
||||
cat /proc/version | grep -q -E 'musl|Alpine'
|
||||
if [ $? -eq 0 ]; then
|
||||
prefix="$prefix-musl"
|
||||
apk add libgcc libstdc++
|
||||
fi
|
||||
fi
|
||||
|
||||
# 根据处理器架构选择下载的文件
|
||||
if [ $arch == "x86_64" ]; then
|
||||
gzfile="$prefix-x64.tar.gz"
|
||||
elif [ $arch == "amd64" ]; then
|
||||
gzfile="$prefix-x64.tar.gz"
|
||||
elif [ $arch == "aarch64" ]; then
|
||||
gzfile="$prefix-arm64.tar.gz"
|
||||
elif [ $arch == "armv7l" ]; then
|
||||
gzfile="$prefix-arm.tar.gz"
|
||||
else
|
||||
gzfile="$prefix-$arch.tar.gz"
|
||||
fi
|
||||
|
||||
echo gzfile: $gzfile
|
||||
|
||||
if [ ! -f "$gzfile" ]; then
|
||||
wget $source/dotnet/$ver/$gzfile
|
||||
fi
|
||||
|
||||
# Ubuntu默认安装在/usr/lib目录
|
||||
target="/usr/lib/dotnet"
|
||||
if [ ! -d $target ]; then
|
||||
target="/usr/share/dotnet"
|
||||
fi
|
||||
|
||||
echo target: $target
|
||||
|
||||
if [ ! -d $target ]; then
|
||||
mkdir $target
|
||||
fi
|
||||
tar -xzf $gzfile -C $target
|
||||
if [ ! -f "/usr/bin/dotnet" ]; then
|
||||
ln $target/dotnet /usr/bin/dotnet -s
|
||||
fi
|
||||
|
||||
dotnet --info
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
# 获取处理器架构
|
||||
arch=$(uname -m)
|
||||
ver="8.0.11"
|
||||
ver="8.0.17"
|
||||
prefix="aspnetcore-runtime-$ver-linux"
|
||||
source="http://x.newlifex.com"
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
# 获取处理器架构
|
||||
arch=$(uname -m)
|
||||
ver="9.0.0"
|
||||
ver="9.0.6"
|
||||
prefix="aspnetcore-runtime-$ver-linux"
|
||||
source="http://x.newlifex.com"
|
||||
|
||||
|
|
BIN
Tools/clover.exe
BIN
Tools/clover.exe
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue