chore: Update createMarFile function to include github parameter

This commit is contained in:
Mauro Balades 2024-08-12 10:39:54 +02:00
parent 2098b24ee5
commit 6de5d11274

View file

@ -116,7 +116,7 @@ export const surferPackage = async () => {
} }
} }
const marPath = await createMarFile(version, channel) const marPath = await createMarFile(version, channel, brandingDetails.release.github);
dynamicConfig.set('marPath', marPath) dynamicConfig.set('marPath', marPath)
await generateBrowserUpdateFiles() await generateBrowserUpdateFiles()
@ -137,7 +137,7 @@ function getCurrentBrandName(): string {
return config.brands[brand].brandFullName return config.brands[brand].brandFullName
} }
async function createMarFile(version: string, channel: string) { async function createMarFile(version: string, channel: string, github?: { repo: string }) {
log.info(`Creating mar file...`) log.info(`Creating mar file...`)
let marBinary: string = windowsPathToUnix( let marBinary: string = windowsPathToUnix(
join(OBJ_DIR, 'dist/host/bin', 'mar') join(OBJ_DIR, 'dist/host/bin', 'mar')