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

auto-unpacked files are not copied #843

Closed
JoaoGabrielDePaula opened this issue Oct 22, 2016 · 6 comments · May be fixed by qcif/data-curator#563
Closed

auto-unpacked files are not copied #843

JoaoGabrielDePaula opened this issue Oct 22, 2016 · 6 comments · May be fixed by qcif/data-curator#563
Labels

Comments

@JoaoGabrielDePaula
Copy link

package.json ->:
"devDependencies": {
"electron": "^1.4.1",
"electron-builder": "^7.14.1",
"electron-prebuilt": "^1.4.1",
"electron-rebuild": "^1.2.1",
"node-gyp": "^3.4.0",
"nslog": "^3.0.0",
"rimraf": "^2.5.4"
},

app/package.json ->:
"dependencies": {
"configstore": "^2.1.0",
"electron-debug": "^1.0.1",
"electron-edge": "^6.5.2",
"gulp-sass": "^2.1.0",
"node-gyp": "^3.4.0",
"nslog": ">= 2.0.0",
"require-rebuild": "^1.2.8"
},

I'm having trouble creating an installer.

I am using the electron-builder and the electron-edge and I'm having the following problem:

Packaging for ia32 platform win32 using electron 1.4.4 to dist \ win-ia32-unpacked

node_modules \ edge-cs is not packed into asar archive - contains executable code
node_modules \ electron-edge is not packed into asar archive - contains executable code

How to solve?

@virror
Copy link

virror commented Oct 22, 2016

This is just a warning and should not in itself stop things from working. I guessed you checked that the build actually did not work?

@JoaoGabrielDePaula
Copy link
Author

@virror I tested the generated file and it does not work the proper shape of the electron-edge, you need the edge of the executable.

@develar
Copy link
Member

develar commented Oct 22, 2016

👍 to @virror It is just info, that this module is not packed into asar, but added directly to app resources (so, can be executed as program).

it does not work the proper shape of the electron-edge, you need the edge of the executable.

What error do you have in the runtime?

@JoaoGabrielDePaula
Copy link
Author

Yes. It's in the runtime @develar.

Error: Não foi possível carregar arquivo ou assembly 'file:///C:\x\internal\electron-test\dist\win-ia32-unpacked\resources\app.asar\node_modules\edge-cs\lib\edge-cs.dll' ou uma de suas dependências. O sistema não pode encontrar o arquivo especificado.
at Error (native)
at Object.exports.func (C:\x\internal\electron-test\dist\win-ia32-unpacked\resources\app.asar\node_modules\electron-edge\lib\edge.js:166:17)
at new SalesController (file:///C:/x/internal/electron-test/dist/win-ia32-unpacked/resources/app.asar/src/js/modules/dashboard/sales.controller.js:35:26)
at Object.invoke (file:///C:/x/internal/electron-test/dist/win-ia32-unpacked/resources/app.asar/vendor/angular/angular.js:4478:17)
at extend.instance (file:///C:/x/internal/electron-test/dist/win-ia32-unpacked/resources/app.asar/vendor/angular/angular.js:9136:34)
at nodeLinkFn (file:///C:/x/internal/electron-test/dist/win-ia32-unpacked/resources/app.asar/vendor/angular/angular.js:8248:36)
at compositeLinkFn (file:///C:/x/internal/electron-test/dist/win-ia32-unpacked/resources/app.asar/vendor/angular/angular.js:7680:13)
at publicLinkFn (file:///C:/x/internal/electron-test/dist/win-ia32-unpacked/resources/app.asar/vendor/angular/angular.js:7555:30)
at file:///C:/x/internal/electron-test/dist/win-ia32-unpacked/…rces/app.asar/vendor/angular-ui-router/release/angular-ui-router.js:4026:9
at invokeLinkFn (file:///C:/x/internal/electron-test/dist/win-ia32-unpacked/resources/app.asar/vendor/angular/angular.js:8789:9)

@develar
Copy link
Member

develar commented Oct 22, 2016

Is it possible to send me sample project to reproduce and fix?

@JoaoGabrielDePaula
Copy link
Author

@develar develar changed the title I'm having trouble creating an installer. auto-unpacked files are not copied Nov 15, 2016
develar added a commit to develar/electron-builder that referenced this issue Nov 15, 2016
@develar develar added the bug label Nov 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants