Skip to content

Commit 97bad45

Browse files
committed
fix: Linux build
1 parent 9615437 commit 97bad45

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

resources/linux/publish-and-install.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
if [ -x $1 || -x $2 ];
3+
if [ -z $1 || -z $2 ]
44
then
55
echo "Usage: $0 prefix runtime"
66
exit 1
@@ -36,13 +36,14 @@ mkdir -p $DATA_DIR
3636
echo "---------------------------"
3737
echo " Publishing application... "
3838
echo "---------------------------"
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
4243
else
4344
dotnet publish -c Release "../../$PROJECT/$PROJECT.csproj" --runtime $RUNTIME --self-contained true
4445
fi
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
4849
echo "---------------------------"

0 commit comments

Comments
 (0)