@@ -10,8 +10,8 @@ import { createExdFilter } from '@ffcafe/ixion-exd'
1010import { compressDirectoryToFile } from '@ffcafe/ixion-utils'
1111import { exdSqPackFile , files } from '../../../config'
1212import { kebabCase } from '../../../utils/case'
13+ import { readGameTrunk } from '../../../utils/game'
1314import { calculateHashForArchive } from '../../../utils/hash'
14- import { parseInputDefinitions } from '../../../utils/input'
1515import { getTempDir , getWorkingDir } from '../../../utils/root'
1616import { getStorageManager } from '../../../utils/storage'
1717import type { ServerVersion } from '../../exd-base'
@@ -59,7 +59,10 @@ async function createServerArchive({
5959 }
6060
6161 await compressDirectoryToFile ( tempDir , outputPath )
62- return calculateHashForArchive ( tempDir )
62+ return {
63+ hash : calculateHashForArchive ( tempDir ) ,
64+ trunk : readGameTrunk ( tempDir ) ,
65+ }
6366 } finally {
6467 // Clean up temporary directory
6568 console . log ( `🧹 Cleaning up temporary directory: ${ tempDir } \n` )
@@ -173,7 +176,7 @@ export async function createRelease(
173176 const { server, version } = item
174177 console . log ( `📂 Creating archive for ${ server } : ${ version } ` )
175178 const path = join ( archiveDir , `${ kebabCase ( server ) } -${ version } .zip` )
176- const hash = await createServerArchive ( {
179+ const result = await createServerArchive ( {
177180 server,
178181 version,
179182 outputPath : path ,
@@ -185,7 +188,8 @@ export async function createRelease(
185188 version,
186189 sqpackPrefix : join ( sqpackPath , server , basename ( exdSqPackFile ) ) ,
187190 path,
188- hash,
191+ hash : result . hash ,
192+ trunk : result . trunk ,
189193 } )
190194 }
191195
0 commit comments