about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--README.md6
-rw-r--r--puny.csproj5
2 files changed, 11 insertions, 0 deletions
diff --git a/README.md b/README.md
index b8b4b2b..5b1a265 100644
--- a/README.md
+++ b/README.md
@@ -7,3 +7,9 @@ it will iterate through all arguments and display the normalized punycode and un
 ```shell
 dotnet run -- tildÉ™.net
 ```
+
+to get a standalone linux executable:
+
+```shell
+dotnet publish -c Release -r linux-x64 --self-contained
+```
diff --git a/puny.csproj b/puny.csproj
index c2ecf2a..965543a 100644
--- a/puny.csproj
+++ b/puny.csproj
@@ -4,6 +4,11 @@
         <OutputType>Exe</OutputType>
         <TargetFramework>net6.0</TargetFramework>
         <ImplicitUsings>enable</ImplicitUsings>
+        <PublishSingleFile>true</PublishSingleFile>
+        <SelfContained>true</SelfContained>
+        <RuntimeIdentifier>linux-x64</RuntimeIdentifier>
+        <PublishReadyToRun>true</PublishReadyToRun>
+        <PublishTrimmed>true</PublishTrimmed>
     </PropertyGroup>
 
     <ItemGroup>