electron-userland / electron-webpack

Scripts and configurations to compile Electron applications using webpack
https://webpack.electron.build/
906 stars 171 forks source link

Documentation should specify how to exclude files from build #215

Closed kingpalethe closed 6 years ago

kingpalethe commented 6 years ago

Here in the documentation there is a brief discussion of using electron-builder.

https://webpack.electron.build/building

Near the end of this documentation, we see: Further configurations can be made in accordance to electron-builder's documentation.

In my case, I am trying to use electron-builder's files functionality to exclude certain node modules from the build.

electron-builder's documentation on this can be found here: https://www.electron.build/configuration/contents

As a test, I am attempting to exclude one file from one node module. Here is the build section of my package.json

  "build": {
    "files": [
      "!node_modules/ffprobe-static/bin/win32/ia32/ffprobe.exe"
    ],
    "asarUnpack": [
      "**/app/node_modules/ffmpeg-static/*",
      "**/app/node_modules/ffprobe-static/*",
      "screenShotLib"
    ],
    "asar": true
  },

So you can see here that I am attempting to exclude node_modules/ffprobe-static/bin/win32/ia32/ffprobe.exe from the build.

After adding this, I run yarn dist. On the command line, I see this output.

electron-builder version=20.28.1
loaded configuration file=package.json ("build" field)
loaded parent configuration file=C:\Users\username\workspace\grabber\node_modules\electron-webpack\electron-builder.yml
writing effective config file=dist\builder-effective-config.yaml

This looks good so far, it seems that electron-webpack's parent configuration was loaded, and an "effective config" is loaded.

This effective config does not seem to appear in the documentation, but I am assuming it is some kind of merge of my config in package.json and electron-builder's "parent configuration".

So now I look in my dist folder, and I do find that my files configuration has been written into the builder-effective-config.yml file

---- /dist/builder-effective-config.yaml 
directories:
  output: dist
  buildResources: build
extraMetadata:
  main: main.js
files:
  - from: .
    filter:
      - package.json
      - '!node_modules/ffprobe-static/bin/win32/ia32/ffprobe.exe'
  - from: dist/main
  - from: dist/renderer
  - from: dist/renderer-dll
extraResources:
  - from: static
    to: static
asarUnpack:
  - '**/app/node_modules/ffmpeg-static/*'
  - '**/app/node_modules/ffprobe-static/*'
  - screenShotLib
asar: true
extends: electron-webpack/electron-builder.yml
electronVersion: 2.0.7

So you can see above that '!node_modules/ffprobe-static/bin/win32/ia32/ffprobe.exe' has been written into this builder-effective-config.yaml

Unfortunately, after this, I find that the file still exists in this folder \dist\win-unpacked\resources\app.asar.unpacked\node_modules\ffprobe-static\bin\win32\ia32

capture

develar commented 6 years ago

Could you please try to replace

"!node_modules/ffprobe-static/bin/win32/ia32/ffprobe.exe"

to "!**/node_modules/ffprobe-static/bin/win32/ia32/ffprobe.exe"

or maybe even "!**/ffprobe-static/bin/win32/ia32/ffprobe.exe"

kingpalethe commented 6 years ago

Thanks. I've tried both of these, and in both cases the build fails with this error:

⨯ remove C:\Users\username\Documents\workspace\grabber\dist\win-unpacked\resources\app.asar.unpacked\node_modules\ffprobe-static: The directory is not empty.
github.com/develar/app-builder/vendor/github.com/develar/go-fs-util.EnsureEmptyDir
develar commented 6 years ago

