mirror of
https://github.com/tachiyomiorg/tachiyomi-extensions-inspector.git
synced 2025-01-12 08:49:08 +01:00
fixes from the inspector project
This commit is contained in:
parent
760d1116a1
commit
ad2ea8095b
@ -118,10 +118,12 @@ object Extension {
|
||||
val extensionRecord: ResultRow = transaction {
|
||||
ExtensionTable.select { ExtensionTable.apkName eq apkName }.firstOrNull()
|
||||
} ?: {
|
||||
transaction {
|
||||
ExtensionTable.insert {
|
||||
it[this.apkName] = apkName
|
||||
}
|
||||
ExtensionTable.select { ExtensionTable.apkName eq apkName }.firstOrNull()!!
|
||||
}
|
||||
}()
|
||||
|
||||
val extensionId = extensionRecord[ExtensionTable.id]
|
||||
@ -140,7 +142,7 @@ object Extension {
|
||||
dex2jar(dexFilePath, jarFilePath, fileNameWithoutType)
|
||||
|
||||
// clean up
|
||||
File(apkFilePath).delete()
|
||||
// File(apkFilePath).delete()
|
||||
File(dexFilePath).delete()
|
||||
|
||||
// update sources of the extension
|
||||
|
Loading…
x
Reference in New Issue
Block a user