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 completes without result #160

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

Beta: Ember electron:package completes without result #160

pichfl opened this issue Mar 3, 2017 · 3 comments

Comments

@pichfl
Copy link
Collaborator

pichfl commented Mar 3, 2017

timepiece git/develop*
❯ DEBUG=electron-packager ember electron:make
cleaning up...
Built project successfully. Stored in "/Users/pichfl/Repositories/timepiece/tmp/electron-build-tmp/dist".

Copying files into Electron Build folder
Copying package.json
Copying ember-electron/electron.js
Copying dist/webviews/timepiece.css
Copying assets/ipc.js
Copying assets/NSStatusItem_paused_Template.png
Copying assets/NSStatusItem_paused_Template@2x.png
Copying assets/NSStatusItem_Template.png
Copying assets/NSStatusItem_Template@2x.png
Copying assets/Tray_paused.ico
Copying assets/Tray.ico
Copying assets/webview-timepiece-overrides.css
Copying assets/webview-timepiece-overrides.js

Installing production dependencies into Electron Build folder
timepiece@1.0.0 /Users/pichfl/Repositories/timepiece/tmp/electron-build-tmp
└── uuid@3.0.1

timepiece@1.0.0 /Users/pichfl/Repositories/timepiece/tmp/electron-build-tmp
└─┬ electron-compile@6.1.2
  ├─┬ @paulcbetts/mime-types@2.1.10
  │ └── @paulcbetts/mime-db@1.22.4
  ├── btoa@1.1.2
  ├─┬ debug@2.6.1
  │ └── ms@0.7.2
  ├─┬ lru-cache@4.0.2
  │ ├── pseudomap@1.0.2
  │ └── yallist@2.0.0
  ├─┬ mkdirp@0.5.1
  │ └── minimist@0.0.8
  ├── pify@2.3.0
  ├─┬ rimraf@2.6.1
  │ └─┬ glob@7.1.1
  │   ├── fs.realpath@1.0.0
  │   ├─┬ inflight@1.0.6
  │   │ └── wrappy@1.0.2
  │   ├── inherits@2.0.3
  │   ├─┬ minimatch@3.0.3
  │   │ └─┬ brace-expansion@1.1.6
  │   │   ├── balanced-match@0.4.2
  │   │   └── concat-map@0.0.1
  │   ├── once@1.4.0
  │   └── path-is-absolute@1.0.1
  ├─┬ rxjs@5.2.0
  │ └── symbol-observable@1.0.4
  ├── spawn-rx@2.0.8
  └─┬ yargs@4.8.1
    ├─┬ cliui@3.2.0
    │ ├─┬ strip-ansi@3.0.1
    │ │ └── ansi-regex@2.1.1
    │ └── wrap-ansi@2.1.0
    ├── decamelize@1.2.0
    ├── get-caller-file@1.0.2
    ├── lodash.assign@4.2.0
    ├─┬ os-locale@1.4.0
    │ └─┬ lcid@1.0.0
    │   └── invert-kv@1.0.0
    ├─┬ read-pkg-up@1.0.1
    │ ├─┬ find-up@1.1.2
    │ │ ├── path-exists@2.1.0
    │ │ └─┬ pinkie-promise@2.0.1
    │ │   └── pinkie@2.0.4
    │ └─┬ read-pkg@1.1.0
    │   ├─┬ load-json-file@1.1.0
    │   │ ├── graceful-fs@4.1.11
    │   │ ├─┬ parse-json@2.2.0
    │   │ │ └─┬ error-ex@1.3.0
    │   │ │   └── is-arrayish@0.2.1
    │   │ └─┬ strip-bom@2.0.0
    │   │   └── is-utf8@0.2.1
    │   ├─┬ normalize-package-data@2.3.5
    │   │ ├── hosted-git-info@2.2.0
    │   │ ├─┬ is-builtin-module@1.0.0
    │   │ │ └── builtin-modules@1.1.1
    │   │ ├── semver@5.3.0
    │   │ └─┬ validate-npm-package-license@3.0.1
    │   │   ├─┬ spdx-correct@1.0.2
    │   │   │ └── spdx-license-ids@1.2.2
    │   │   └── spdx-expression-parse@1.0.4
    │   └── path-type@1.1.0
    ├── require-directory@2.1.1
    ├── require-main-filename@1.0.1
    ├── set-blocking@2.0.0
    ├─┬ string-width@1.0.2
    │ ├── code-point-at@1.1.0
    │ └─┬ is-fullwidth-code-point@1.0.0
    │   └── number-is-nan@1.0.1
    ├── which-module@1.0.0
    ├── window-size@0.2.0
    ├── y18n@3.2.1
    └─┬ yargs-parser@2.4.1
      └── camelcase@3.0.0

