Skip to content

Commit

Permalink
Merge pull request #2406 from Ninjastorm380/crossplatform
Browse files Browse the repository at this point in the history
fix directory not found when using .net 6
  • Loading branch information
quajak committed Sep 7, 2022
2 parents 0ecab33 + c752c48 commit 1f75e0d
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,23 @@ $(COMMON_DIR):
.PHONY: build
build:
@echo "Building IL2CPU"
$(DOTNET) clean $(IL2CPU_DIR)
$(DOTNET) build $(IL2CPU_DIR) $(DOTNETFLAGS)
$(DOTNET) pack $(IL2CPU_DIR) $(DOTNETFLAGS)

@echo "Building Cosmos"
$(DOTNET) clean $(THISDIR)/source/Cosmos.Common
$(DOTNET) clean $(THISDIR)/source/Cosmos.Debug.Kernel
$(DOTNET) clean $(THISDIR)/source/Cosmos.Debug.Kernel.Plugs.Asm
$(DOTNET) clean $(THISDIR)/source/Cosmos.Core
$(DOTNET) clean $(THISDIR)/source/Cosmos.Core_Asm
$(DOTNET) clean $(THISDIR)/source/Cosmos.Core_Plugs
$(DOTNET) clean $(THISDIR)/source/Cosmos.HAL2
$(DOTNET) clean $(THISDIR)/source/Cosmos.System2
$(DOTNET) clean $(THISDIR)/source/Cosmos.System2_Plugs
$(DOTNET) clean $(THISDIR)/source/Cosmos.Build.Tasks


$(DOTNET) pack $(THISDIR)/source/Cosmos.Common $(DOTNETFLAGS)
$(DOTNET) pack $(THISDIR)/source/Cosmos.Debug.Kernel $(DOTNETFLAGS)
$(DOTNET) pack $(THISDIR)/source/Cosmos.Debug.Kernel.Plugs.Asm $(DOTNETFLAGS)
Expand Down Expand Up @@ -84,10 +97,10 @@ install:
@cp -r $(THISDIR)/Artwork/XSharp/XSharp.ico $(DESTDIR)/XSharp/
@cp -r $(THISDIR)/Artwork/Cosmos.ico $(DESTDIR)/

@cp -r $(IL2CPU_DIR)/source/IL2CPU/bin/Debug/net5.0/linux-x64/publish/* $(DESTDIR)/Build/IL2CPU/
@cp -r $(THISDIR)/source/Cosmos.Core_Plugs/bin/Debug/net5.0/publish/*.dll $(DESTDIR)/Kernel/
@cp -r $(THISDIR)/source/Cosmos.System2_Plugs/bin/Debug/net5.0/publish/*.dll $(DESTDIR)/Kernel/
@cp -r $(THISDIR)/source/Cosmos.HAL2/bin/Debug/net5.0/publish/*.dll $(DESTDIR)/Kernel/
@cp -r $(IL2CPU_DIR)/source/IL2CPU/bin/Debug/*/linux-x64/publish/* $(DESTDIR)/Build/IL2CPU/
@cp -r $(THISDIR)/source/Cosmos.Core_Plugs/bin/Debug/*/publish/*.dll $(DESTDIR)/Kernel/
@cp -r $(THISDIR)/source/Cosmos.System2_Plugs/bin/Debug/*/publish/*.dll $(DESTDIR)/Kernel/
@cp -r $(THISDIR)/source/Cosmos.HAL2/bin/Debug/*/publish/*.dll $(DESTDIR)/Kernel/
@cp -r $(THISDIR)/source/Cosmos.Debug.Kernel.Plugs.Asm/bin/Debug/netstandard2.0/publish/*.dll $(DESTDIR)/Kernel/

@cp -r $(THISDIR)/Build/HyperV/*.vhdx $(DESTDIR)/Build/HyperV/
Expand Down

0 comments on commit 1f75e0d

Please sign in to comment.