goatcorp / Plogon

Build system for Dalamud Plugins
7 stars 13 forks source link

Add Development mode for easy local validation #62

Closed karashiiro closed 5 months ago

karashiiro commented 5 months ago

Adds a --mode=Development for simpler local build debugging. All that needs to be done to test a build now is to set up a mock workspace with their own plugin's manifest, and then to run Plogon with --build-all against that:

image

dotnet run --project .\Plogon\Plogon.csproj -- --manifest-folder=./output/manifests --output-folder=./output/output --work-folder=./output/work --static-folder=./Plogon/static --artifact-folder=./output/artifacts --mode=Development --build-all
NotNite commented 5 months ago

This is how I test Plogon on my own machine, but what advantage does specifying this do? PR mode has worked for me fine.

karashiiro commented 5 months ago

PullRequest has some other dependencies https://github.com/search?q=repo%3Agoatcorp%2FPlogon%20ModeOfOperation.PullRequest&type=code

Mainly there's a branch that calls webservices.RegisterPrNumber, and also another one that requires GITHUB_PR_NUM to be set - not sure if there's more stuff that happens indirectly, this stubs basically everything except builds, though.