Making app w/ `electron-forge`
⠋ Preparing to Package Application for arch: x64  electron-packager Electron Packager 8.5.2 +0ms
  electron-packager Node v7.6.0 +1ms
  electron-packager Host Operating system: darwin (x64) +1ms
  electron-packager Packager Options: {"asar":false,"overwrite":true,"ignore":[],"afterCopy":[null,null,null,null],"afterExtract":[],"dir":"/Users/pichfl/Repositories/timepiece/tmp/electron-build-tmp","arch":"x64","platform":"darwin","out":"/Users/pichfl/Repositories/timepiece/tmp/electron-build-tmp/out","electronVersion":"1.4.15","quiet":true} +0ms
  electron-packager Target Platforms: darwin +0ms
  electron-packager Target Architectures: x64 +0ms
  electron-packager Inferring application name from name in /Users/pichfl/Repositories/timepiece/tmp/electron-build-tmp/package.json +8ms
  electron-packager Inferring app-version from version in /Users/pichfl/Repositories/timepiece/tmp/electron-build-tmp/package.json +0ms
  electron-packager Application name: timepiece +0ms
  electron-packager Target Electron version: 1.4.15 +0ms
  electron-packager Ignored path regular expressions: [ '/node_modules/electron($|/)',
  '/node_modules/electron-prebuilt($|/)',
  '/node_modules/electron-packager($|/)',
  '/\\.git($|/)',
  '/node_modules/\\.bin($|/)',
  '\\.o(bj)?$' ] +0ms
  electron-packager Downloading Electron with options {"platform":"darwin","arch":"x64","version":"1.4.15"} +8ms
⠸ Preparing to Package Application for arch: x64  electron-packager Creating /var/folders/lg/3qdjv59s2bs7k2k8w1m1_l940000gn/T/electron-packager/darwin-x64-template +257ms
  electron-packager Extracting /Users/pichfl/.electron/electron-v1.4.15-darwin-x64.zip to /var/folders/lg/3qdjv59s2bs7k2k8w1m1_l940000gn/T/electron-packager/darwin-x64-template +1ms
⠇ Preparing to Package Application for arch: x64  electron-packager Initializing app in /var/folders/lg/3qdjv59s2bs7k2k8w1m1_l940000gn/T/electron-packager/darwin-x64/timepiece-darwin-x64 from /var/folders/lg/3qdjv59s2bs7k2k8w1m1_l940000gn/T/electron-packager/darwin-x64-template template +1s
  electron-packager Ignored paths based on the out param: [ '/Users/pichfl/Repositories/timepiece/tmp/electron-build-tmp/out' ] +1ms
