File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/sh
22
3- if [ -x $1 || -x $2 ];
3+ if [ -z $1 || -z $2 ]
44then
55 echo " Usage: $0 prefix runtime"
66 exit 1
@@ -36,13 +36,14 @@ mkdir -p $DATA_DIR
3636echo " ---------------------------"
3737echo " Publishing application... "
3838echo " ---------------------------"
39- if [ -n " $container " ]; then
40- echo " [INFO] Detected container environment, using local nuget sources."
39+ export DOTNET_CLI_TELEMETRY_OPTOUT=1
40+ if [ -n " $container " ]
41+ then
4142 dotnet publish -c Release --source " $CURRENT_PWD /nuget-sources" --source " /usr/lib/sdk/dotnet10/nuget/packages" " ../../$PROJECT /$PROJECT .csproj" --runtime $RUNTIME --self-contained true
4243else
4344 dotnet publish -c Release " ../../$PROJECT /$PROJECT .csproj" --runtime $RUNTIME --self-contained true
4445fi
45- cp -r --remove-destination " ../../$PROJECT /bin/Release/net10.0/$RUNTIME /publish/* " $LIB_DIR
46+ cp -a ../../$PROJECT /bin/Release/net10.0/$RUNTIME /publish/. $LIB_DIR
4647
4748# Create desktop file
4849echo " ---------------------------"
You can’t perform that action at this time.
0 commit comments