Setup automated build scripts for haks #2

Open
opened 2023-11-23 05:48:15 +00:00 by kalen · 1 comment
Owner

Setup automated build scripts for the haks to turn the contents of the repository into useable haks by the game.

Requirements:

  • Compile all the contents of each hak folder into an appropriately named hak file based off the version
  • Compile the tlk.json file into a proper tlk
  • Output the built hak artifacts to a target folder

Nice to haves:

  • The script should be configurable to allow for building only a subset of the haks to avoid excessive churn
  • Ensure all file names are lower case
  • Easily extendable with additional checks as needed in the future
Setup automated build scripts for the haks to turn the contents of the repository into useable haks by the game. Requirements: - [ ] Compile all the contents of each hak folder into an appropriately named hak file based off the version - [ ] Compile the tlk.json file into a proper tlk - [ ] Output the built hak artifacts to a target folder Nice to haves: - [ ] The script should be configurable to allow for building only a subset of the haks to avoid excessive churn - [ ] Ensure all file names are lower case - [ ] Easily extendable with additional checks as needed in the future
kalen added the
enhancement
help wanted
labels 2023-11-23 05:48:15 +00:00
Collaborator

For this purpose to build haks off app "nwhak.exe" I made this script it does not fills nearly all the leeds of the issue but it can eat folders and make haks out of them

`@echo off
REM ============================
REM Build .hak files from folders
REM ============================

REM Path to nwhak.exe (adjust if needed)
REM set NWHak="nwhak.exe"

REM Loop through all subfolders in current directory
for /d %%F in (*) do (
echo Building %%F_v30.hak from folder %%F ...
nwhak.exe "%%F_v30.hak" "%%F"
)

echo.
echo Done! All .hak files have been created.
pause
`

For this purpose to build haks off app "nwhak.exe" I made this script it does not fills nearly all the leeds of the issue but it can eat folders and make haks out of them `@echo off REM ============================ REM Build .hak files from folders REM ============================ REM Path to nwhak.exe (adjust if needed) REM set NWHak="nwhak.exe" REM Loop through all subfolders in current directory for /d %%F in (*) do ( echo Building %%F_v30.hak from folder %%F ... nwhak.exe "%%F_v30.hak" "%%F" ) echo. echo Done! All .hak files have been created. pause `
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: core/sinfar-haks#2
No description provided.