Ship verified private Lobby configuration in the canonical operations artifact

This commit is contained in:
unimatrixgit 2026-12-02 11:43:02 +01:00
commit 33507e7be7

View file

@ -6,7 +6,7 @@ import {createHash} from 'node:crypto';
export function packageDeploymentScripts(output,sourceCommit=null,{sourceDirectory=fileURLToPath(new URL('../ops/',import.meta.url))}={}){
if(sourceCommit!==null&&!/^[a-f0-9]{40}$/.test(sourceCommit))throw Error('Invalid deployment source commit');
const files={};
for(const name of ['dunerealms-ci-trigger','dunerealms-build-release']){
for(const name of ['dunerealms-ci-trigger','dunerealms-build-release','configure-lobby-account.py']){
const bytes=Buffer.from(readFileSync(path.join(sourceDirectory,name),'utf8').replaceAll('\r\n','\n'));
files[name]={sha256:createHash('sha256').update(bytes).digest('hex'),bytes:bytes.length};
mkdirSync(output,{recursive:true});writeFileSync(path.join(output,name),bytes);