tytdlite/Makefile

11 lines
766 B
Makefile
Raw Normal View History

2024-07-08 00:35:42 +00:00
PUBLISH:= publish
all: $(PUBLISH)/linux-x64 $(PUBLISH)/linux-arm $(PUBLISH)/linux-arm64 $(PUBLISH)/win-x86 $(PUBLISH)/win-x64 $(PUBLISH)/win-arm64 $(PUBLISH)/osx-x64 $(PUBLISH)/osx-arm64 $(PUBLISH)/mono
2024-07-01 00:50:11 +00:00
2024-07-08 00:35:42 +00:00
$(PUBLISH)/mono:
mkdir -p $(PUBLISH)/mono || true && cd "TYTDLite.ServerNetFwMono" && dotnet $(PUBLISH) -c Release -o ../$(PUBLISH)/mono && cd ../$(PUBLISH)/mono && tar cvzf ../mono.tar.gz . && zip -r ../mono.zip . && rm -r * && mv ../mono.tar.gz . && mv ../mono.zip .
$(PUBLISH)/%:
mkdir -p $@ || true && cd "TYTDLite.ServerCli" && dotnet $(PUBLISH) -c Release -o ../$@ --self-contained -p:$(PUBLISH)ReadyToRun=true -p:$(PUBLISH)SingleFile=true -r $(notdir $@)
2024-07-01 00:50:11 +00:00
2024-07-08 00:30:14 +00:00
test:
cd TYTDLite.ServerCli && dotnet build && cd ../TYTDLite.ServerNetFwMono/ && dotnet build