From f32ecf35d59797e3cd847d25bec22ebacc9323d6 Mon Sep 17 00:00:00 2001 From: TongTongStudio Date: Sat, 28 Nov 2026 05:31:46 +0800 Subject: [PATCH] Add self-contained Linux desktop publish profile --- Properties/PublishProfiles/Linux-x64.pubxml | 7 +++++++ README.md | 9 +++++++++ 2 files changed, 16 insertions(+) create mode 100644 Properties/PublishProfiles/Linux-x64.pubxml diff --git a/Properties/PublishProfiles/Linux-x64.pubxml b/Properties/PublishProfiles/Linux-x64.pubxml new file mode 100644 index 0000000..e6675f4 --- /dev/null +++ b/Properties/PublishProfiles/Linux-x64.pubxml @@ -0,0 +1,7 @@ + + + Release + linux-x64 + true + + diff --git a/README.md b/README.md index 157e983..37a19a1 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,15 @@ dotnet run --project EmulatorManager.csproj ## 构建、运行并同步 +在 Linux x64 上可发布自带 .NET 运行时的版本: + +```sh +dotnet publish EmulatorManager.csproj -c Release -p:PublishProfile=Linux-x64 +./bin/Release/net10.0/linux-x64/publish/EmulatorManager +``` + +请整目录分发 `publish/`。普通构建的 `bin/Release/net10.0/EmulatorManager` 依赖系统可发现的 .NET。若 SDK 装在 `~/.dotnet`,也可以执行 `~/.dotnet/dotnet bin/Release/net10.0/EmulatorManager.dll`。 + 在已配置指定 Gitea 仓库为 `origin` 的工作区运行: ```sh