✔ 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".
Failed 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
  electron-packager Running npm prune --production +10selLifecycles: sill install printInstalled
  electron-packager Renaming Electron to timepiece in /var/folders/lg/3qdjv59s2bs7k2k8w1m1_l940000gn/T/electron-packager/darwin-x64/timepiece-darwin-x64/Electron.app/Contents/MacOS +1s
  electron-packager Renaming Electron Helper to timepiece Helper in /var/folders/lg/3qdjv59s2bs7k2k8w1m1_l940000gn/T/electron-packager/darwin-x64/timepiece-darwin-x64/Electron.app/Contents/Frameworks/Electron Helper.app/Contents/MacOS +1ms
  electron-packager Renaming Electron Helper.app to timepiece Helper.app in /var/folders/lg/3qdjv59s2bs7k2k8w1m1_l940000gn/T/electron-packager/darwin-x64/timepiece-darwin-x64/Electron.app/Contents/Frameworks +1ms
  electron-packager Renaming Electron Helper EH to timepiece Helper EH in /var/folders/lg/3qdjv59s2bs7k2k8w1m1_l940000gn/T/electron-packager/darwin-x64/timepiece-darwin-x64/Electron.app/Contents/Frameworks/Electron Helper EH.app/Contents/MacOS +0ms
  electron-packager Renaming Electron Helper EH.app to timepiece Helper EH.app in /var/folders/lg/3qdjv59s2bs7k2k8w1m1_l940000gn/T/electron-packager/darwin-x64/timepiece-darwin-x64/Electron.app/Contents/Frameworks +0ms
  electron-packager Renaming Electron Helper NP to timepiece Helper NP in /var/folders/lg/3qdjv59s2bs7k2k8w1m1_l940000gn/T/electron-packager/darwin-x64/timepiece-darwin-x64/Electron.app/Contents/Frameworks/Electron Helper NP.app/Contents/MacOS +0ms
  electron-packager Renaming Electron Helper NP.app to timepiece Helper NP.app in /var/folders/lg/3qdjv59s2bs7k2k8w1m1_l940000gn/T/electron-packager/darwin-x64/timepiece-darwin-x64/Electron.app/Contents/Frameworks +1ms
  electron-packager Moving /var/folders/lg/3qdjv59s2bs7k2k8w1m1_l940000gn/T/electron-packager/darwin-x64/timepiece-darwin-x64 to /Users/pichfl/Repositories/timepiece/tmp/electron-build-tmp/out/timepiece-darwin-x64 +0ms
✔ Packaging Application

Cleaning tmp build files

timepiece git/develop*  40s
❯ open .

timepiece git/develop*
❯ open /Users/pichfl/Repositories/timepiece/tmp/electron-build-tmp/out/timepiece-darwin-x64
The file /Users/pichfl/Repositories/timepiece/tmp/electron-build-tmp/out/timepiece-darwin-x64 does not exist.

timepiece git/develop*
❯ open /Users/pichfl/Repositories/timepiece/tmp/electron-build-tmp/out/
The file /Users/pichfl/Repositories/timepiece/tmp/electron-build-tmp/out does not exist.

timepiece git/develop*
❯ DEBUG=electron-packager ember electron:package
cleaning up...
Built project successfully. Stored in "/Users/pichfl/Repositories/timepiece/tmp/electron-build-tmp/dist".

Copying files into Electron Build folder
Copying ember-electron/electron.js
Copying package.json
Copying dist/webviews/timepiece.css
Copying assets/ipc.js
Copying assets/NSStatusItem_paused_Template.png
Copying assets/NSStatusItem_paused_Template@2x.png
Copying assets/NSStatusItem_Template.png
Copying assets/NSStatusItem_Template@2x.png
Copying assets/Tray_paused.ico
Copying assets/Tray.ico
Copying assets/webview-timepiece-overrides.css
Copying assets/webview-timepiece-overrides.js

Installing production dependencies into Electron Build folder
timepiece@1.0.0 /Users/pichfl/Repositories/timepiece/tmp/electron-build-tmp
└── uuid@3.0.1

