Update readme; update build to package server

This commit is contained in:
Tyfon
2024-05-28 11:15:01 -07:00
parent 5eb1d7850e
commit e5f18ec25d
3 changed files with 18 additions and 7 deletions

View File

@@ -121,6 +121,12 @@ async function main() {
await fs.copy(projectDir, sptModPath);
logger.log("success", `Files successfully copied to ${sptModPath}`);
// Copy output to parent dist folder
logger.log("info", "Copying output to SPT installation");
const parentDistPath = path.join(currentDir, "../dist/user/mods/", projectShortName);
await fs.copy(projectDir, parentDistPath);
logger.log("success", `Files successfully copied to ${parentDistPath}`);
// Create a zip archive of the project files.
logger.log("info", "Beginning folder compression...");
const zipFilePath = path.join(path.dirname(projectDir), `${projectName}.zip`);