diff --git a/.gitignore b/.gitignore index f30c023..cad8fe1 100644 --- a/.gitignore +++ b/.gitignore @@ -546,3 +546,4 @@ FodyWeavers.xsd .idea/** *.s2pk s2pk.toml +dist/** diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f3f883a --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +# Makefile for building and packaging the Sims 2 .s2pk CLI tool + +APP_NAME = s2pk +CONFIGURATION = Release +RUNTIME_LINUX = linux-x64 +RUNTIME_MAC = osx-x64 +OUTPUT_DIR = ./dist + +.PHONY: all clean build-linux build-mac package-linux package-mac + +all: build-linux build-mac package-linux package-mac + +clean: + rm -rf bin obj $(OUTPUT_DIR) + +build-linux: + dotnet publish -c $(CONFIGURATION) -r $(RUNTIME_LINUX) --self-contained true /p:PublishSingleFile=true -o $(OUTPUT_DIR)/$(APP_NAME)-linux + +build-mac: + dotnet publish -c $(CONFIGURATION) -r $(RUNTIME_MAC) --self-contained true /p:PublishSingleFile=true -o $(OUTPUT_DIR)/$(APP_NAME)-mac + +package-linux: + tar -czvf $(OUTPUT_DIR)/$(APP_NAME)-linux.tar.gz -C $(OUTPUT_DIR)/$(APP_NAME)-linux . + +package-mac: + tar -czvf $(OUTPUT_DIR)/$(APP_NAME)-mac.tar.gz -C $(OUTPUT_DIR)/$(APP_NAME)-mac . diff --git a/README.md b/README.md index acb2f45..14f7030 100644 --- a/README.md +++ b/README.md @@ -33,10 +33,10 @@ s2pk unpack -p ./output.s2pk -d "%USERPROFILE%\Documents\EA Games\The Sims 2\Dow ## 🗓️ Update Cycle -| Type | Frequency | Notes | -| ------------ | ---------------- | ---------------------------------------- | -| Minor Update | Every 3–6 months | Small enhancements, non-breaking changes | -| Patch Update | As needed | Bug fixes, security updates | +| Type | Frequency | Notes | +| ---------------- | ---------------- | ---------------------------------------- | +| Minor Update | Every 3–6 months | Small enhancements, non-breaking changes | +| Patch Update | As needed | Bug fixes, security updates | | Major Update[^1] | As needed | Framework upgrades, major refactors | - Reserve months: June (Mid-Year Chill) & December (End-Year Freeze)