timepiece@1.0.0 /Users/pichfl/Repositories/timepiece/tmp/electron-build-tmp
└─┬ electron-compile@6.1.2
  ├─┬ @paulcbetts/mime-types@2.1.10
  │ └── @paulcbetts/mime-db@1.22.4
  ├── btoa@1.1.2
  ├─┬ debug@2.6.1
  │ └── ms@0.7.2
  ├─┬ lru-cache@4.0.2
  │ ├── pseudomap@1.0.2
  │ └── yallist@2.0.0
  ├─┬ mkdirp@0.5.1
  │ └── minimist@0.0.8
  ├── pify@2.3.0
  ├─┬ rimraf@2.6.1
  │ └─┬ glob@7.1.1
  │   ├── fs.realpath@1.0.0
  │   ├─┬ inflight@1.0.6
  │   │ └── wrappy@1.0.2
  │   ├── inherits@2.0.3
  │   ├─┬ minimatch@3.0.3
  │   │ └─┬ brace-expansion@1.1.6
  │   │   ├── balanced-match@0.4.2
  │   │   └── concat-map@0.0.1
  │   ├── once@1.4.0
  │   └── path-is-absolute@1.0.1
  ├─┬ rxjs@5.2.0
  │ └── symbol-observable@1.0.4
  ├── spawn-rx@2.0.8
  └─┬ yargs@4.8.1
    ├─┬ cliui@3.2.0
    │ ├─┬ strip-ansi@3.0.1
    │ │ └── ansi-regex@2.1.1
    │ └── wrap-ansi@2.1.0
    ├── decamelize@1.2.0
    ├── get-caller-file@1.0.2
    ├── lodash.assign@4.2.0
    ├─┬ os-locale@1.4.0
    │ └─┬ lcid@1.0.0
    │   └── invert-kv@1.0.0
    ├─┬ read-pkg-up@1.0.1
    │ ├─┬ find-up@1.1.2
    │ │ ├── path-exists@2.1.0
    │ │ └─┬ pinkie-promise@2.0.1
    │ │   └── pinkie@2.0.4
    │ └─┬ read-pkg@1.1.0
    │   ├─┬ load-json-file@1.1.0
    │   │ ├── graceful-fs@4.1.11
    │   │ ├─┬ parse-json@2.2.0
    │   │ │ └─┬ error-ex@1.3.0
    │   │ │   └── is-arrayish@0.2.1
    │   │ └─┬ strip-bom@2.0.0
    │   │   └── is-utf8@0.2.1
    │   ├─┬ normalize-package-data@2.3.5
    │   │ ├── hosted-git-info@2.2.0
    │   │ ├─┬ is-builtin-module@1.0.0
    │   │ │ └── builtin-modules@1.1.1
    │   │ ├── semver@5.3.0
    │   │ └─┬ validate-npm-package-license@3.0.1
    │   │   ├─┬ spdx-correct@1.0.2
    │   │   │ └── spdx-license-ids@1.2.2
    │   │   └── spdx-expression-parse@1.0.4
    │   └── path-type@1.1.0
    ├── require-directory@2.1.1
    ├── require-main-filename@1.0.1
    ├── set-blocking@2.0.0
    ├─┬ string-width@1.0.2
    │ ├── code-point-at@1.1.0
    │ └─┬ is-fullwidth-code-point@1.0.0
    │   └── number-is-nan@1.0.1
    ├── which-module@1.0.0
    ├── window-size@0.2.0
    ├── y18n@3.2.1
    └─┬ yargs-parser@2.4.1
      └── camelcase@3.0.0

Packaging app w/ `electron-forge`
  electron-packager Electron Packager 8.5.2 +0ms⸨                 ░⸩ ⠦ runTopLevelLifecycles: sill install printInstalled
  electron-packager Node v7.6.0 +2ms
  electron-packager Host Operating system: darwin (x64) +0ms
  electron-packager Packager Options: {"asar":false,"overwrite":true,"ignore":[],"afterCopy":[null,null,null,null],"afterExtract":[],"dir":"/Users/pichfl/Repositories/timepiece/tmp/electron-build-tmp","arch":"x64","platform":"darwin","out":"/Users/pichfl/Repositories/timepiece/tmp/electron-build-tmp/out","electronVersion":"1.4.15","quiet":true} +0ms
  electron-packager Target Platforms: darwin +0ms
  electron-packager Target Architectures: x64 +0ms
  electron-packager Inferring application name from name in /Users/pichfl/Repositories/timepiece/tmp/electron-build-tmp/package.json +5ms
  electron-packager Inferring app-version from version in /Users/pichfl/Repositories/timepiece/tmp/electron-build-tmp/package.json +0ms
  electron-packager Application name: timepiece +1ms
  electron-packager Target Electron version: 1.4.15 +0ms
  electron-packager Ignored path regular expressions: [ '/node_modules/electron($|/)',
  '/node_modules/electron-prebuilt($|/)',
  '/node_modules/electron-packager($|/)',
  '/\\.git($|/)',
  '/node_modules/\\.bin($|/)',
  '\\.o(bj)?$' ] +0ms
  electron-packager Downloading Electron with options {"platform":"darwin","arch":"x64","version":"1.4.15"} +2ms
