mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Reenable V2 Scanner
This commit is contained in:
parent
e008ad7ddf
commit
b857977fbe
1 changed files with 18 additions and 18 deletions
|
|
@ -5,7 +5,7 @@ import * as zip from '@zip.js/zip.js'
|
||||||
|
|
||||||
import { isString } from './check-types.js'
|
import { isString } from './check-types.js'
|
||||||
import parseMacho from './macho/index.js'
|
import parseMacho from './macho/index.js'
|
||||||
// import { AppScan } from '~/helpers/scanner/client.mjs'
|
import { AppScan } from '~/helpers/scanner/client.mjs'
|
||||||
|
|
||||||
const scannerVersion = (() => {
|
const scannerVersion = (() => {
|
||||||
// If there's no window
|
// If there's no window
|
||||||
|
|
@ -615,28 +615,28 @@ export default class AppFilesScanner {
|
||||||
|
|
||||||
console.log( 'scannerVersion', scannerVersion )
|
console.log( 'scannerVersion', scannerVersion )
|
||||||
|
|
||||||
// if ( scannerVersion === '2' ) {
|
if ( scannerVersion === '2' ) {
|
||||||
// // const { AppScan } = await import('~/helpers/scanner/client.mjs')
|
// const { AppScan } = await import('~/helpers/scanner/client.mjs')
|
||||||
|
|
||||||
// // Create a new AppScan instance
|
// Create a new AppScan instance
|
||||||
// const scan = new AppScan({
|
const scan = new AppScan({
|
||||||
// fileLoader: async () => file.instance,
|
fileLoader: async () => file.instance,
|
||||||
// messageReceiver: ( details ) => {
|
messageReceiver: ( details ) => {
|
||||||
// console.log( 'Scan message:', details )
|
console.log( 'Scan message:', details )
|
||||||
|
|
||||||
// file.statusMessage = details.message
|
file.statusMessage = details.message
|
||||||
// file.status = details.status
|
file.status = details.status
|
||||||
// }
|
}
|
||||||
// })
|
})
|
||||||
|
|
||||||
// // Scan the archive
|
// Scan the archive
|
||||||
// await scan.start()
|
await scan.start()
|
||||||
|
|
||||||
// clearTimeout(timer)
|
clearTimeout(timer)
|
||||||
|
|
||||||
// resolve()
|
resolve()
|
||||||
// return
|
return
|
||||||
// }
|
}
|
||||||
|
|
||||||
this.scanFile( file, scanIndex ).then(
|
this.scanFile( file, scanIndex ).then(
|
||||||
response => resolve(response),
|
response => resolve(response),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue