Skip to content

Commit

Permalink
Fix extensions null
Browse files Browse the repository at this point in the history
  • Loading branch information
yunusefendi52 committed May 1, 2024
1 parent 7148e1e commit 5ffacc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/package-reader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 5ffacc0

Please sign in to comment.