⠸ Preparing to Package Application for arch: x64  electron-packager Creating /var/folders/lg/3qdjv59s2bs7k2k8w1m1_l940000gn/T/electron-packager/darwin-x64-template +223ms
  electron-packager Extracting /Users/pichfl/.electron/electron-v1.4.15-darwin-x64.zip to /var/folders/lg/3qdjv59s2bs7k2k8w1m1_l940000gn/T/electron-packager/darwin-x64-template +0ms
  electron-packager Initializing app in /var/folders/lg/3qdjv59s2bs7k2k8w1m1_l940000gn/T/electron-packager/darwin-x64/timepiece-darwin-x64 from /var/folders/lg/3qdjv59s2bs7k2k8w1m1_l940000gn/T/electron-packager/darwin-x64-template template +2s
  electron-packager Ignored paths based on the out param: [ '/Users/pichfl/Repositories/timepiece/tmp/electron-build-tmp/out' ] +2ms
✔ 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  electron-packager Running npm prune --production +9s
⠇ Packaging Application  electron-packager Renaming Electron to timepiece in /var/folders/lg/3qdjv59s2bs7k2k8w1m1_l940000gn/T/electron-packager/darwin-x64/timepiece-darwin-x64/Electron.app/Contents/MacOS +678ms
  electron-packager Renaming Electron Helper to timepiece Helper in /var/folders/lg/3qdjv59s2bs7k2k8w1m1_l940000gn/T/electron-packager/darwin-x64/timepiece-darwin-x64/Electron.app/Contents/Frameworks/Electron Helper.app/Contents/MacOS +1ms
  electron-packager Renaming Electron Helper.app to timepiece Helper.app in /var/folders/lg/3qdjv59s2bs7k2k8w1m1_l940000gn/T/electron-packager/darwin-x64/timepiece-darwin-x64/Electron.app/Contents/Frameworks +0ms
  electron-packager Renaming Electron Helper EH to timepiece Helper EH in /var/folders/lg/3qdjv59s2bs7k2k8w1m1_l940000gn/T/electron-packager/darwin-x64/timepiece-darwin-x64/Electron.app/Contents/Frameworks/Electron Helper EH.app/Contents/MacOS +1ms
  electron-packager Renaming Electron Helper EH.app to timepiece Helper EH.app in /var/folders/lg/3qdjv59s2bs7k2k8w1m1_l940000gn/T/electron-packager/darwin-x64/timepiece-darwin-x64/Electron.app/Contents/Frameworks +0ms
  electron-packager Renaming Electron Helper NP to timepiece Helper NP in /var/folders/lg/3qdjv59s2bs7k2k8w1m1_l940000gn/T/electron-packager/darwin-x64/timepiece-darwin-x64/Electron.app/Contents/Frameworks/Electron Helper NP.app/Contents/MacOS +0ms
  electron-packager Renaming Electron Helper NP.app to timepiece Helper NP.app in /var/folders/lg/3qdjv59s2bs7k2k8w1m1_l940000gn/T/electron-packager/darwin-x64/timepiece-darwin-x64/Electron.app/Contents/Frameworks +0ms
  electron-packager Moving /var/folders/lg/3qdjv59s2bs7k2k8w1m1_l940000gn/T/electron-packager/darwin-x64/timepiece-darwin-x64 to /Users/pichfl/Repositories/timepiece/tmp/electron-build-tmp/out/timepiece-darwin-x64 +1ms
✔ Packaging Application

Cleaning tmp build files

Isn't this fun? It compiles, it does stuff, it doesn't leave a trace of an actual result.

@anulman
Copy link
Collaborator

anulman commented Mar 3, 2017

Looks like forge isn't respecting the out directory. Can you confirm you've cloned electron-forge, checked out the branch specified in #147, and npm linked in your project?

Note that, if your project is using a linked version of ember-electron, you'll need to npm link to forge in the ember-electron dir instead

@pichfl
Copy link
Collaborator Author

pichfl commented Mar 3, 2017

Testing…

I'm pretty sure I have got this right but with all the switching while pumping out the pull requests, lets see.

@pichfl
Copy link
Collaborator Author

pichfl commented Mar 3, 2017

Snafu on my side.

  1. Clone isleofcode/electron-forge somewhere
  2. git checkout feat/make-platforms
  3. npm install
  4. npm link
  5. Clone felixrieseberg/ember-electron in new directory somewhere else
  6. npm install
  7. npm link electron-forge
  8. npm link
  9. Go to your project
  10. npm link ember-electron

Works for now.

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

2 participants