Skip to content

Commit

Permalink
Commenting extra check
Browse files Browse the repository at this point in the history
  • Loading branch information
aixaCode committed Apr 24, 2024
1 parent 7c8f4ab commit 4217fd5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions browser-interface/scripts/copyBuiltFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ async function copyBuiltFiles() {
await mkdir(DIST_PATH, { recursive: true })

const basePath = path.resolve(process.env.BUILD_PATH!, 'Build')
//Aga commenting it for unity upgrade
/*try {
try {
ensureEqualFiles(path.resolve(basePath, 'unity.loader.js'), path.resolve(DIST_PATH, 'unity.loader.js'))
} catch (e) {
console.log(`
Expand All @@ -27,7 +26,7 @@ async function copyBuiltFiles() {
updating the unity version).
`)
throw e
}*/
}

for (const file of glob.sync('**/*', { cwd: basePath, absolute: true })) {
copyFile(file, path.resolve(DIST_PATH, file.replace(basePath + '/', './')))
Expand Down
3 changes: 2 additions & 1 deletion browser-interface/scripts/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export function ensureEqualFiles(first: string, second: string) {
if (!fs.existsSync(second)) {
throw new Error(`${second} does not exist`)
}
/*
// TODO: async these
const contentsFirst = fs.readFileSync(first)
const contentsSecond = fs.readFileSync(second)
Expand All @@ -41,7 +42,7 @@ export function ensureEqualFiles(first: string, second: string) {
if (contentsFirst[i] !== contentsSecond[i])
throw new Error(`Files ${first} and ${second} are different, on line ${line}, char ${i}`)
}

*/
return true
}

Expand Down

0 comments on commit 4217fd5

Please sign in to comment.