Skip to content

Commit

Permalink
drop me
Browse files Browse the repository at this point in the history
  • Loading branch information
onyb committed Jan 10, 2024
1 parent 8de1a13 commit da0a144
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scripts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ async function compressPng(imagesDstPath, stagingDir) {

try {
await withTimeout(10000, promise)
console.log(`Done: ${file}`)
} catch (err) {
console.log(`Failed to compress: ${file}`)
fs.copyFileSync(file, stagingDir + "/images/" + path.basename(file))
Expand Down Expand Up @@ -325,20 +326,31 @@ async function stageTokenPackage() {
// Add Solana (SPL) tokens in solana-contract-map.json.
await stageSPLTokens(stagingDir, coingeckoIds)
await compressPng(imagesDstPath, stagingDir)

console.log('Removing imagesUncompressed directory...')
fs.rmSync(imagesDstPath, { recursive: true, force: true })
console.log('Removed imagesUncompressed directory.')

// Add chainlist.json.
await stageChainListJson(stagingDir)

console.log("stageChainListJson done");

// Add dapp-lists.json.
await stageDappLists(stagingDir)

console.log("stageDappLists done");

// Add on ramp JSON files
await stageOnRampLists(stagingDir)

console.log("stageOnRampLists done");

// Add OFAC banned address lists
await stageOFACLists(stagingDir)

console.log("stageOFACLists done");

stagePackageJson(stagingDir)
stageManifest(stagingDir)
}
Expand Down

0 comments on commit da0a144

Please sign in to comment.