Please set env DEBUG=electron-builder (https://www.electron.build/#debug) and attach log of the terminal output.

electron-builder version?

kingpalethe commented 6 years ago

Thanks. I've done that. Note that I cannot get the The directory is not empty error to reproduce. I'm not sure why. This shows my version numbers

  "devDependencies": {
    "@babel/preset-react": "^7.0.0",
    "babel-preset-env": "^1.7.0",
    "electron": "2.0.7",
    "electron-builder": "^20.28.1",
    "electron-react-devtools": "^0.5.3",
    "electron-webpack": "^2.1.2",
    "webpack": "^4.16.5"
  },

Here is the full DEBUG output from my last build attempt

$ yarn dist
yarn run v1.10.1
$ yarn compile && electron-builder
$ electron-webpack
[1] Hash: 6f1ebcf6740df0d25722ee5c530fdba24d707c12
Version: webpack 4.16.5
Child
    Hash: 6f1ebcf6740df0d25722
    Time: 1720ms
    Built at: 2018-10-31 05:12:26
          Asset      Size  Chunks             Chunk Names
        main.js  1.82 KiB       0  [emitted]  main
    main.js.map  2.82 KiB       0  [emitted]  main
    Entrypoint main = main.js main.js.map
    [0] external "electron" 42 bytes {0} [built]
    [1] external "path" 42 bytes {0} [built]
    [2] external "url" 42 bytes {0} [built]
    [3] multi ./src/main/index.js 28 bytes {0} [built]
    [4] ./src/main/index.js 1.79 KiB {0} [built]
Child
    Hash: ee5c530fdba24d707c12
    Time: 2260ms
    Built at: 2018-10-31 05:12:27
              Asset       Size  Chunks             Chunk Names
         styles.css    147 KiB       0  [emitted]  renderer
        renderer.js   12.5 KiB       0  [emitted]  renderer
     styles.css.map   37.7 KiB       0  [emitted]  renderer
    renderer.js.map   16.1 KiB       0  [emitted]  renderer
         index.html  353 bytes          [emitted]
    Entrypoint renderer = styles.css renderer.js styles.css.map renderer.js.map
     [0] external "react" 42 bytes {0} [built]
     [1] external "immer" 42 bytes {0} [built]
     [2] external "unstated" 42 bytes {0} [built]
     [3] external "react-toastify" 42 bytes {0} [built]
     [5] external "reactstrap" 42 bytes {0} [built]
     [6] external "lodash" 42 bytes {0} [built]
    [11] external "electron-store" 42 bytes {0} [built]
    [12] external "react-dom" 42 bytes {0} [built]
    [13] external "unstated-debug" 42 bytes {0} [built]
    [14] external "ytdl-core" 42 bytes {0} [built]
    [16] external "@fortawesome/free-solid-svg-icons" 42 bytes {0} [built]
    [17] multi ./src/views/index.js 28 bytes {0} [built]
    [18] external "@babel/polyfill" 42 bytes {0} [built]
    [23] ./src/views/main.css 39 bytes {0} [built]
    [29] ./src/views/index.js + 6 modules 20.7 KiB {0} [built]
         | ./src/views/index.js 1.58 KiB [built]
         | ./src/utils/paths.js 1.05 KiB [built]
         | ./src/models/Videos.js 5.55 KiB [built]
         | ./src/models/Ui.js 2.4 KiB [built]
         | ./src/views/Downloads.js 4.72 KiB [built]
         | ./src/views/Editor.js 4.59 KiB [built]
         | ./src/utils/ffprobe.js 768 bytes [built]
        + 15 hidden modules
    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 279 bytes {0} [built]
    Child mini-css-extract-plugin node_modules/css-loader/index.js!node_modules/bootstrap/dist/css/bootstrap.min.css:
        Entrypoint mini-css-extract-plugin = *
           2 modules
    Child mini-css-extract-plugin node_modules/css-loader/index.js!node_modules/react-toastify/dist/ReactToastify.css:
        Entrypoint mini-css-extract-plugin = *
           2 modules
    Child mini-css-extract-plugin node_modules/css-loader/index.js!src/views/main.css:
        Entrypoint mini-css-extract-plugin = *
        [0] ./node_modules/css-loader!./src/views/main.css 624 bytes {0} [built]
            + 1 hidden module
  • electron-builder version=20.28.1
  • loaded configuration file=package.json ("build" field)
  • loaded parent configuration file=C:\Users\USERNAME\Documents\workspace\grabber\node_modules\electron-webpack\electron-builder.yml
  • description is missed in the package.json appPackageFile=C:\Users\USERNAME\Documents\workspace\grabber\package.json
  • author is missed in the package.json appPackageFile=C:\Users\USERNAME\Documents\workspace\grabber\package.json
  • writing effective config file=dist\builder-effective-config.yaml
  • no native production dependencies
  • packaging       platform=win32 arch=x64 electron=2.0.7 appOutDir=dist\win-unpacked
  • file source doesn't exist from=C:\Users\USERNAME\Documents\workspace\grabber\static
  • default Electron icon is used reason=application icon is not set
  • building        target=nsis file=dist\grabber Setup 0.0.1.exe archs=x64 oneClick=true
  • building block map blockMapFile=dist\grabber Setup 0.0.1.exe.blockmap
Done in 64.59s.

USERNAME@Arous117696 MINGW64 ~/Documents/workspace/grabber (debug)
$ DEBUG=electron-builder yarn dist
yarn run v1.10.1
$ yarn compile && electron-builder
$ electron-webpack
[1] Hash: 6f1ebcf6740df0d25722ee5c530fdba24d707c12
Version: webpack 4.16.5
Child
    Hash: 6f1ebcf6740df0d25722
    Time: 2005ms
    Built at: 2018-10-31 05:13:50
          Asset      Size  Chunks             Chunk Names
        main.js  1.82 KiB       0  [emitted]  main
    main.js.map  2.82 KiB       0  [emitted]  main
    Entrypoint main = main.js main.js.map
    [0] external "electron" 42 bytes {0} [built]
    [1] external "path" 42 bytes {0} [built]
    [2] external "url" 42 bytes {0} [built]
    [3] multi ./src/main/index.js 28 bytes {0} [built]
    [4] ./src/main/index.js 1.79 KiB {0} [built]
Child
    Hash: ee5c530fdba24d707c12
    Time: 2362ms
    Built at: 2018-10-31 05:13:51
              Asset       Size  Chunks             Chunk Names
         styles.css    147 KiB       0  [emitted]  renderer
        renderer.js   12.5 KiB       0  [emitted]  renderer
     styles.css.map   37.7 KiB       0  [emitted]  renderer
    renderer.js.map   16.1 KiB       0  [emitted]  renderer
         index.html  353 bytes          [emitted]
    Entrypoint renderer = styles.css renderer.js styles.css.map renderer.js.map
     [0] external "react" 42 bytes {0} [built]
     [1] external "immer" 42 bytes {0} [built]
     [2] external "unstated" 42 bytes {0} [built]
     [3] external "react-toastify" 42 bytes {0} [built]
     [5] external "reactstrap" 42 bytes {0} [built]
     [6] external "lodash" 42 bytes {0} [built]
    [11] external "electron-store" 42 bytes {0} [built]
    [12] external "react-dom" 42 bytes {0} [built]
    [13] external "unstated-debug" 42 bytes {0} [built]
    [14] external "ytdl-core" 42 bytes {0} [built]
    [16] external "@fortawesome/free-solid-svg-icons" 42 bytes {0} [built]
    [17] multi ./src/views/index.js 28 bytes {0} [built]
    [18] external "@babel/polyfill" 42 bytes {0} [built]
    [23] ./src/views/main.css 39 bytes {0} [built]
    [29] ./src/views/index.js + 6 modules 20.7 KiB {0} [built]
         | ./src/views/index.js 1.58 KiB [built]
         | ./src/utils/paths.js 1.05 KiB [built]
         | ./src/models/Videos.js 5.55 KiB [built]
         | ./src/models/Ui.js 2.4 KiB [built]
         | ./src/views/Downloads.js 4.72 KiB [built]
         | ./src/views/Editor.js 4.59 KiB [built]
         | ./src/utils/ffprobe.js 768 bytes [built]
        + 15 hidden modules
    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 279 bytes {0} [built]
    Child mini-css-extract-plugin node_modules/css-loader/index.js!node_modules/bootstrap/dist/css/bootstrap.min.css:
        Entrypoint mini-css-extract-plugin = *
           2 modules
    Child mini-css-extract-plugin node_modules/css-loader/index.js!node_modules/react-toastify/dist/ReactToastify.css:
        Entrypoint mini-css-extract-plugin = *
           2 modules
    Child mini-css-extract-plugin node_modules/css-loader/index.js!src/views/main.css:
        Entrypoint mini-css-extract-plugin = *
        [0] ./node_modules/css-loader!./src/views/main.css 624 bytes {0} [built]
            + 1 hidden module
  • electron-builder version=20.28.1
  • loaded configuration file=package.json ("build" field)
  • loaded parent configuration file=C:\Users\USERNAME\Documents\workspace\grabber\node_modules\electron-webpack\electron-builder.yml
  • effective config config=
                       directories:
                         output: dist
                         buildResources: build
                       extraMetadata:
                         main: main.js
                       files:
                         - from: .
                           filter:
                             - package.json
                             - '!**/node_modules/ffprobe-static/bin/win32/ia32/ffprobe.exe'
                         - from: dist/main
                         - from: dist/renderer
                         - from: dist/renderer-dll
                       extraResources:
                         - from: static
                           to: static
                       asarUnpack:
                         - '**/app/node_modules/ffmpeg-static/*'
                         - screenShotLib
                         - '**/app/node_modules/ffprobe-static/*'
                       asar: true
                       extends: electron-webpack/electron-builder.yml

  • description is missed in the package.json appPackageFile=C:\Users\USERNAME\Documents\workspace\grabber\package.json
  • author is missed in the package.json appPackageFile=C:\Users\USERNAME\Documents\workspace\grabber\package.json
  • writing effective config file=dist\builder-effective-config.yaml
  • no native production dependencies
  • packaging       platform=win32 arch=x64 electron=2.0.7 appOutDir=dist\win-unpacked
  • spawning        command=C:\Users\USERNAME\Documents\workspace\grabber\node_modules\app-builder-bin\win\x64\app-builder.exe unpack-electron --configuration [{"platfor
m":"win32","arch":"x64","version":"2.0.7"}] --output C:\Users\USERNAME\Documents\workspace\grabber\dist\win-unpacked --distMacOsAppName Electron.app
  • map async                 taskCount=2
  • map async                 taskCount=1
  • map async                 taskCount=117
  • exited          command=app-builder.exe code=0 pid=26684
  • skipped copying directory=C:\Users\USERNAME\Documents\workspace\grabber\dist\renderer-dll reason=doesn't exist
  • spawning        command=C:\Users\USERNAME\Documents\workspace\grabber\node_modules\app-builder-bin\win\x64\app-builder.exe node-dep-tree --dir C:\Users\USERNAME\Documen
ts\workspace\grabber
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\grabber\node_modules round=0 unresolved=@babel/plugin-syntax-class-properties, @babel/h
elper-member-expression-to-functions, @babel/helper-optimise-call-expression
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\grabber\node_modules round=0 unresolved=@babel/helper-member-expression-to-functions, @
babel/helper-optimise-call-expression
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\node_modules round=1 unresolved=@babel/helper-member-expression-to-functions, @babel/he
lper-optimise-call-expression
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\grabber\node_modules\@babel\plugin-proposal-class-properties\node_modules round=0 unres
olved=@babel/code-frame, @babel/parser, @babel/types, globals, @babel/generator, @babel/helper-function-name, @babel/helper-split-export-declaration, debug, lodash
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\grabber\node_modules round=1 unresolved=, , @babel/types, globals, , @babel/helper-func
tion-name, , ,
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\grabber\node_modules round=0 unresolved=chalk, esutils
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\grabber\node_modules\@babel\plugin-proposal-class-properties\node_modules round=0 unres
olved=lodash, source-map, trim-right, @babel/types, jsesc
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\grabber\node_modules round=1 unresolved=lodash, source-map, trim-right, @babel/types,
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\node_modules round=2 unresolved=lodash, , , @babel/types,
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\grabber\node_modules round=0 unresolved=@babel/types
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\node_modules round=1 unresolved=@babel/types
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\grabber\node_modules round=0 unresolved=ms
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\grabber\node_modules round=0 unresolved=to-fast-properties, esutils
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\node_modules round=1 unresolved=, esutils
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\node_modules round=0 unresolved=@babel/types
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\node_modules round=0 unresolved=@babel/types
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\grabber\node_modules round=0 unresolved=@babel/code-frame, @babel/parser, @babel/types
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\node_modules round=1 unresolved=, , @babel/types
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\node_modules round=0 unresolved=chalk, esutils
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\grabber\node_modules round=0 unresolved=esutils, lodash, to-fast-properties
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\node_modules round=1 unresolved=esutils, lodash, to-fast-properties
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\grabber\node_modules round=0 unresolved=@babel/types
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\node_modules round=1 unresolved=@babel/types
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\grabber\node_modules round=0 unresolved=@babel/types
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\node_modules round=1 unresolved=@babel/types
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\grabber\node_modules\@babel\plugin-proposal-class-properties\node_modules round=0 unres
olved=@babel/code-frame, @babel/parser, @babel/types
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\grabber\node_modules round=1 unresolved=@babel/code-frame, @babel/parser, @babel/types
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\node_modules round=2 unresolved=@babel/code-frame, @babel/parser, @babel/types
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\grabber\node_modules round=0 unresolved=esutils, to-fast-properties
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\node_modules round=1 unresolved=esutils, to-fast-properties
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\grabber\node_modules round=0 unresolved=esutils, to-fast-properties
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\node_modules round=1 unresolved=esutils, to-fast-properties
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\grabber\node_modules round=0 unresolved=buffer-from
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\node_modules round=0 unresolved=unstated
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\node_modules round=0 unresolved=miniget, sax
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\grabber\node_modules round=0 unresolved=p-locate
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\grabber\node_modules round=0 unresolved=loose-envify, object-assign, prop-types, schedu
ler
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\grabber\node_modules round=0 unresolved=loose-envify, object-assign
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\node_modules round=1 unresolved=loose-envify, object-assign
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\grabber\node_modules round=0 unresolved=loose-envify, object-assign
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\node_modules round=1 unresolved=loose-envify, object-assign
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\node_modules round=0 unresolved=prop-types
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\node_modules round=0 unresolved=prop-types
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\grabber\node_modules round=0 unresolved=dom-helpers, loose-envify, prop-types, react-li
fecycles-compat
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\node_modules round=1 unresolved=, loose-envify, prop-types, react-lifecycles-compat
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\node_modules round=0 unresolved=@fortawesome/fontawesome-common-types
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\node_modules round=0 unresolved=prop-types
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\grabber\node_modules round=0 unresolved=is-stream, npm-run-path, p-finally, signal-exit
, strip-eof, cross-spawn
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\node_modules round=1 unresolved=, , , signal-exit, ,
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\grabber\node_modules round=0 unresolved=end-of-stream, once
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\node_modules round=0 unresolved=once
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\grabber\node_modules round=0 unresolved=semver, shebang-command, which, nice-try, path-
key
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\node_modules round=1 unresolved=, , , , path-key
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\grabber\node_modules round=0 unresolved=object-assign, prop-types, scheduler, loose-env
ify
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\node_modules round=1 unresolved=object-assign, prop-types, scheduler, loose-envify
  • unresolved deps           nodeModuleDir=C:\Users\USERNAME\Documents\workspace\node_modules round=0 unresolved=react-transition-group, classnames, prop-types
  • exited          command=app-builder.exe code=0 pid=25160 out=[{"dir":"C:\\Users\\USERNAME\\Documents\\workspace\\grabber\\node_modules","deps":["@babel/code-frame","
@babel/helper-function-name","@babel/helper-get-function-arity","@babel/helper-member-expression-to-functions","@babel/helper-optimise-call-expression","@babel/highli
ght","@babel/parser","@babel/plugin-proposal-class-properties","@babel/plugin-syntax-class-properties","@babel/polyfill","@babel/template","@babel/types","@fortawesom
e/fontawesome-common-types","@fortawesome/fontawesome-svg-core","@fortawesome/free-solid-svg-icons","@fortawesome/react-fontawesome","ansi-styles","awesome-debounce-p
romise","bootstrap","buffer-from","chalk","classnames","color-convert","color-name","conf","core-js","create-react-context","cross-spawn","debounce-promise","deep-obj
ect-diff","dom-helpers","dot-prop","electron-store","end-of-stream","env-paths","escape-string-regexp","esutils","execa","ffmpeg-static","ffprobe-static","filesize.js
","find-up","get-src","get-video-id","globals","graceful-fs","has-flag","html-entities","humps","immediate","immer","imurmurhash","is-obj","is-stream","isexe","jquery
","js-tokens","lie","localforage","locate-path","lodash","lodash.isfunction","lodash.isobject","lodash.tonumber","loose-envify","m3u8stream","make-dir","miniget","ms"
,"nice-try","npm-run-path","object-assign","once","p-finally","p-limit","p-locate","p-try","path-key","pkg-up","popper.js","prop-types","react","react-dom","react-lif
ecycles-compat","react-popper","react-toastify","react-transition-group","reactstrap","regenerator-runtime","sax","scheduler","semver","shebang-command","shebang-rege
x","signal-exit","source-map","source-map-support","strip-eof","supports-color","tickedoff","to-fast-properties","trim-right","unstated","unstated-debug","unstated-pe
rsist","which","wrappy","write-file-atomic","ytdl-core"]},{"dir":"C:\\Users\\USERNAME\\Documents\\workspace\\grabber\\node_modules\\execa\\node_modules","deps":["get-str
,"html-entities","humps","immediate","immer","imurmurhash","is-obj","is-stream","isexe","jquery","js-tokens","lie","localforage","locate-path","lodash","lodash.isfunction","lodash.isobject","lodash.tonumber","loose-envify","m3u8stream","make-dir
","miniget","ms","nice-try","npm-run-path","object-assign","once","p-finally","p-limit","p-locate","p-try","path-key","pkg-up","popper.js","prop-types","react","react-dom","react-lifecycles-compat","react-popper","react-toastify","react-transiti
on-group","reactstrap","regenerator-runtime","sax","scheduler","semver","shebang-command","shebang-regex","signal-exit","source-map","source-map-support","strip-eof","supports-color","tickedoff","to-fast-properties","trim-right","unstated","unstments\\workspace\\grabber\\node_modules\\loose-envify\\node_modules","deps":["js-tokens"]},{"dir":"C:\\Users\\USERNAME\\Documents\\workspace\\grabber\\node_modules\\make
ated-debug","unstated-persist","which","wrappy","write-file-atomic","ytdl-core"]},{"dir":"C:\\Users\\USERNAME\\Documents\\workspace\\grabber\\node_modules\\execa\\node_modules","deps":["get-stream","pump"]},{"dir":"C:\\Users\\USERNAME\\Documents\\worklid-svg-icons","@fortawesome/react-fontawesome","ansi-styles","awesome-debounce-promise","bootstrap","buffer-from","chalk","classnames","color-convert","color-name","conf","core-js","create-react-context","cross-spawn","debounce-promise","deep-object-space\\grabber\\node_modules\\locate-path\\node_modules","deps":["path-exists"]},{"dir":"C:\\Users\\USERNAME\\Documents\\workspace\\grabber\\node_modules\\loose-envify\\node_modules","deps":["js-tokens"]},{"dir":"C:\\Users\\USERNAME\\Documents\\worksp"C:\\Udiff","dom-helpers","dot-prop","electron-store","end-of-stream","env-paths","escape-string-regexp","esutils","execa","ffmpeg-static","ffprobe-static","filesize.js","find-up","get-src","get-video-id","globals","graceful-fs","has-flag","html-entities","ace\\grabber\\node_modules\\make-dir\\node_modules","deps":["pify"]},{"dir":"C:\\Users\\USERNAME\\Documents\\workspace\\grabber\\node_modules\\source-map-support\\node_modules","deps":["source-map"]},{"dir":"C:\\Users\\USERNAME\\Documents\\workspace\\,"@babhumps","immediate","immer","imurmurhash","is-obj","is-stream","isexe","jquery","js-tokens","lie","localforage","locate-path","lodash","lodash.isfunction","lodash.isobject","lodash.tonumber","loose-envify","m3u8stream","make-dir","miniget","ms","nice-tgrabber\\node_modules\\@babel\\helper-member-expression-to-functions\\node_modules","deps":["@babel/types","lodash"]},{"dir":"C:\\Users\\USERNAME\\Documents\\workspace\\grabber\\node_modules\\@babel\\helper-optimise-call-expression\\node_modules","pace\\ry","npm-run-path","object-assign","once","p-finally","p-limit","p-locate","p-try","path-key","pkg-up","popper.js","prop-types","react","react-dom","react-lifecycles-compat","react-popper","react-toastify","react-transition-group","reactstrap","regenedeps":["@babel/types","lodash"]},{"dir":"C:\\Users\\USERNAME\\Documents\\workspace\\grabber\\node_modules\\@babel\\plugin-proposal-class-properties\\node_modules","deps":["@babel/code-frame","@babel/generator","@babel/helper-function-name","@babel/  • norator-runtime","sax","scheduler","semver","shebang-command","shebang-regex","signal-exit","source-map","source-map-support","strip-eof","supports-color","tickedoff","to-fast-properties","trim-right","unstated","unstated-debug","unstated-persist","whichelper-get-function-arity","@babel/helper-plugin-utils","@babel/helper-replace-supers","@babel/helper-split-export-declaration","@babel/highlight","@babel/parser","@babel/template","@babel/traverse","@babel/types","debug","js-tokens","jsesc","loh","wrappy","write-file-atomic","ytdl-core"]},{"dir":"C:\\Users\\USERNAME\\Documents\\workspace\\grabber\\node_modules\\execa\\node_modules","deps":["get-stream","pump"]},{"dir":"C:\\Users\\USERNAME\\Documents\\workspace\\grabber\\node_modules\\locate-path\abel\\template\\node_modules","deps":["lodash"]},{"dir":"C:\\Users\\USERNAME\\Documents\\workspace\\grabber\\node_modules\\@babel\\types\\node_modules","deps":["lodash"]}]ps","immediate","immer","imurmurhash","is-obj","is-stream","isexe","jquery","js-tokens","lie","localforage","locate-path","lodash","lodash.isfunction","lodash.isobject","lodash.tonumber","loose-envify","m3u8stream","make-dir","miniget","ms","nice-try", • not packed into asar archive file=node_modules\ffprobe-static\bin\win32\x64\ffprobe.exe reason=contains executable code
"npm-run-path","object-assign","once","p-finally","p-limit","p-locate","p-try","path-key","pkg-up","popper.js","prop-types","react","react-dom","react-lifecycles-compat","react-popper","react-toastify","react-transition-group","reactstrap","regeneratorn-to-functions\\node_modules","deps":["@babel/types","lodash"]},{"dir":"C:\\Users\\USERNAME\\Documents\\workspace\\grabber\\node_modules\\@babel\\helper-optimise-call-expression\\node_modules","deps":["@babel/types","lodash"]},{"dir":"C:\\Users\\USERNAME\\D
-runtime","sax","scheduler","semver","shebang-command","shebang-regex","signal-exit","source-map","source-map-support","strip-eof","supports-color","tickedoff","to-fast-properties","trim-right","unstated","unstated-debug","unstated-persist","which","wrlper-replace-supers","@babel/helper-split-export-declaration","@babel/highlight","@babel/parser","@babel/template","@babel/traverse","@babel/types","debug","js-tokens","jsesc","lodash"]},{"dir":"C:\\Users\\USERNAME\\Documents\\workspace\\grabber\\node_mo
appy","write-file-atomic","ytdl-core"]},{"dir":"C:\\Users\\USERNAME\\Documents\\workspace\\grabber\\node_modules\\execa\\node_modules","deps":["get-stream","pump"]},{"dir":"C:\\Users\\USERNAME\\Documents\\workspace\\grabber\\node_modules\\locate-path\\node_muments\\workspace\\grabber\\node_modules\\@babel\\types\\node_modules","deps":["lodash"]}]
,"immer","imurmurhash","is-obj","is-stream","isexe","jquery","js-tokens","lie","localforage","locate-path","lodash","lodash.isfunction","lodash.isobject","lodash.tonumber","loose-envify","m3u8stream","make-dir","miniget","ms","nice-try","npm-run-path","objeot packed into asar archive file=node_modules\ffprobe-static\bin\win32\x64\ffprobe.exe reason=contains executable code
ct-assign","once","p-finally","p-limit","p-locate","p-try","path-key","pkg-up","popper.js","prop-types","react","react-dom","react-lifecycles-compat","react-popper","react-toastify","react-transition-group","reactstrap","regenerator-runtime","sax","scheduletions\\node_modules","deps":["@babel/types","lodash"]},{"dir":"C:\\Users\\USERNAME\\Documents\\workspace\\grabber\\node_modules\\@babel\\helper-optimise-call-expression\\node_modules","deps":["@babel/types","lodash"]},{"dir":"C:\\Users\\USERNAME\\Documents\\
r","semver","shebang-command","shebang-regex","signal-exit","source-map","source-map-support","strip-eof","supports-color","tickedoff","to-fast-properties","trim-right","unstated","unstated-debug","unstated-persist","which","wrappy","write-file-atomic","ytde-supers","@babel/helper-split-export-declaration","@babel/highlight","@babel/parser","@babel/template","@babel/traverse","@babel/types","debug","js-tokens","jsesc","lodash"]},{"dir":"C:\\Users\\USERNAME\\Documents\\workspace\\grabber\\node_modules\\@babe
l-core"]},{"dir":"C:\\Users\\USERNAME\\Documents\\workspace\\grabber\\node_modules\\execa\\node_modules","deps":["get-stream","pump"]},{"dir":"C:\\Users\\USERNAME\\Documents\\workspace\\grabber\\node_modules\\locate-path\\node_modules","deps":["path-exists"]},{"dpace\\grabber\\node_modules\\@babel\\types\\node_modules","deps":["lodash"]}]
ir":"C:\\Users\\USERNAME\\Documents\\workspace\\grabber\\node_modules\\loose-envify\\node_modules","deps":["js-tokens"]},{"dir":"C:\\Users\\USERNAME\\Documents\\workspace\\grabber\\node_modules\\make-dir\\node_modules","deps":["pify"]},{"dir":"C:\\Users\\USERNAME\\D  • not packed into asar archive file=node_modules\ffprobe-static\bin\win32\x64\ffprobe.exe reason=contains executable code
ocuments\\workspace\\grabber\\node_modules\\source-map-support\\node_modules","deps":["source-map"]},{"dir":"C:\\Users\\USERNAME\\Documents\\workspace\\grabber\\node_modules\\@babel\\helper-member-expression-to-functions\\node_modules","deps":["@babel/types","
lodash"]},{"dir":"C:\\Users\\USERNAME\\Documents\\workspace\\grabber\\node_modules\\@babel\\helper-optimise-call-expression\\node_modules","deps":["@babel/types","lodash"]},{"dir":"C:\\Users\\USERNAME\\Documents\\workspace\\grabber\\node_modules\\@babel\\plugin-p
roposal-class-properties\\node_modules","deps":["@babel/code-frame","@babel/generator","@babel/helper-function-name","@babel/helper-get-function-arity","@babel/helper-plugin-utils","@babel/helper-replace-supers","@babel/helper-split-export-declaration","@ba
bel/highlight","@babel/parser","@babel/template","@babel/traverse","@babel/types","debug","js-tokens","jsesc","lodash"]},{"dir":"C:\\Users\\USERNAME\\Documents\\workspace\\grabber\\node_modules\\@babel\\plugin-syntax-class-properties\\node_modules","deps":["@b
abel/helper-plugin-utils"]},{"dir":"C:\\Users\\USERNAME\\Documents\\workspace\\grabber\\node_modules\\@babel\\template\\node_modules","deps":["lodash"]},{"dir":"C:\\Users\\USERNAME\\Documents\\workspace\\grabber\\node_modules\\@babel\\types\\node_modules","deps":
["lodash"]}]
  • not packed into asar archive file=node_modules\ffmpeg-static\bin\win32\x64\ffmpeg.exe reason=contains executable code
  • not packed into asar archive file=node_modules\ffprobe-static\bin\win32\x64\ffprobe.exe reason=contains executable code
  • file source doesn't exist from=C:\Users\USERNAME\Documents\workspace\grabber\static
  • getPublishConfigsForUpdateInfo: no publishConfigs, detect using repository info
  • spawning        command=C:\Users\USERNAME\Documents\workspace\grabber\node_modules\app-builder-bin\win\x64\app-builder.exe icon --format ico --root C:\Users\USERNAME\Documents\workspace\grabber\build --root C:\Users\USERNAME\Documents\workspace\grabber --out C:\
Users\USERNAME\Documents\workspace\grabber\dist\.icon-ico --input icon.ico --input icon.png --input icons --input icon.icns
  • path doesn't exist        path=C:\Users\USERNAME\Documents\workspace\grabber\build\icon.ico
  • path doesn't exist        path=C:\Users\USERNAME\Documents\workspace\grabber\icon.ico
  • path doesn't exist        path=C:\Users\USERNAME\Documents\workspace\grabber\build\icon.ico.ico
  • path doesn't exist        path=C:\Users\USERNAME\Documents\workspace\grabber\icon.ico.ico
  • path doesn't exist        path=C:\Users\USERNAME\Documents\workspace\grabber\build\icon.png
  • path doesn't exist        path=C:\Users\USERNAME\Documents\workspace\grabber\icon.png
  • path doesn't exist        path=C:\Users\USERNAME\Documents\workspace\grabber\build\icon.png.ico
  • path doesn't exist        path=C:\Users\USERNAME\Documents\workspace\grabber\icon.png.ico
  • path doesn't exist        path=C:\Users\USERNAME\Documents\workspace\grabber\build\icons
  • path doesn't exist        path=C:\Users\USERNAME\Documents\workspace\grabber\icons
  • path doesn't exist        path=C:\Users\USERNAME\Documents\workspace\grabber\build\icons.ico
  • path doesn't exist        path=C:\Users\USERNAME\Documents\workspace\grabber\icons.ico
  • path doesn't exist        path=C:\Users\USERNAME\Documents\workspace\grabber\build\icon.icns
  • path doesn't exist        path=C:\Users\USERNAME\Documents\workspace\grabber\icon.icns
  • path doesn't exist        path=C:\Users\USERNAME\Documents\workspace\grabber\build\icon.icns.ico
  • path doesn't exist        path=C:\Users\USERNAME\Documents\workspace\grabber\icon.icns.ico
  • exited          command=app-builder.exe code=0 pid=5572 out={"icons":null}
  • default Electron icon is used reason=application icon is not set
  • spawning        command=C:\Users\USERNAME\Documents\workspace\grabber\node_modules\app-builder-bin\win\x64\app-builder.exe download-artifact --url https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.3.1/winCodeSign-2.n-2.3.1.7z --name winCodeSign-2.3.1 --sha512 J64zdgTQNW9D7gMLXHFiOB7haTmJNKqMj9+rR9wSRo83wKrOypO49dRpmjENp7sm7uo6Cdx7FK3lhVod0gfvJw==
3.1.7z --name winCodeSign-2.3.1 --sha512 J64zdgTQNW9D7gMLXHFiOB7haTmJNKqMj9+rR9wSRo83wKrOypO49dRpmjENp7sm7uo6Cdx7FK3lhVod0gfvJw==
  • found existing            path=C:\Users\USERNAME\AppData\Local\electron-builder\Cache\winCodeSign\winCodeSign-2.3.1
  • exited          command=app-builder.exe code=0 pid=16956 out=C:\Users\USERNAME\AppData\Local\electron-builder\Cache\winCodeSign\winCodeSign-2.3.1
  • executing       file=C:\Users\USERNAME\AppData\Local\electron-builder\Cache\winCodeSign\winCodeSign-2.3.1\rcedit-x64.exe args=C:\Users\USERNAME\Documents\workspace\grabber\dist\win-unpacked\grabber.exe --set-version-string FileDescription grabber --set-version-st  • executed        file=C:\Users\USERNAME\AppData\Local\electron-builder\Cache\winCodeSign\winCodeSign-2.3.1\rcedit-x64.exe
ring ProductName grabber --set-version-string LegalCopyright Copyright © 2018 grabber --set-file-version 0.0.1 --set-product-version 0.0.1.0 --set-version-string InternalName grabber --set-version-string OriginalFilename
  • executed        file=C:\Users\USERNAME\AppData\Local\electron-builder\Cache\winCodeSign\winCodeSign-2.3.1\rcedit-x64.exe
wine&sign: 0s 522ms
  • building        target=nsis file=dist\grabber Setup 0.0.1.exe archs=x64 oneClick=true
  • spawning        command=C:\Users\USERNAME\Documents\workspace\grabber\node_modules\app-builder-bin\win\x64\app-builder.exe download-artifact --url https://github.com/electron-userland/electron-builder-binaries/releases/download/nsis-3.0.3.2/nsis-3.0.3.2.7z --n  • exited        command=app-builder.exe code=0 pid=21868 out=C:\Users\USERNAME\AppData\Local\electron-builder\Cache\nsis\nsis-3.0.3.2
ame nsis-3.0.3.2 --sha512 tUrlDPQtbjcooNbTrjUzLupttWlATLDNWqK57TVr+gAt3wkaxFxBS3k80AzEFJbmSeOWrUooO72FFOVGXcoxhA==
  • found existing            path=C:\Users\USERNAME\AppData\Local\electron-builder\Cache\nsis\nsis-3.0.3.2
  • exited          command=app-builder.exe code=0 pid=21868 out=C:\Users\USERNAME\AppData\Local\electron-builder\Cache\nsis\nsis-3.0.3.2
  • executing       file=C:\Users\USERNAME\Documents\workspace\grabber\node_modules\7zip-bin\win\x64\7za.exe args=a -bd -mx=9 -md=1m -mtc=off -ms=off -mtm=off -mta=off C:\Users\USERNAME\Documents\workspace\grabber\dist\grabber-0.0.1-x64.nsis.7z . -xr!*.avi -xr!*.mov-xr!*.m4v -xr!*.mp4 -xr!*.m4p -xr!*.qt -xr!*.mkv -xr!*.webm -xr!*.vmdk cwd=C:\Users\USERNAME\Documents\workspace\grabber\dist\win-unpacked
nsis package, x64: 44s 251ms
  • executing       file=C:\Users\USERNAME\Documents\workspace\grabber\node_modules\7zip-bin\win\x64\7za.exe args=l C:\Users\USERNAME\Documents\workspace\grabber\dist\grabber-0.0.1-x64.nsis.7z
  • executed        file=C:\Users\USERNAME\Documents\workspace\grabber\node_modules\7zip-bin\win\x64\7za.exe stdout=

                      7-Zip (a) 18.01 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2018-01-28

                      Scanning the drive for archives:
                      1 file, 182372401 bytes (174 MiB)

                      Listing archive: C:\Users\USERNAME\Documents\workspace\grabber\dist\grabber-0.0.1-x64.nsis.7z

                      --
                      Path = C:\Users\USERNAME\Documents\workspace\grabber\dist\grabber-0.0.1-x64.nsis.7z
                      Type = 7z
                      Physical Size = 182372401
                      Headers Size = 2535
                      Method = LZMA2:20 LZMA:20 BCJ2
                      Solid = -
                      Blocks = 133

                         Date      Time    Attr         Size   Compressed  Name
                      ------------------- ----- ------------ ------------  ------------------------
                                          D....            0            0  locales
                                          D....            0            0  resources
                                          D....            0            0  resources\app.asar.unpacked
                                          D....            0            0  resources\app.asar.unpacked\node_modules
                                          D....            0            0  resources\app.asar.unpacked\node_modules\ffmpeg-static
                                          D....            0            0  resources\app.asar.unpacked\node_modules\ffmpeg-static\bin
                                          D....            0            0  resources\app.asar.unpacked\node_modules\ffmpeg-static\bin\darwin
                                          D....            0            0  resources\app.asar.unpacked\node_modules\ffmpeg-static\bin\darwin\x64
                                          D....            0            0  resources\app.asar.unpacked\node_modules\ffmpeg-static\bin\linux
                                          D....            0            0  resources\app.asar.unpacked\node_modules\ffmpeg-static\bin\linux\ia32
                                          D....            0            0  resources\app.asar.unpacked\node_modules\ffmpeg-static\bin\linux\x64
                                          D....            0            0  resources\app.asar.unpacked\node_modules\ffmpeg-static\bin\win32
                                          D....            0            0  resources\app.asar.unpacked\node_modules\ffmpeg-static\bin\win32\ia32
                                          D....            0            0  resources\app.asar.unpacked\node_modules\ffmpeg-static\bin\win32\x64
                                          D....            0            0  resources\app.asar.unpacked\node_modules\ffprobe-static
                                          D....            0            0  resources\app.asar.unpacked\node_modules\ffprobe-static\bin
                                          D....            0            0  resources\app.asar.unpacked\node_modules\ffprobe-static\bin\darwin
                                          D....            0            0  resources\app.asar.unpacked\node_modules\ffprobe-static\bin\darwin\x64
                                          D....            0            0  resources\app.asar.unpacked\node_modules\ffprobe-static\bin\linux
                                          D....            0            0  resources\app.asar.unpacked\node_modules\ffprobe-static\bin\linux\ia32
                                          D....            0            0  resources\app.asar.unpacked\node_modules\ffprobe-static\bin\linux\x64
                                          D....            0            0  resources\app.asar.unpacked\node_modules\ffprobe-static\bin\win32
                                          D....            0            0  resources\app.asar.unpacked\node_modules\ffprobe-static\bin\win32\ia32
                                          D....            0            0  resources\app.asar.unpacked\node_modules\ffprobe-static\bin\win32\x64
                                          ....A        26693        22335  blink_image_resources_200_percent.pak
                                          ....A           15           19  content_resources_200_percent.pak
                                          ....A      8682599      2588640  content_shell.pak
                                          ....A     10197040      3297591  icudtl.dat
                                          ....A         1060          673  LICENSE.electron.txt
                                          ....A      1811569       109841  LICENSES.chromium.html
                                          ....A         6134         1855  locales\am.pak
                                          ....A         5621         1718  locales\ar.pak
                                          ....A         6579         1871  locales\bg.pak
                                          ....A         8635         1915  locales\bn.pak
                                          ....A         4039         1678  locales\ca.pak
                                          ....A         3936         1714  locales\cs.pak
                                          ....A         3590         1547  locales\da.pak
                                          ....A         4013         1658  locales\de.pak
                                          ....A         7200         2031  locales\el.pak
                                          ....A         3446         1438  locales\en-GB.pak
                                          ....A         3444         1439  locales\en-US.pak
                                          ....A         4143         1658  locales\es-419.pak
                                          ....A         4275         1665  locales\es.pak
                                          ....A         3717         1571  locales\et.pak
                                          ....A         5670         1713  locales\fa.pak
                                          ....A         6000         1595  locales\fake-bidi.pak
                                          ....A         3773         1594  locales\fi.pak
                                          ....A         4222         1610  locales\fil.pak
                                          ....A         4463         1770  locales\fr.pak
                                          ....A         8328         1871  locales\gu.pak
                                          ....A         4482         1491  locales\he.pak
                                          ....A         7825         1837  locales\hi.pak
                                          ....A         3871         1651  locales\hr.pak
                                          ....A         4421         1792  locales\hu.pak
                                          ....A         3584         1482  locales\id.pak
                                          ....A         4074         1621  locales\it.pak
                                          ....A         4819         1631  locales\ja.pak
                                          ....A         9393         1969  locales\kn.pak
                                          ....A         3865         1579  locales\ko.pak
                                          ....A         4073         1714  locales\lt.pak
                                          ....A         4280         1744  locales\lv.pak
                                          ....A        10569         2180  locales\ml.pak
                                          ....A         8038         1830  locales\mr.pak
                                          ....A         3696         1475  locales\ms.pak
                                          ....A         3569         1523  locales\nb.pak
                                          ....A         3762         1556  locales\nl.pak
                                          ....A         3903         1726  locales\pl.pak
                                          ....A         3893         1634  locales\pt-BR.pak
                                          ....A         3969         1610  locales\pt-PT.pak
                                          ....A         4253         1652  locales\ro.pak
                                          ....A         6160         1826  locales\ru.pak
                                          ....A         4063         1774  locales\sk.pak
                                          ....A         3876         1593  locales\sl.pak
                                          ....A         6138         1831  locales\sr.pak
                                          ....A         3468         1514  locales\sv.pak
                                          ....A         3906         1561  locales\sw.pak
                                          ....A        10246         1952  locales\ta.pak
                                          ....A         9838         2001  locales\te.pak
                                          ....A         7670         1763  locales\th.pak
                                          ....A         3829         1586  locales\tr.pak
                                          ....A         6359         1891  locales\uk.pak
                                          ....A         4632         1693  locales\vi.pak
                                          ....A         3466         1549  locales\zh-CN.pak
                                          ....A         3412         1536  locales\zh-TW.pak
                                          ....A       221973        39211  natives_blob.bin
                                          ....A       164181        34282  pdf_viewer_resources.pak
                                          ....A     34285865      3799872  resources\app.asar
                                          ....A     54087712     12925948  resources\app.asar.unpacked\node_modules\ffmpeg-static\bin\darwin\x64\ffmpeg
                                          ....A     39745460     12858799  resources\app.asar.unpacked\node_modules\ffmpeg-static\bin\linux\ia32\ffmpeg
                                          ....A     63012968     15713645  resources\app.asar.unpacked\node_modules\ffmpeg-static\bin\linux\x64\ffmpeg
                                          ....A          502          261  resources\app.asar.unpacked\node_modules\ffmpeg-static\index.js
                                          ....A         1448          807  resources\app.asar.unpacked\node_modules\ffmpeg-static\LICENSE
                                          ....A          446          280  resources\app.asar.unpacked\node_modules\ffmpeg-static\package.json
                                          ....A     62198052     15514011  resources\app.asar.unpacked\node_modules\ffprobe-static\bin\darwin\x64\ffprobe
                                          ....A     39678900     12827061  resources\app.asar.unpacked\node_modules\ffprobe-static\bin\linux\ia32\ffprobe
                                          ....A     64541160     16078052  resources\app.asar.unpacked\node_modules\ffprobe-static\bin\linux\x64\ffprobe
                                          ....A          583          316  resources\app.asar.unpacked\node_modules\ffprobe-static\index.js
                                          ....A         1081          688  resources\app.asar.unpacked\node_modules\ffprobe-static\LICENSE
                                          ....A          316          210  resources\app.asar.unpacked\node_modules\ffprobe-static\package.json
                                          ....A       259231        53809  resources\electron.asar
                                          ....A      1530996       220678  snapshot_blob.bin
                                          ....A        76888        70980  ui_resources_200_percent.pak
                                          ....A        57450        45513  views_resources_200_percent.pak
                                          ....A        19256        10045  api-ms-win-core-console-l1-1-0.dll
                                          ....A        18744         9894  api-ms-win-core-datetime-l1-1-0.dll
                                          ....A        18744         9920  api-ms-win-core-debug-l1-1-0.dll
                                          ....A        18744         9952  api-ms-win-core-errorhandling-l1-1-0.dll
                                          ....A        22328        10778  api-ms-win-core-file-l1-1-0.dll
                                          ....A        18744         9930  api-ms-win-core-file-l1-2-0.dll
                                          ....A        18744        10041  api-ms-win-core-file-l2-1-0.dll
                                          ....A        18744         9933  api-ms-win-core-handle-l1-1-0.dll
                                          ....A        19256        10066  api-ms-win-core-heap-l1-1-0.dll
                                          ....A        18744         9946  api-ms-win-core-interlocked-l1-1-0.dll
                                          ....A        19256        10128  api-ms-win-core-libraryloader-l1-1-0.dll
                                          ....A        21304        10655  api-ms-win-core-localization-l1-2-0.dll
                                          ....A        19256        10076  api-ms-win-core-memory-l1-1-0.dll
                                          ....A        18744        10013  api-ms-win-core-namedpipe-l1-1-0.dll
                                          ....A        19768        10136  api-ms-win-core-processenvironment-l1-1-0.dll
                                          ....A        20792        10561  api-ms-win-core-processthreads-l1-1-0.dll
                                          ....A        19256        10098  api-ms-win-core-processthreads-l1-1-1.dll
                                          ....A        18232         9895  api-ms-win-core-profile-l1-1-0.dll
                                          ....A        19256        10081  api-ms-win-core-rtlsupport-l1-1-0.dll
                                          ....A        18744         9949  api-ms-win-core-string-l1-1-0.dll
                                          ....A        20792        10406  api-ms-win-core-synch-l1-1-0.dll
                                          ....A        19256        10138  api-ms-win-core-synch-l1-2-0.dll
                                          ....A        19768        10181  api-ms-win-core-sysinfo-l1-1-0.dll
                                          ....A        18744         9993  api-ms-win-core-timezone-l1-1-0.dll
                                          ....A        17856         9478  api-ms-win-core-util-l1-1-0.dll
                                          ....A        19768        10187  api-ms-win-crt-conio-l1-1-0.dll
                                          ....A        22840        10953  api-ms-win-crt-convert-l1-1-0.dll
                                          ....A        19256        10043  api-ms-win-crt-environment-l1-1-0.dll
                                          ....A        20792        10540  api-ms-win-crt-filesystem-l1-1-0.dll
                                          ....A        19768        10171  api-ms-win-crt-heap-l1-1-0.dll
                                          ....A        19256        10141  api-ms-win-crt-locale-l1-1-0.dll
                                          ....A        27064        11832  api-ms-win-crt-math-l1-1-0.dll
                                          ....A        26936        11671  api-ms-win-crt-multibyte-l1-1-0.dll
                                          ....A        71480        20236  api-ms-win-crt-private-l1-1-0.dll
                                          ....A        19768        10203  api-ms-win-crt-process-l1-1-0.dll
                                          ....A        22464        10739  api-ms-win-crt-runtime-l1-1-0.dll
                                          ....A        24888        11469  api-ms-win-crt-stdio-l1-1-0.dll
                                          ....A        24888        11483  api-ms-win-crt-string-l1-1-0.dll
                                          ....A        21304        10611  api-ms-win-crt-time-l1-1-0.dll
                                          ....A        19256        10170  api-ms-win-crt-utility-l1-1-0.dll
                                          ....A      4173928      1285493  d3dcompiler_47.dll
                                          ....A      1955328       658537  ffmpeg.dll
                                          ....A     67586048     20165190  grabber.exe
                                          ....A        17920         5856  libEGL.dll
                                          ....A      3687936       976582  libGLESv2.dll
                                          ....A       633152       139213  msvcp140.dll
                                          ....A     17861632      4910172  node.dll
                                          ....A     45219840     13179303  resources\app.asar.unpacked\node_modules\ffmpeg-static\bin\win32\ia32\ffmpeg.exe
                                          ....A     62583296     15250170  resources\app.asar.unpacked\node_modules\ffmpeg-static\bin\win32\x64\ffmpeg.exe
                                          ....A     45498880     13263643  resources\app.asar.unpacked\node_modules\ffprobe-static\bin\win32\ia32\ffprobe.exe
                                          ....A     63059968     15385400  resources\app.asar.unpacked\node_modules\ffprobe-static\bin\win32\x64\ffprobe.exe
                                          ....A       107520        49158  resources\elevate.exe
                                          ....A      1001272       342226  ucrtbase.dll
                                          ....A        87888        40981  vcruntime140.dll
                      ------------------- ----- ------------ ------------  ------------------------
                                                   695200226    182369866  133 files, 24 folders

  • spawning        command=C:\Users\USERNAME\Documents\workspace\grabber\node_modules\app-builder-bin\win\x64\app-builder.exe download-artifact --url https://github.com/electron-userland/electron-builder-binaries/releases/download/nsis-resources-3.3.0/nsis-resour
ces-3.3.0.7z --name nsis-resources-3.3.0 --sha512 4okc98BD0v9xDcSjhPVhAkBMqos+FvD/5/H72fTTIwoHTuWd2WdD7r+1j72hxd+ZXxq1y3FRW0x6Z3jR0VfpMw==
  • found existing            path=C:\Users\USERNAME\AppData\Local\electron-builder\Cache\nsis\nsis-resources-3.3.0
  • exited          command=app-builder.exe code=0 pid=11316 out=C:\Users\USERNAME\AppData\Local\electron-builder\Cache\nsis\nsis-resources-3.3.0
  • spawning        command=C:\Users\USERNAME\AppData\Local\electron-builder\Cache\nsis\nsis-3.0.3.2\Bin\makensis.exe -WX -DAPP_ID=com.electron.grabber -DAPP_GUID=3eaecb0e-fe73-5139-be24-b74428368a33 -DUNINSTALL_APP_KEY=3eaecb0e-fe73-5139-be24-b74428368a33 -DPRODU
CT_NAME=grabber -DPRODUCT_FILENAME=grabber -DAPP_FILENAME=grabber -DAPP_DESCRIPTION= -DVERSION=0.0.1 -DPROJECT_DIR=C:\Users\USERNAME\Documents\workspace\grabber -DBUILD_RESOURCES_DIR=C:\Users\USERNAME\Documents\workspace\grabber\build -DAPP_64=C:\Users\USERNAME\Document
s\workspace\grabber\dist\grabber-0.0.1-x64.nsis.7z -DAPP_64_NAME=grabber-0.0.1-x64.nsis.7z -DAPP_64_HASH=68DC5522DA5012307230115252513F5597AF637EB60A0053960AADE00DF75709DA97F5CA9F2EEDA880B841F380D2D998B005CBA78DB55DFDE504AD0859D451A6 -DAPP_INSTALLER_STORE_FILE=
grabber\__installer.exe -DCOMPRESSION_METHOD=7z -DONE_CLICK -DRUN_AFTER_FINISH -DSHORTCUT_NAME=grabber -DUNINSTALL_DISPLAY_NAME=grabber 0.0.1 -DESTIMATED_SIZE=678906 -DCOMPRESS=auto -DBUILD_UNINSTALLER -DUNINSTALLER_OUT_FILE=C:\Users\USERNAME\Documents\workspace\g
rabber\dist\.__uninstaller-nsis-grabber.exe -XOutFile "C:\Users\USERNAME\Documents\workspace\grabber\dist\grabber Setup 0.0.1.exe" -XVIProductVersion 0.0.1.0 -XVIAddVersionKey /LANG=1033 ProductName "grabber" -XVIAddVersionKey /LANG=1033 ProductVersion "0.0.1" -XV
IAddVersionKey /LANG=1033 LegalCopyright "Copyright © 2018 grabber" -XVIAddVersionKey /LANG=1033 FileDescription "" -XVIAddVersionKey /LANG=1033 FileVersion "0.0.1" -XUnicode true -XSetCompressor zlib - cwd=C:\Users\USERNAME\Documents\workspace\grabber\node_module
s\app-builder-lib\templates\nsis
Command line defined: "APP_ID=com.electron.grabber"
Command line defined: "APP_GUID=3eaecb0e-fe73-5139-be24-b74428368a33"
Command line defined: "UNINSTALL_APP_KEY=3eaecb0e-fe73-5139-be24-b74428368a33"
Command line defined: "PRODUCT_NAME=grabber"
Command line defined: "PRODUCT_FILENAME=grabber"
Command line defined: "APP_FILENAME=grabber"
Command line defined: "APP_DESCRIPTION="
Command line defined: "VERSION=0.0.1"
Command line defined: "PROJECT_DIR=C:\Users\USERNAME\Documents\workspace\grabber"
Command line defined: "BUILD_RESOURCES_DIR=C:\Users\USERNAME\Documents\workspace\grabber\build"
Command line defined: "APP_64=C:\Users\USERNAME\Documents\workspace\grabber\dist\grabber-0.0.1-x64.nsis.7z"
Command line defined: "APP_64_NAME=grabber-0.0.1-x64.nsis.7z"
Command line defined: "APP_64_HASH=68DC5522DA5012307230115252513F5597AF637EB60A0053960AADE00DF75709DA97F5CA9F2EEDA880B841F380D2D998B005CBA78DB55DFDE504AD0859D451A6"
Command line defined: "APP_INSTALLER_STORE_FILE=grabber\__installer.exe"
Command line defined: "COMPRESSION_METHOD=7z"
Command line defined: "ONE_CLICK"
Command line defined: "RUN_AFTER_FINISH"
Command line defined: "SHORTCUT_NAME=grabber"
Command line defined: "UNINSTALL_DISPLAY_NAME=grabber 0.0.1"
Command line defined: "ESTIMATED_SIZE=678906"
Command line defined: "COMPRESS=auto"
Command line defined: "BUILD_UNINSTALLER"
Command line defined: "UNINSTALLER_OUT_FILE=C:\Users\USERNAME\Documents\workspace\grabber\dist\.__uninstaller-nsis-grabber.exe"
Processing config: C:\Users\USERNAME\AppData\Local\electron-builder\Cache\nsis\nsis-3.0.3.2\nsisconf.nsh
Processing script file: "<stdin>" (ACP)

Processed 1 file, 9 command line commands, writing output (x86-unicode):

Output: "C:\Users\USERNAME\Documents\workspace\grabber\dist\grabber Setup 0.0.1.exe"
Install: 1 page (64 bytes), 1 section (16408 bytes), 44 instructions (1232 bytes), 3157 strings (27890 bytes), 25 language tables (4850 bytes).
Uninstall: 1 page (128 bytes), 1 section (16408 bytes), 574 instructions (16072 bytes), 4794 strings (48394 bytes), 25 language tables (6150 bytes).

Using zlib compression.

EXE header size:               57856 / 39424 bytes
Install code:                  11159 / 50884 bytes
Install data:                      0 / 8 bytes
Uninstall code+data:           81374 / 86264 bytes
CRC (0x8EFEB670):                  4 / 4 bytes

Total size:                   150393 / 176584 bytes (85.1%)
  • exited          command=makensis.exe code=0 pid=28948
  • executing       file=C:\Users\USERNAME\Documents\workspace\grabber\dist\grabber Setup 0.0.1.exe args=
  • executed        file=C:\Users\USERNAME\Documents\workspace\grabber\dist\grabber Setup 0.0.1.exe
  • spawning        command=C:\Users\USERNAME\AppData\Local\electron-builder\Cache\nsis\nsis-3.0.3.2\Bin\makensis.exe -WX -DAPP_ID=com.electron.grabber -DAPP_GUID=3eaecb0e-fe73-5139-be24-b74428368a33 -DUNINSTALL_APP_KEY=3eaecb0e-fe73-5139-be24-b74428368a33 -DPRODU
CT_NAME=grabber -DPRODUCT_FILENAME=grabber -DAPP_FILENAME=grabber -DAPP_DESCRIPTION= -DVERSION=0.0.1 -DPROJECT_DIR=C:\Users\USERNAME\Documents\workspace\grabber -DBUILD_RESOURCES_DIR=C:\Users\USERNAME\Documents\workspace\grabber\build -DAPP_64=C:\Users\USERNAME\Document
s\workspace\grabber\dist\grabber-0.0.1-x64.nsis.7z -DAPP_64_NAME=grabber-0.0.1-x64.nsis.7z -DAPP_64_HASH=68DC5522DA5012307230115252513F5597AF637EB60A0053960AADE00DF75709DA97F5CA9F2EEDA880B841F380D2D998B005CBA78DB55DFDE504AD0859D451A6 -DAPP_INSTALLER_STORE_FILE=
grabber\__installer.exe -DCOMPRESSION_METHOD=7z -DONE_CLICK -DRUN_AFTER_FINISH -DSHORTCUT_NAME=grabber -DUNINSTALL_DISPLAY_NAME=grabber 0.0.1 -DESTIMATED_SIZE=678906 -DCOMPRESS=auto -DUNINSTALLER_OUT_FILE=C:\Users\USERNAME\Documents\workspace\grabber\dist\.__unins
taller-nsis-grabber.exe -XOutFile "C:\Users\USERNAME\Documents\workspace\grabber\dist\grabber Setup 0.0.1.exe" -XVIProductVersion 0.0.1.0 -XVIAddVersionKey /LANG=1033 ProductName "grabber" -XVIAddVersionKey /LANG=1033 ProductVersion "0.0.1" -XVIAddVersionKey /LANG
=1033 LegalCopyright "Copyright © 2018 grabber" -XVIAddVersionKey /LANG=1033 FileDescription "" -XVIAddVersionKey /LANG=1033 FileVersion "0.0.1" -XUnicode true -XSetCompressor zlib - cwd=C:\Users\USERNAME\Documents\workspace\grabber\node_modules\app-builder-lib\te
mplates\nsis
Command line defined: "APP_ID=com.electron.grabber"
Command line defined: "APP_GUID=3eaecb0e-fe73-5139-be24-b74428368a33"
Command line defined: "UNINSTALL_APP_KEY=3eaecb0e-fe73-5139-be24-b74428368a33"
Command line defined: "PRODUCT_NAME=grabber"
Command line defined: "PRODUCT_FILENAME=grabber"
Command line defined: "APP_FILENAME=grabber"
Command line defined: "APP_DESCRIPTION="
Command line defined: "VERSION=0.0.1"
Command line defined: "PROJECT_DIR=C:\Users\USERNAME\Documents\workspace\grabber"
Command line defined: "BUILD_RESOURCES_DIR=C:\Users\USERNAME\Documents\workspace\grabber\build"
Command line defined: "APP_64=C:\Users\USERNAME\Documents\workspace\grabber\dist\grabber-0.0.1-x64.nsis.7z"
Command line defined: "APP_64_NAME=grabber-0.0.1-x64.nsis.7z"
Command line defined: "APP_64_HASH=68DC5522DA5012307230115252513F5597AF637EB60A0053960AADE00DF75709DA97F5CA9F2EEDA880B841F380D2D998B005CBA78DB55DFDE504AD0859D451A6"
Command line defined: "APP_INSTALLER_STORE_FILE=grabber\__installer.exe"
Command line defined: "COMPRESSION_METHOD=7z"
Command line defined: "ONE_CLICK"
Command line defined: "RUN_AFTER_FINISH"
Command line defined: "SHORTCUT_NAME=grabber"
Command line defined: "UNINSTALL_DISPLAY_NAME=grabber 0.0.1"
Command line defined: "ESTIMATED_SIZE=678906"
Command line defined: "COMPRESS=auto"
Command line defined: "UNINSTALLER_OUT_FILE=C:\Users\USERNAME\Documents\workspace\grabber\dist\.__uninstaller-nsis-grabber.exe"
Processing config: C:\Users\USERNAME\AppData\Local\electron-builder\Cache\nsis\nsis-3.0.3.2\nsisconf.nsh
Processing script file: "<stdin>" (ACP)

Processed 1 file, 9 command line commands, writing output (x86-unicode):

Output: "C:\Users\USERNAME\Documents\workspace\grabber\dist\grabber Setup 0.0.1.exe"
Install: 1 page (64 bytes), 1 section (16408 bytes), 710 instructions (19880 bytes), 5593 strings (52938 bytes), 25 language tables (6150 bytes).

Using zlib compression.

EXE header size:               57856 / 39424 bytes
Install code:                  22106 / 95880 bytes
Install data:              182754918 / 183035077 bytes
CRC (0x8E3F7F4E):                  4 / 4 bytes

Total size:                182834884 / 183170385 bytes (99.8%)
  • exited          command=makensis.exe code=0 pid=20624
  • building block map blockMapFile=dist\grabber Setup 0.0.1.exe.blockmap
  • spawning        command=C:\Users\USERNAME\Documents\workspace\grabber\node_modules\app-builder-bin\win\x64\app-builder.exe blockmap --input C:\Users\USERNAME\Documents\workspace\grabber\dist\grabber Setup 0.0.1.exe --output C:\Users\USERNAME\Documents\workspace\grab
ber\dist\grabber Setup 0.0.1.exe.blockmap
  • exited          command=app-builder.exe code=0 pid=22816 out={"size":182834884,"sha512":"C3FcAqQV7tqEcZIwT4pUIZvGFSLUDw+5nEn1z5kx4L8A5i+0O8K34srdl92AqidkhEtCRpqBfaS/Hypg5/AHgA=="}
  • getPublishConfigsForUpdateInfo: no publishConfigs, detect using repository info
Done in 68.93s.
develar commented 6 years ago

@kingpalethe So, it is correctly excluded now?

kingpalethe commented 6 years ago

It's not correctly excluded. Following the last yarn dist, the output of which I posted above, the .exe is still included in the build folder: capture

develar commented 6 years ago

Is it possible to attach project? I can try to reproduce without project, but if you can, it will be great.

kingpalethe commented 6 years ago

Thanks for the offer. I've shared a Bitbucket repository with you privately. Note that you'll want to use the debug branch or remove this from the dist script node ./helper/fix-ffmpeg.js .. that node script is a hack we've implemented as a way to disinclude certain binaries by platform. It deletes the binaries from the node_modules before the build, which can't be the right solution obviously.

develar commented 6 years ago

Note — remove "**/app/node_modules/ffmpeg-static/*" and "**/app/node_modules/ffprobe-static/*" — electron-builder is smart enough to unpack such binary packages automatically.

develar commented 6 years ago

Thanks for donation, otherwise I doubt that such bug would be fixed.

Fixed in upcoming 20.31.1 (will be released today/tomorrow CET).

develar commented 6 years ago

Please try electron-builder 20.31.1.

kingpalethe commented 6 years ago

Thanks, confirmed that it's working and we're able to exclude folders in node modules like this:

 "build": {
    "files": [
      "!**/ffprobe-static/bin/win32/ia32${/*}",
      "!**/ffprobe-static/bin/linux/ia32${/*}",
      "!**/ffprobe-static/bin/linux/x64${/*}"
    ],
    "asar": true
  },