scripts/update-binaries.js
async function main () {
  const version = await getVersion()

  for (const MODULE of ELECTRON_MODULES) {
    for (const PLATFORM of PLATFORMS) {
      for (const ARCH of ARCHS) {
        const name = getElectronName(MODULE, PLATFORM, ARCH)
        const filename = name + '.tar.gz'
        const url = getUrl(version, name)
        const binary = await download(url).catch(error => console.error(error, url))
        if (binary) {
          console.info(`Success ${url}`)
          fs.writeFileSync(filename, binary)
          await decompress(filename, path.join(__dirname, '..', 'binaries', `sqlite3-${PLATFORM}`))
          fs.removeSync(filename)
        }
      }
    }
  }

  for (const MODULE of MODULES) {
    for (const PLATFORM of PLATFORMS) {
      for (const ARCH of ARCHS) {
        const name = getName(MODULE, PLATFORM, ARCH)
        const filename = name + '.tar.gz'
        const url = getUrl(version, name)
        const binary = await download(url).catch(error => console.error(error, url))
        if (binary) {
          console.info(`Success ${url}`)
          fs.writeFileSync(filename, binary)
          await decompress(filename, path.join(__dirname, '..', 'binaries', `sqlite3-${PLATFORM}`))
          fs.removeSync(filename)
        }
      }
    }
  }

}
async function main () {
  const version = await getVersion()

  for (const MODULE of ELECTRON_MODULES) {
    for (const PLATFORM of PLATFORMS) {
      for (const ARCH of ARCHS) {
        const name = getElectronName(MODULE, PLATFORM, ARCH)
        const filename = name + '.tar.gz'
        const url = getUrl(version, name)
        const binary = await download(url).catch(error => console.error(error, url))
        if (binary) {
          console.info(`Success ${url}`)
          fs.writeFileSync(filename, binary)
          await decompress(filename, path.join(__dirname, '..', 'binaries', `sqlite3-${PLATFORM}`))
          fs.removeSync(filename)
        }
      }
    }
  }

  for (const MODULE of MODULES) {
    for (const PLATFORM of PLATFORMS) {
      for (const ARCH of ARCHS) {
        const name = getName(MODULE, PLATFORM, ARCH)
        const filename = name + '.tar.gz'
        const url = getUrl(version, name)
        const binary = await download(url).catch(error => console.error(error, url))
        if (binary) {
          console.info(`Success ${url}`)
          fs.writeFileSync(filename, binary)
          await decompress(filename, path.join(__dirname, '..', 'binaries', `sqlite3-${PLATFORM}`))
          fs.removeSync(filename)
        }
      }
    }
  }

}
async function main ( ) { const version = await getVersion ( ) for ( const MODULE of ELECTRON_MODULES ) { for ( const PLATFORM of PLATFORMS ) { for ( const ARCH of ARCHS ) { const name = getElectronName ( MODULE , PLATFORM , ARCH ) const filename = name + '.tar.gz' const url = getUrl ( version , name ) const binary = await download ( url ) . catch ( error => console . error ( error , url ) ) if ( binary ) { console . info ( ` ${ url } ` ) fs . writeFileSync ( filename , binary ) await decompress ( filename , path . join ( __dirname , '..' , 'binaries' , ` ${ PLATFORM } ` ) ) fs . removeSync ( filename ) } } } } for ( const MODULE of MODULES ) { for ( const PLATFORM of PLATFORMS ) { for ( const ARCH of ARCHS ) { const name = getName ( MODULE , PLATFORM , ARCH ) const filename = name + '.tar.gz' const url = getUrl ( version , name ) const binary = await download ( url ) . catch ( error => console . error ( error , url ) ) if ( binary ) { console . info ( ` ${ url } ` ) fs . writeFileSync ( filename , binary ) await decompress ( filename , path . join ( __dirname , '..' , 'binaries' , ` ${ PLATFORM } ` ) ) fs . removeSync ( filename ) } } } } }
Update Binaries Scripts
Update Binaries Scripts