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

Beta: ember electron:package fails trying to compile crossdomain.xml #157

Closed
pichfl opened this issue Mar 3, 2017 · 4 comments
Closed

Comments

@pichfl
Copy link
Collaborator

pichfl commented Mar 3, 2017

...
Packaging app w/ `electron-forge`
✔ Preparing to Package Application for arch: x64
[BABEL] Note: The code generator has deoptimised the styling of "/var/folders/lg/3qdjv59s2bs7k2k8w1m1_l940000gn/T/electron-packager/darwin-x64/timepiece-darwin-x64/Electron.app/Contents/Resources/app/dist/assets/vendor-6678e5847157b1999f3df916342379a6.js" as it exceeds the max of "500KB".
⠦ Compiling ApplicationFailed to compile file: /var/folders/lg/3qdjv59s2bs7k2k8w1m1_l940000gn/T/electron-packager/darwin-x64/timepiece-darwin-x64/Electron.app/Contents/Resources/app/dist/crossdomain.xml
Compiling /var/folders/lg/3qdjv59s2bs7k2k8w1m1_l940000gn/T/electron-packager/darwin-x64/timepiece-darwin-x64/Electron.app/Contents/Resources/app/dist/crossdomain.xml resulted in a MIME type of application/xml, which we don't know how to handle
✔ Compiling Application
✔ Preparing native dependencies
✔ Packaging Application

Cleaning tmp build files

Leaves me without a /out directory.

@jacobq
Copy link
Collaborator

jacobq commented Mar 3, 2017

FWIW, I'm getting the same error with my application (for/on Linux x64 platform). It works when calling ember electron but not ember electron:package

Enabling debugging for electron-compile shows:

electron-compile:compiler-host Compiling /tmp/electron-packager/linux-x64/my-app-linux-x64/resources/app/dist/crossdomain.xml +1ms
  electron-compile:sanitize-paths Cache miss for cachedRealpath: '/tmp/electron-packager/linux-x64/my-app-linux-x64/resources/app/dist/crossdomain.xml' => '/tmp/electron-packager/linux-x64/my-app-linux-x64/resources/app/dist/crossdomain.xml' +0ms
  electron-compile:file-change-cache Cache entry for /dist/crossdomain.xml: {"ctime":1488555508795,"size":585,"info":{"hash":"731bfe73bcc6d155cbf41252feeff61850379f82","isMinified":false,"isInNodeModules":false,"hasSourceMap":false,"isFileBinary":false}} +0ms
  electron-compile:compiler-host Falling back to passthrough compiler for /tmp/electron-packager/linux-x64/my-app-linux-x64/resources/app/dist/crossdomain.xml +0ms
  electron-compile:compile-cache Fetching /tmp/electron-packager/linux-x64/my-app-linux-x64/resources/app/dist/crossdomain.xml from cache +0ms
  electron-compile:compile-cache Failed to read cache for /tmp/electron-packager/linux-x64/my-app-linux-x64/resources/app/dist/crossdomain.xml, looked in /tmp/electron-packager/linux-x64/my-app-linux-x64/resources/app/.cache/1090db4155cc8a48ed890f8958d4729364f2d73c/731bfe73bcc6d155cbf41252feeff61850379f82: ENOENT: no such file or directory, open '/tmp/electron-packager/linux-x64/my-app-linux-x64/resources/app/.cache/1090db4155cc8a48ed890f8958d4729364f2d73c/731bfe73bcc6d155cbf41252feeff61850379f82' +0ms
  electron-compile:compiler-host Using compiler options: {} +0ms
  electron-compile:compiler-host Recursively compiling result of /tmp/electron-packager/linux-x64/my-app-linux-x64/resources/app/dist/crossdomain.xml with non-final MIME type application/xml, input was application/xml +1ms
  electron-compile:compiler-host Recursive compile failed - intermediate result: {"code":"<?xml version=\"1.0\"?>\n<!DOCTYPE cross-domain-policy SYSTEM \"http://www.adobe.com/xml/dtds/cross-domain-policy.dtd\">\n<cross-domain-policy>\n  <!-- Read this: www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html -->\n\n  <!-- Most restrictive policy: -->\n  <site-control permitted-cross-domain-policies=\"none\"/>\n\n  <!-- Least restrictive policy: -->\n  <!--\n  <site-control permitted-cross-domain-policies=\"all\"/>\n  <allow-access-from domain=\"*\" to-ports=\"*\" secure=\"false\"/>\n  <allow-http-request-headers-from domain=\"*\" headers=\"*\" secure=\"false\"/>\n  -->\n</cross-domain-policy>\n","mimeType":"application/xml"} +0ms
Failed to compile file: /tmp/electron-packager/linux-x64/my-app-linux-x64/resources/app/dist/crossdomain.xml
Compiling /tmp/electron-packager/linux-x64/my-app-linux-x64/resources/app/dist/crossdomain.xml resulted in a MIME type of application/xml, which we don't know how to handle

@weedgrease
Copy link

I see this as well but I end up with the correct files in out/

@jacobq
Copy link
Collaborator

jacobq commented Mar 3, 2017

Supposedly this is safe to ignore (see electron-userland/electron-compile#167), though these types of things make me crazy because it seems I always spend a lot of time chasing them.

@pichfl
Copy link
Collaborator Author

pichfl commented Mar 3, 2017

@jacobq good too know. Leaves me with a different reason why I'm not getting any builds. Closing for now.

@pichfl pichfl closed this as completed Mar 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants