diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 7beca10..3cf05bb 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -22,11 +22,11 @@ jobs: - name: Build run: dotnet build --no-restore - name: Publish - run: dotnet publish -r linux-x64 + run: dotnet publish -r linux-x64 --self-contained - name: Upload a Build Artifact uses: actions/upload-artifact@v3.1.0 with: # Artifact name name: Linux build # A file, directory or wildcard pattern that describes what to upload - path: bin/Debug/net6.0/linux-x64/publish/asdlteroids + path: Mine2d/bin/Debug/net6.0/linux-x64/publish/Mine2d diff --git a/Mine2d/Program.cs b/Mine2d/Program.cs index b6399bc..625c8e6 100644 --- a/Mine2d/Program.cs +++ b/Mine2d/Program.cs @@ -4,7 +4,7 @@ public class Program { public static void Main(string[] args) { - var isHost = args.Contains("--host"); + var isHost = !args.Contains("--client"); // bool isHost = true; var game = new Mine2d(isHost); game.Run();