From 5ffacc023f31bfd27b9d03757bd4ee9ac8e44ad2 Mon Sep 17 00:00:00 2001 From: Yunus Date: Thu, 2 May 2024 00:01:23 +0700 Subject: [PATCH] Fix extensions null --- utils/package-reader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/package-reader.ts b/utils/package-reader.ts index 38776ee..9839cdc 100644 --- a/utils/package-reader.ts +++ b/utils/package-reader.ts @@ -23,10 +23,10 @@ export const readPackageFile = async (data: File | Buffer | ArrayBuffer | string // it's android apk const androidManifestApkEntry = fileZip.file('AndroidManifest.xml') if (androidManifestApkEntry) { + extension = 'apk' if (process.server) { const androidManifestApk = await androidManifestApkEntry?.async('nodebuffer') if (androidManifestApk) { - extension = 'apk' const ManifestParser = await import('~/utils/apkparser/manifest') const manifestParser = new ManifestParser.default(androidManifestApk, {}).parse() packageMetadata = {