Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added RunGame task target to every project #170

Open
wants to merge 11 commits into
base: develop
Choose a base branch
from

Conversation

Spartan322
Copy link
Collaborator

@Spartan322 Spartan322 commented May 1, 2022

Clarified usability in README.md
Debug BepInEx directory is by default .debug/ (can be changed with BepInExTestDir property)
RunGame task handles:

  1. Building the necessary projects
  2. Creating BepInExTestDir if it doesn't exist
  3. Exporting the files to their appropriate place in BepInExTestDir (alongside each dependency doing the same)
  4. Moving all Pathfinder files and directories in HacknetDir (by default SteamLibrary's Hacknet game directory) to HacknetDir/temp/
  5. Symlinking or Junctioning the BepInExTestDir into HacknetDir alongside doing the same to every plugin and core file from its compiled directory
  6. Moving all the necessary Pathfinder start files to HacknetDir (compiling the C# projects)
  7. Executing StartPathfinder.sh
  8. When complete, will clean out all the files, folder, and symlinks and restore everything from the temp file

Note: if you end the process before it cleans the HacknetDir you may experience future problems as of now. If you get an error please report them by posting your HacknetDir structure, what Pathfinder files are in the directory, what are in the temp directory, and what are in the BepInEx directory.

Remember you only need to run dotnet build /t:<Project>:RunGame in the directory of the solution file.

@Spartan322 Spartan322 marked this pull request as ready for review May 2, 2022 08:28
@Spartan322 Spartan322 requested a review from Windows10CE May 2, 2022 08:29
@Spartan322
Copy link
Collaborator Author

I might be able to have BepInExTestDir automatically generate a .gitignore file that selects the whole directory.

Spartan322 added 11 commits May 3, 2022 03:22
	Enables testing the all repo plugins without messing with files manually
	Saves actively installed Pathfinder files and restores them when complete
	Creates a .BepInEx directory to symlink to Hacknet/BepInEx
	Cleans up after itself, leaves no build artifacts in the game's directory as long as nothing fails
Separated targets and props in Configuration.props and Configuration.targets
	Also handles creating directory symlinks (or junctions in Windows)
Added PathfinderBuildTasks project
Built PathfinderBuildTasks alongside libraries for portable use
	Nuget is only necessary for building tasks
Removed Targets GenerateSymLinks, GenerateDirSymLinks, RemoveDirSymLinks, and MoveFolder
Updated PathfinderAPI and PathfinderUpdater to delete themselves in .debug/plugins/ for RunGame target
Fixed PathfinderPatcher not running as it wasn't referencing the SDK format
Removed superfluous space in Project elements
Prevent LinkBuiltFiles running before MoveGameFilesToTemp
Correct Readme to use `dotnet build` instead of obsolete `msbuild` command
Added comment to denote purpose of .gitignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant