Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing apk on device failing: #4484

Closed
Hadatko opened this issue Nov 28, 2019 · 1 comment
Closed

Installing apk on device failing: #4484

Hadatko opened this issue Nov 28, 2019 · 1 comment
Labels

Comments

@Hadatko
Copy link

Hadatko commented Nov 28, 2019

  • 21.2.0:
  • Android apk:

This is output from application when installing through adb (Similar message when installing directly on device):
adb -s R58M78HHBVJ install dist/daq-desktop-1.0.0.apk =>
adb: failed to install dist/daq-desktop-1.0.0.apk: Failure [INSTALL_PARSE_FAILED_NOT_APK: Failed to parse /data/app/vmdl291506725.tmp/base.apk]

json package:
{ "name": "daq-desktop", "version": "1.0.0", "license": "SEE LICENSE IN LICENSE", "main": "src/main/index.js", "homepage": "http://acrios.com", "author": { "name": "Dušan Červenka", "email": "[email protected]" }, "scripts": { "compile": "electron-webpack", "dev": "node_modules/.bin/electron --js-flags='--max-old-space-size=10192' . DEBUG", "lindev": "yarn compile && electron-builder -l", "windev": "yarn compile && electron-builder -w portable", "adev": "yarn compile && electron-builder -l apk", "linDAQ": "yarn compile && electron-builder --armv7l" }, "dependencies": { "electron-npm-packages": "^4.1.2", "javascript-obfuscator": "^0.18.1", "node": "^12.11.1", "npm": "^6.11.3", "source-map-support": "^0.5.9", "yarn": "^1.19.0" }, "devDependencies": { "electron": "^7.0.0", "electron-builder": "^21.2.0", "electron-webpack": "^2.7.4", "webpack": "^4.41.2" }, "build": { "compression": "store", "asar": "false", "win": { "target": "portable", "icon": "icon.ico", "files": ["**/*", "!html/measurements/*"] }, "linux": { "files": ["**/*", "!html/measurements/*"] }, "directories": { "app": ".", "buildResources": "static" } } }

build output:
`yarn adev
yarn run v1.19.2
$ yarn compile && electron-builder -l apk
$ electron-webpack
Hash: fee3800d6a662e8386adbb92bcc7b5951588e90a
Version: webpack 4.41.2
Child
Hash: fee3800d6a662e8386ad
Time: 3493ms
Built at: 11/28/2019 8:28:43 AM
Asset Size Chunks Chunk Names
main.js 582 KiB 0 [emitted] main
main.js.map 240 KiB 0 [emitted] [dev] main
Entrypoint main = main.js main.js.map
[1] external "path" 42 bytes {0} [built]
[2] external "fs" 42 bytes {0} [built]
[3] external "util" 42 bytes {0} [built]
[4] external "buffer" 42 bytes {0} [built]
[10] external "net" 42 bytes {0} [built]
[11] external "stream" 42 bytes {0} [built]
[24] external "http" 42 bytes {0} [built]
[31] external "events" 42 bytes {0} [built]
[41] external "querystring" 42 bytes {0} [built]
[43] external "url" 42 bytes {0} [built]
[57] external "electron" 42 bytes {0} [built]
[58] multi ./src/main/index.js 28 bytes {0} [built]
[59] ./src/main/index.js 4.66 KiB {0} [built]
[142] external "child_process" 42 bytes {0} [built]
[143] external "v8" 42 bytes {0} [built]
+ 129 hidden modules

WARNING in ./node_modules/express/lib/view.js 81:13-25
Critical dependency: the request of a dependency is an expression
 @ ./node_modules/express/lib/application.js
 @ ./node_modules/express/lib/express.js
 @ ./node_modules/express/index.js
 @ ./src/main/index.js
 @ multi ./src/main/index.js

Child
Hash: bb92bcc7b5951588e90a
Time: 407ms
Built at: 11/28/2019 8:28:40 AM
Asset Size Chunks Chunk Names
index.html 288 bytes [emitted]
renderer.js 1.14 KiB 0 [emitted] renderer
renderer.js.map 1.9 KiB 0 [emitted] [dev] renderer
Entrypoint renderer = renderer.js renderer.js.map
[0] multi ./src/renderer/index.js 28 bytes {0} [built]
[1] ./src/renderer/index.js 184 bytes {0} [built]
[2] external "electron" 42 bytes {0} [built]
Child html-webpack-plugin for "index.html":
1 asset
Entrypoint undefined = index.html
[0] ./node_modules/html-loader/dist/cjs.js?minimize=false&url=false!./dist/.renderer-index-template.html 255 bytes {0} [built]
• electron-builder version=21.2.0 os=5.3.0-23-generic
• loaded configuration file=package.json ("build" field)
• loaded parent configuration file=/home/kuhadatko/kseftiky/daq-ozm/daq-ozm/gui/desktop/node_modules/electron-webpack/out/electron-builder.js
• Specified application directory equals to project dir — superfluous or wrong configuration appDirectory=.
• description is missed in the package.json appPackageFile=/home/kuhadatko/kseftiky/daq-ozm/daq-ozm/gui/desktop/package.json
• writing effective config file=dist/builder-effective-config.yaml
• packaging platform=linux arch=x64 electron=7.0.0 appOutDir=dist/linux-unpacked
• asar using is disabled — it is strongly not recommended solution=enable asar and use asarUnpack to unpack files that must be externally available
• file source doesn't exist from=/home/kuhadatko/kseftiky/daq-ozm/daq-ozm/gui/desktop/static
• building target=apk arch=x64 file=dist/daq-desktop-1.0.0.apk
• default Electron icon is used reason=application icon is not set
• application Linux category is set to default "Utility" reason=linux.category is not set and cannot map from macOS docs=https://www.electron.build/configuration/linux
`

@stale
Copy link

stale bot commented Jan 27, 2020

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant