about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBen Harris <ben@tilde.team>2022-08-05 14:29:10 -0400
committerBen Harris <ben@tilde.team>2022-08-05 14:30:06 -0400
commitf0f9b300f489e907715b1dfdb6aaadb0c4f9b96e (patch)
tree8723ea8f5c7c8f752562472ae0aba4df3f77b19d
parent1b872a0ede581b1edef3c04d5eec405c87056f3c (diff)
allow standalong publishing HEAD main
-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>