Skip to content

Commit

Permalink
ALTV-745 Fixed getFilesFromCDN usage
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegT committed Feb 28, 2025
1 parent 44de231 commit 2af5a55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/altv-pkg.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ async function start() {
console.log(chalk.yellowBright('Unable to get files from ${branch}.'));
console.log(chalk.yellowBright('Will try to use ${downloadDataBranch}...'));
jsModulesBranch = downloadDataBranch;
tmpfiles = await getFilesFromCDN(`https://${CDN_ADDRESS}/js-module`, jsModulesBranch, 'x64_linux/update.json')
tmpfiles = await getFilesFromCDN(`https://${CDN_ADDRESS}/js-module`, jsModulesBranch, `x64_linux`, `update.json`, headers)
}
for ([file, hash] of Object.entries(tmpfiles)) {
linuxFiles[file] = hash;
Expand All @@ -221,7 +221,7 @@ async function start() {
console.log(chalk.yellowBright('Unable to get files from ${branch}.'));
console.log(chalk.yellowBright('Will try to use ${downloadDataBranch}...'));
jsModulesBranch = downloadDataBranch;
tmpfiles = await getFilesFromCDN(`https://${CDN_ADDRESS}/js-module`, jsModulesBranch, 'x64_win32/update.json')
tmpfiles = await getFilesFromCDN(`https://${CDN_ADDRESS}/js-module`, jsModulesBranch, `x64_win32`, `update.json`, headers)
}
for ([file, hash] of Object.entries(tmpfiles)) {
windowsFiles[file] = hash;
Expand Down

0 comments on commit 2af5a55

Please sign in to comment.