Skip to content

About

Tools and configs for packaging games on CnCNet

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cncnet-package-tools

A set of helper scripts for building, preparing, and publishing the CnCNet game client packages.

Most utilities are run from the tools root via npm run <script>.

Shared Packages

Package Purpose
cncnet-core Shared classes, constants, and services for the utilities: GitHub API, SSH, IRC, common option values, repository paths, and the game-profile service that loads games/*.json.

Game profiles (games/)

Per-game values for the profile-driven utilities live in games/<id>.json. These utilities accept --game <id>; the ids are ts, ra1, yr, and td.

Profile Game Status
games/ts.json Tiberian Sun active
games/ra1.json Red Alert 1 active
games/yr.json Yuri's Revenge active
games/td.json Tiberian Dawn stub

Utilities

Script Package Short Description
npm run build-installer build-installer Renders the Inno Setup template for --game and builds the installer from the package contents; on Linux it runs ISCC.exe via wine.
npm run csf-converter csf-converter Converts the committed .csf.ini source files into the binary .csf files expected by the game. See csf-converter/README.md.
npm run ladder-maps-sync ladder-maps-sync Synchronizes ladder maps from the CnCNet API into the client package. See ladder-maps-sync/README.md.
npm run map-name-case-fix map-name-case-fix Fixes the filename casing of map preview .png files based on keys from MPMaps.ini.
npm run mpmaps-updater mpmaps-updater Synchronizes INI/MPMaps.ini with the maps in the package: adds new maps and removes missing ones.
npm run mix-packer mix-packer Packs .pack directories into .mix archives. See mix-packer/README.md.
npm run version-writer version-writer A wrapper around VersionWriter.exe that writes version data for package/; on Linux it runs via mono or wine.
npm run release-tag-validator release-tag-validator Validates that a release tag matches the yr-x.y or yr-x.y.z format.
npm run release-asset-uploader release-asset-uploader Uploads the specified file as a GitHub release asset for the current tag.
npm run publish-release publish-release Publishes the latest version to the server and sends an IRC release notification.

Auxiliary Scripts

Path Purpose
base-config.ps1 Shared PowerShell configuration with paths to the repository, package/, Resources/, and logs.
download-artifacts/download-client.ps1 Downloads client artifacts from GitHub Actions and copies resources into package/Resources.
download-artifacts/download-client-launcher.ps1 Downloads the launcher from a GitHub release and places it into package/.

Notes

  • csf-converter requires the .NET 8 runtime; Ra2CsfFileCLI is vendored in csf-converter/Ra2CsfFileCLI.
  • mix-packer ignores .csf.ini sources. Run csf-converter before packing so the generated .csf files are included.
  • build-installer requires --game; the other profile-driven utilities require --game or explicit dirs.
  • The Inno Setup binaries and shared .iss libs are shared by all games under build-installer/inno/; each game has its own template under templates/<id>/ and resources under Resources/<id>/, and the rendered installer.iss is overwritten on every build.
  • Onboarding a new game: add a games/<id>.json profile, add its template and resources under build-installer/inno/, and register the id in cncnet-core (the GameId union and knownGameIds).
  • release-tag-validator, release-asset-uploader, and publish-release are intended to run in CI or in an environment with the required GitHub, SSH, and IRC parameters.

About

Tools and configs for packaging games on CnCNet

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages