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

Snapcraft review fails #3608

Closed
thomasnordquist opened this issue Jan 15, 2019 · 17 comments
Closed

Snapcraft review fails #3608

thomasnordquist opened this issue Jan 15, 2019 · 17 comments

Comments

@thomasnordquist
Copy link

  • 20.38.4:
  • x64 snap:

Building with https://hub.docker.com/r/electronuserland/builder
Publish with

snap run snapcraft push --release=stable build/clean/build/MQTT-Explorer_0.0.5_amd64.snap

The review when publishing snapcraft fails.

found errors in file output: unusual mode 'rwxr-sr-x' for entry './locales', unable to read or access files in 'squashfs-root/meta' due to mode 'rwxr-sr-x', unusual mode 'rwxr-sr-x' for entry './meta/gui', unusual mode 'rwxr-sr-x' for entry './resources', unusual mode 'rwxr-sr-x' for entry './swiftshader' security-snap-v2_squashfs_files
checksums do not match. Please ensure the snap is created with either 'snapcraft pack <DIR>' (using snapcraft >= 2.38) or 'mksquashfs <dir> <snap> -noappend -comp xz -all-root -no-xattrs -no-fragments'. If using electron-builder, please upgrade to latest stable (>= 20.14.7). See https://forum.snapcraft.io/t/automated-reviews-and-snapcraft-2-38/4982/17 for details. security-snap-v2_squashfs_repack_checksum

https://github.com/thomasnordquist/MQTT-Explorer
Steps: (packaging done with docker, publishing with systems snapcraft v3.0.1)

npm install
npm run prepare-release
node_modules/.bin/ts-node package.ts snap

snap run snapcraft push --release=stable build/clean/build/MQTT-Explorer_0.0.5_amd64.snap
@thomasnordquist
Copy link
Author

I analyzed the issue and found the problem:
But I am uncertain where the problem originates.

The problem is that the directories listet in the error message have se gid flag set.
Unpacking, removing the flag and repacking solves the issue.

@develar I have seen, you have done some stuff with the snap template, do you have any idea where the gid flag of the./locales, ./meta, ./swiftshader, ./resources... directories might come from?

I'm not to happy with the "repack" workaround 🤨

Details:
https://forum.snapcraft.io/t/snapcraft-review-fails-wrong-permissions-electron-builder/10061

@develar
Copy link
Member

develar commented Jun 14, 2019

Fixed in 20.44.0.

@thomasnordquist
Copy link
Author

  • 20.44.1
  • snap

File appear to have rwxrwsr-x as mode.
A lot of the files have the Suid flag set.
I currently unpack the snap, change the file modes and repack the snap.

https://github.com/thomasnordquist/MQTT-Explorer/blob/b060861657345c74e73f6e6d332b5aa6cfc35c35/scripts/afterAllArtifactBuild.ts#L13-L19

Package output

yarn package linux
yarn run v1.13.0
$ ts-node package.ts linux
  • electron-builder version=20.44.1
  • loaded configuration file=package.json ("build" field)
  • Specified application directory equals to project dir — superfluous or wrong configuration appDirectory=./
  • writing effective config file=build/clean/build/builder-effective-config.yaml
  • no native production dependencies
  • packaging       platform=linux arch=x64 electron=5.0.4 appOutDir=build/clean/build/linux-unpacked
  • building        target=snap arch=x64 file=build/clean/build/MQTT-Explorer_0.3.0_amd64.snap
Done in 29.92s.

Snapcraft Review result without repackaging

Bildschirmfoto 2019-06-20 um 13 19 04

Snapcraft Review result as text

snapcraft push MQTT-Explorer_0.3.0_amd64.snap --release beta
Pushing MQTT-Explorer_0.3.0_amd64.snap
After pushing, an attempt will be made to release to 'beta'
Preparing to push '/home/thomas/sandbox/MQTT-Explorer/build/clean/build/MQTT-Explorer_0.3.0_amd64.snap' to the store.
Found cached source snap /home/thomas/.cache/snapcraft/projects/mqtt-explorer/snap_hashes/amd64/fa097f66c936bdf95b48075c14d247fc97b1edd1902b7615d937d39686dd2c791c3596cd0f91b56189477aa40c9f203a.
Generating xdelta3 delta for MQTT-Explorer_0.3.0_amd64.snap.
Pushing delta /home/thomas/sandbox/MQTT-Explorer/build/clean/build/MQTT-Explorer_0.3.0_amd64.snap.xdelta3.
Pushing MQTT-Explorer_0.3.0_amd64.snap.xdelta3 [==========================================================================================] 100%
Processing...|
Error while processing delta...
Error generating delta: There has been a problem while processing a snap delta.
  - Delta service failed to apply delta within 60s
Falling back to pushing full snap...
Pushing MQTT-Explorer_0.3.0_amd64.snap [==================================================================================================] 100%
Processing...|
Error while processing...
The store was unable to accept this snap.
  - checksums do not match. Please ensure the snap is created with either 'snapcraft pack <DIR>' (using snapcraft >= 2.38) or 'mksquashfs <dir> <snap> -noappend -comp xz -all-root -no-xattrs -no-fragments'. If using electron-builder, please upgrade to latest stable (>= 20.14.7). See https://forum.snapcraft.io/t/automated-reviews-and-snapcraft-2-38/4982/17 for details.
  - found errors in file output: unusual mode 'rwxrwsr-x' for entry './locales', unable to read or access files in 'squashfs-root/meta' due to mode 'rwxrwsr-x', unusual mode 'rwxrwsr-x' for entry './meta/gui', unusual mode 'rwxrwsr-x' for entry './resources', unusual mode 'rwxrwsr-x' for entry './resources/inspector', unusual mode 'rwxrwsr-x' for entry './resources/inspector/Images', unusual mode 'rwxrwsr-x' for entry './resources/inspector/accessibility', unusual mode 'rwxrwsr-x' for entry './resources/inspector/accessibility_test_runner', unusual mode 'rwxrwsr-x' for entry './resources/inspector/animation', unusual mode 'rwxrwsr-x' for entry './resources/inspector/application_test_runner', unusual mode 'rwxrwsr-x' for entry './resources/inspector/audits2', unusual mode 'rwxrwsr-x' for entry './resources/inspector/audits2_test_runner', unusual mode 'rwxrwsr-x' for entry './resources/inspector/audits2_worker', unusual mode 'rwxrwsr-x' for entry './resources/inspector/bindings_test_runner', unusual mode 'rwxrwsr-x' for entry './resources/inspector/browser_debugger', unusual mode 'rwxrwsr-x' for entry './resources/inspector/changes', unusual mode 'rwxrwsr-x' for entry './resources/inspector/cm', unusual mode 'rwxrwsr-x' for entry './resources/inspector/cm_modes', unusual mode 'rwxrwsr-x' for entry './resources/inspector/color_picker', unusual mode 'rwxrwsr-x' for entry './resources/inspector/console', unusual mode 'rwxrwsr-x' for entry './resources/inspector/console_test_runner', unusual mode 'rwxrwsr-x' for entry './resources/inspector/cookie_table', unusual mode 'rwxrwsr-x' for entry './resources/inspector/coverage', unusual mode 'rwxrwsr-x' for entry './resources/inspector/coverage_test_runner', unusual mode 'rwxrwsr-x' for entry './resources/inspector/cpu_profiler_test_runner', unusual mode 'rwxrwsr-x' for entry './resources/inspector/data_grid', unusual mode 'rwxrwsr-x' for entry './resources/inspector/data_grid_test_runner', unusual mode 'rwxrwsr-x' for entry './resources/inspector/device_mode_test_runner', unusual mode 'rwxrwsr-x' for entry './resources/inspector/devices', unusual mode 'rwxrwsr-x' for entry './resources/inspector/diff', unusual mode 'rwxrwsr-x' for entry './resources/inspector/elements', unusual mode 'rwxrwsr-x' for entry './resources/inspector/elements_test_runner', unusual mode 'rwxrwsr-x' for entry './resources/inspector/emulated_devices', unusual mode 'rwxrwsr-x' for entry './resources/inspector/event_listeners', unusual mode 'rwxrwsr-x' for entry './resources/inspector/extensions_test_runner', unusual mode 'rwxrwsr-x' for entry './resources/inspector/formatter', unusual mode 'rwxrwsr-x' for entry './resources/inspector/har_importer', unusual mode 'rwxrwsr-x' for entry './resources/inspector/heap_profiler_test_runner', unusual mode 'rwxrwsr-x' for entry './resources/inspector/heap_snapshot_model', unusual mode 'rwxrwsr-x' for entry './resources/inspector/heap_snapshot_worker', unusual mode 'rwxrwsr-x' for entry './resources/inspector/help', unusual mode 'rwxrwsr-x' for entry './resources/inspector/inline_editor', unusual mode 'rwxrwsr-x' for entry './resources/inspector/javascript_metadata', unusual mode 'rwxrwsr-x' for entry './resources/inspector/js_profiler', unusual mode 'rwxrwsr-x' for entry './resources/inspector/layer_viewer', unusual mode 'rwxrwsr-x' for entry './resources/inspector/layers', unusual mode 'rwxrwsr-x' for entry './resources/inspector/layers_test_runner', unusual mode 'rwxrwsr-x' for entry './resources/inspector/network', unusual mode 'rwxrwsr-x' for entry './resources/inspector/network_test_runner', unusual mode 'rwxrwsr-x' for entry './resources/inspector/node_debugger', unusual mode 'rwxrwsr-x' for entry './resources/inspector/object_ui', unusual mode 'rwxrwsr-x' for entry './resources/inspector/perf_ui', unusual mode 'rwxrwsr-x' for entry './resources/inspector/performance_monitor', unusual mode 'rwxrwsr-x' for entry './resources/inspector/performance_test_runner', unusual mode 'rwxrwsr-x' for entry './resources/inspector/product_registry_impl', unusual mode 'rwxrwsr-x' for entry './resources/inspector/profiler', unusual mode 'rwxrwsr-x' for entry './resources/inspector/protocol_monitor', unusual mode 'rwxrwsr-x' for entry './resources/inspector/quick_open', unusual mode 'rwxrwsr-x' for entry './resources/inspector/resources', unusual mode 'rwxrwsr-x' for entry './resources/inspector/sdk_test_runner', unusual mode 'rwxrwsr-x' for entry './resources/inspector/search', unusual mode 'rwxrwsr-x' for entry './resources/inspector/security', unusual mode 'rwxrwsr-x' for entry './resources/inspector/security_test_runner', unusual mode 'rwxrwsr-x' for entry './resources/inspector/settings', unusual mode 'rwxrwsr-x' for entry './resources/inspector/snippets', unusual mode 'rwxrwsr-x' for entry './resources/inspector/source_frame', unusual mode 'rwxrwsr-x' for entry './resources/inspector/sources', unusual mode 'rwxrwsr-x' for entry './resources/inspector/sources_test_runner', unusual mode 'rwxrwsr-x' for entry './resources/inspector/text_editor', unusual mode 'rwxrwsr-x' for entry './resources/inspector/timeline', unusual mode 'rwxrwsr-x' for entry './resources/inspector/timeline_model', unusual mode 'rwxrwsr-x' for entry './resources/inspector/workspace_diff', unusual mode 'rwxrwsr-x' for entry './scripts', unusual mode 'rwxrwsr-x' for entry './swiftshader'

@develar develar reopened this Jun 20, 2019
@develar
Copy link
Member

develar commented Jun 20, 2019

@thomasnordquist Thanks for update. Could you please specify where exactly did you build — travis 16 or your server ubuntu 18?

@thomasnordquist
Copy link
Author

This build happened on Ubuntu Server 18.04.
I could also try the same build on different machines (OSX, Ubuntu 16.04, Travis) if you think it might help.

@thomasnordquist
Copy link
Author

thomasnordquist commented Jun 20, 2019

It is also the setgid, not the setuid flag to be precise. (same flag but on group permissions)

Test results, building on different machines:

  • OSX: ✔️
  • Fresh Ubuntu 16.04: ✔️
  • Travis CI, Ubuntu 16.04: ✔️
  • Ubuntu Server 18.04: 🚨

@develar
Copy link
Member

develar commented Jun 20, 2019

You can use https://snapcraft.io/review-tools (snap-review command) to check. And for my test app both are ok — macOS and remote build on Ubuntu 18 docker. You can set _REMOTE_BUILD=true to force build using remote server.

develar added a commit to develar/electron-builder that referenced this issue Jun 20, 2019
develar added a commit to develar/electron-builder that referenced this issue Jun 20, 2019
develar added a commit to develar/electron-builder that referenced this issue Jun 20, 2019
@develar
Copy link
Member

develar commented Jun 20, 2019

Please try 20.44.3

@thomasnordquist
Copy link
Author

I finished my tests, It runs everywhere except on my Ubuntu Server 18.04.
20.44.3 did not resolve the issue.

Could the machine I'm building on still have outdated electron-builder related files floating around?

Doing another test on a Ubuntu 18.04 VM (has probably never packaged before), if test is succeeding I might just live with a "corrupt build environment". I do most of my build on the ci anyways.

Just to be certain I removed snapcraft and caches I could think of

apt-get remove snapcraft
snap remove snapcraft
rm -rm ~/.caches/electron ~/.caches/electron-builder

@develar
Copy link
Member

develar commented Jun 20, 2019 via email

@thomasnordquist
Copy link
Author

thomasnordquist commented Jun 20, 2019

A different Ubuntu 18.04 builds just fine ✔️

Ubuntu Server:
The same build in a different directory (to avoid possibly corrupt node_modules) did also fail.

I do another test, same machine but with a different user (to isolate the build context).

If you like we can analyze this further, or keep it closed, your call.
We are probably not analyzing snap builds right now but the build architecture.

➜ cloud:MQTT-Explorer git:(master) ✗ DEBUG=electron-builder node_modules/.bin/electron-builder --project build/clean --linux snap
  • electron-builder version=20.44.3
  • loaded configuration file=package.json ("build" field)
  • effective config config=
                       directories:
                         output: build
                         buildResources: res
                         app: ./
                       appId: mqtt-explorer
                       productName: MQTT Explorer
                       nodeGypRebuild: false
                       mac:
                         appId: de.t7n.apps.mqtt-explorer
                         category: public.app-category.developer-tools
                         publish:
                           - github
                         entitlements: res/entitlements.mas.plist
                       linux:
                         category: Development
                         maintainer: Thomas Nordquist
                       appx:
                         applicationId: mqttexplorer
                         identityName: 51031thomas.nordquist.MQTT-Explorer
                         publisherDisplayName: Thomas Nordquist
                         publisher: CN=0A6DE643-4AA2-4FF2-9729-6935C9ED8C13
                         backgroundColor: transparent
                         showNameOnTiles: true
                       afterPack: ./dist/scripts/afterPack.js

  • Specified application directory equals to project dir — superfluous or wrong configuration appDirectory=./
  • writing effective config file=build/clean/build/builder-effective-config.yaml
  • unresolved dependencies after first round unresolved=ts-node
  • no native production dependencies
  • packaging       platform=linux arch=x64 electron=5.0.4 appOutDir=build/clean/build/linux-unpacked
  • spawning        command=/home/thomas/sandbox/MQTT-Explorer/node_modules/app-builder-bin/linux/x64/app-builder unpack-electron --configuration [{"platform":"linux","arch":"x64","version":"5.0.4"}] --output /home/thomas/sandbox/MQTT-Explorer/build/clean/build/linux-unpacked --distMacOsAppName Electron.app
  • map async       taskCount=2
  • map async       taskCount=1
  • map async       taskCount=260
  • exited          command=app-builder code=0 pid=20890
  • spawning        command=/home/thomas/sandbox/MQTT-Explorer/node_modules/app-builder-bin/linux/x64/app-builder node-dep-tree --dir /home/thomas/sandbox/MQTT-Explorer/build/clean
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules round=0 unresolved=ms
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=graceful-fs
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules round=0 unresolved=pako, uuid
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules round=0 unresolved=follow-redirects, is-buffer
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=1 unresolved=follow-redirects, is-buffer
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=ms
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules round=0 unresolved=semver, source-map-support, lazy-val, js-yaml, lodash.isequal, pako
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=1 unresolved=, , , , , pako
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules round=0 unresolved=bluebird-lst
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=1 unresolved=bluebird-lst
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules round=0 unresolved=jsonfile, universalify, graceful-fs
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=1 unresolved=, , graceful-fs
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=graceful-fs
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules round=0 unresolved=bluebird
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules round=0 unresolved=debug, fs-extra-p, bluebird-lst, sax
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=1 unresolved=, fs-extra-p, bluebird-lst,
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules round=0 unresolved=argparse, esprima
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=xtend, inherits, readable-stream
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=safe-buffer
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=end-of-stream, inherits, readable-stream
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=core-util-is, inherits, process-nextick-args, safe-buffer, string_decoder, util-deprecate
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules round=0 unresolved=inherits, process-nextick-args, safe-buffer, string_decoder, util-deprecate, core-util-is
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=1 unresolved=inherits, , safe-buffer, , ,
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=safe-buffer
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=inherits, process-nextick-args, safe-buffer
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=readable-stream, safe-buffer
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=buffer-from, inherits, readable-stream
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=es5-ext, d
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=es5-ext
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=es6-iterator, es6-symbol
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=es5-ext, es6-symbol, d
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=d, es5-ext, es6-iterator, es6-symbol, event-emitter
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=es5-ext, d
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=end-of-stream, once
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=minimist
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules round=0 unresolved=inherits, util-deprecate
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=1 unresolved=inherits, util-deprecate
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules round=0 unresolved=safe-buffer
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=1 unresolved=safe-buffer
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=xtend
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=inherits, readable-stream
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=readable-stream
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=readable-stream
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=is-negated-glob
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=once, inherits
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=once, wrappy
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules round=0 unresolved=duplexify, inherits
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=1 unresolved=duplexify, inherits
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules round=0 unresolved=once, end-of-stream
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=1 unresolved=once, end-of-stream
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=through2, xtend
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=readable-stream, xtend
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules round=0 unresolved=shell-quote, string.prototype.padend, cross-spawn, minimatch, pinkie-promise, read-pkg, read-pkg-up, object-assign, ps-tree
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=1 unresolved=, , , minimatch, , , , ,
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules round=0 unresolved=escape-string-regexp, has-ansi
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules round=0 unresolved=ansi-regex
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=ansi-regex
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=function-bind, object-keys
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=is-callable
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=function-bind
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=has
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules round=0 unresolved=lru-cache, which
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules round=0 unresolved=graceful-fs, parse-json, pinkie-promise
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=1 unresolved=graceful-fs, , pinkie-promise
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules round=0 unresolved=is-utf8
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules round=0 unresolved=validate-npm-package-license, hosted-git-info, resolve, semver
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=1 unresolved=, , , semver
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=spdx-expression-parse
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=spdx-license-ids
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules round=0 unresolved=pinkie-promise, graceful-fs
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=1 unresolved=pinkie-promise, graceful-fs
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules round=0 unresolved=read-pkg
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=1 unresolved=read-pkg
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules round=0 unresolved=pinkie-promise
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=1 unresolved=pinkie-promise
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules round=0 unresolved=pinkie-promise
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=1 unresolved=pinkie-promise
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=graceful-fs, parse-json, pinkie-promise
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=is-utf8
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=hosted-git-info, resolve, semver, validate-npm-package-license
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=graceful-fs, pinkie-promise
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules round=0 unresolved=map-stream, pause-stream, stream-combiner, through, duplexer, from
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules round=0 unresolved=through
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=1 unresolved=through
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=through
  • unresolved deps  nodeModuleDir=/home/thomas/sandbox/MQTT-Explorer/node_modules round=0 unresolved=duplexer
  • exited          command=app-builder code=0 pid=20900 out=[{"dir":"/home/thomas/sandbox/MQTT-Explorer/node_modules","deps":["ansi-regex","balanced-match","bluebird","bluebird-lst","brace-expansion","buffer-from","concat-map","core-util-is","d","duplexer","duplexify","end-of-stream","error-ex","es5-ext","es6-iterator","es6-symbol","event-emitter","follow-redirects","fs-extra","fs-extra-p","function-bind","graceful-fs","has","hosted-git-info","inherits","is-arrayish","is-buffer","is-callable","is-negated-glob","is-utf8","jsonfile","load-json-file","minimatch","minimist","ms","next-tick","normalize-package-data","object-keys","once","pako","parse-json","path-parse","path-type","pinkie","pinkie-promise","process-nextick-args","read-pkg","readable-stream","resolve","safe-buffer","semver","spdx-correct","spdx-exceptions","spdx-expression-parse","spdx-license-ids","stream-shift","string_decoder","through","through2","universalify","util-deprecate","validate-npm-package-license","wrappy","xtend"]},{"dir":"/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules","deps":["about-window","ansi-regex","argparse","array-filter","array-map","array-reduce","async-limiter","axios","balanced-match","base64-js","bl","bluebird","brace-expansion","buffer-from","callback-stream","charenc","code-error-fragment","commist","concat-map","concat-stream","core-util-is","cross-spawn","crypt","d","debug","define-properties","dot-prop","duplexer","duplexify","electron-log","electron-telemetry","electron-updater","end-of-stream","error-ex","es-abstract","es-to-primitive","es5-ext","es6-iterator","es6-map","es6-set","es6-symbol","escape-string-regexp","esprima","event-emitter","event-stream","extend","follow-redirects","from","fs.realpath","function-bind","glob","glob-parent","glob-stream","graceful-fs","grapheme-splitter","has","has-ansi","has-symbols","help-me","hosted-git-info","inflight","inherits","is-absolute","is-arrayish","is-buffer","is-callable","is-date-object","is-extglob","is-glob","is-negated-glob","is-obj","is-promise","is-regex","is-relative","is-symbol","is-unc-path","is-utf8","is-windows","isexe","js-base64","js-yaml","json-stable-stringify-without-jsonify","json-to-ast","jsonfile","jsonify","lazy-val","leven","load-json-file","lodash","lodash.isequal","lowdb","lru-cache","map-stream","minimatch","minimist","mqtt","mqtt-packet","ms","next-tick","normalize-package-data","object-assign","object-keys","once","ordered-read-streams","pako","parse-json","path-dirname","path-is-absolute","path-parse","path-type","pause-stream","pify","pinkie","pinkie-promise","process-nextick-args","ps-tree","pseudomap","pump","pumpify","read-pkg","read-pkg-up","readable-stream","reinterval","remove-trailing-separator","resolve","safe-buffer","sax","semver","sha1","shell-quote","source-map","source-map-support","spdx-correct","spdx-exceptions","spdx-expression-parse","spdx-license-ids","split2","sprintf-js","steno","stream-combiner","stream-shift","string.prototype.padend","string_decoder","through","through2","through2-filter","to-absolute-glob","typedarray","ultron","unc-path-regex","unique-stream","universalify","util-deprecate","uuid","validate-npm-package-license","websocket-stream","which","wrappy","ws","xtend","yallist","yarn-run-all"]},{"dir":"/home/thomas/sandbox/MQTT-Explorer/node_modules/follow-redirects/node_modules","deps":["debug"]},{"dir":"/home/thomas/sandbox/MQTT-Explorer/node_modules/load-json-file/node_modules","deps":["pify","strip-bom"]},{"dir":"/home/thomas/sandbox/MQTT-Explorer/node_modules/path-type/node_modules","deps":["pify"]},{"dir":"/home/thomas/sandbox/MQTT-Explorer/node_modules/readable-stream/node_modules","deps":["isarray"]},{"dir":"/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules/debug/node_modules","deps":["ms"]},{"dir":"/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules/electron-telemetry/node_modules","deps":["axios"]},{"dir":"/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules/electron-updater/node_modules","deps":["bluebird-lst","builder-util-runtime","fs-extra","fs-extra-p"]},{"dir":"/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules/event-stream/node_modules","deps":["split"]},{"dir":"/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules/follow-redirects/node_modules","deps":["debug"]},{"dir":"/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules/load-json-file/node_modules","deps":["pify","strip-bom"]},{"dir":"/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules/path-type/node_modules","deps":["pify"]},{"dir":"/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules/pumpify/node_modules","deps":["pump"]},{"dir":"/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules/read-pkg-up/node_modules","deps":["find-up","path-exists"]},{"dir":"/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules/readable-stream/node_modules","deps":["isarray"]},{"dir":"/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules/split2/node_modules","deps":["readable-stream","string_decoder"]},{"dir":"/home/thomas/sandbox/MQTT-Explorer/build/clean/node_modules/yarn-run-all/node_modules","deps":["ansi-styles","chalk","strip-ansi","supports-color"]}]
{ appOutDir:
   '/home/thomas/sandbox/MQTT-Explorer/build/clean/build/linux-unpacked',
  outDir: '/home/thomas/sandbox/MQTT-Explorer/build/clean/build',
  arch: 1,
  targets:
   [ SnapTarget {
       name: 'snap',
       isAsyncSupported: true,
       packager: [LinuxPackager],
       helper: [LinuxTargetHelper],
       outDir: '/home/thomas/sandbox/MQTT-Explorer/build/clean/build',
       options: [Object],
       isUseTemplateApp: false } ],
  packager:
   LinuxPackager {
     info:
      Packager {
        cancellationToken: [CancellationToken],
        _metadata: [Object],
        _nodeModulesHandledExternally: false,
        _isPrepackedAppAsar: false,
        _devMetadata: [Object],
        _configuration: [Object],
        isTwoPackageJsonProjectLayoutUsed: false,
        eventEmitter: [EventEmitter],
        _appInfo: [AppInfo],
        tempDirManager: [TmpDir],
        _repositoryInfo: [Lazy],
        afterPackHandlers: [Array],
        debugLogger: [DebugLogger],
        _productionDeps: [Lazy],
        stageDirPathCustomizer: [Function],
        _buildResourcesDir: '/home/thomas/sandbox/MQTT-Explorer/build/clean/res',
        _framework: [ElectronFramework],
        projectDir: '/home/thomas/sandbox/MQTT-Explorer/build/clean',
        _appDir: '/home/thomas/sandbox/MQTT-Explorer/build/clean',
        options: [Object] },
     platform:
      Platform {
        name: 'linux',
        buildConfigurationKey: 'linux',
        nodeName: 'linux' },
     _resourceList: Lazy { _value: null, creator: [Function] },
     platformSpecificBuildOptions: { category: 'Development', maintainer: 'Thomas Nordquist' },
     appInfo:
      AppInfo {
        info: [Packager],
        platformSpecificOptions: [Object],
        description: 'Explore your message queues',
        version: '0.3.0',
        buildNumber: undefined,
        buildVersion: '0.3.0',
        productName: 'MQTT Explorer',
        productFilename: 'MQTT Explorer' },
     executableName: 'mqtt-explorer' },
  electronPlatformName: 'linux' }
  • building        target=snap arch=x64 file=build/clean/build/MQTT-Explorer_0.3.0_amd64.snap
  • spawning        command=/home/thomas/sandbox/MQTT-Explorer/node_modules/app-builder-bin/linux/x64/app-builder icon --format set --root /home/thomas/sandbox/MQTT-Explorer/build/clean/res --root /home/thomas/sandbox/MQTT-Explorer/build/clean --out /home/thomas/sandbox/MQTT-Explorer/build/clean/build/.icon-set --fallback-input /home/thomas/sandbox/MQTT-Explorer/node_modules/app-builder-lib/templates/icons/electron-linux
  • path doesn't exist  path=/home/thomas/sandbox/MQTT-Explorer/build/clean/res/icons
  • path doesn't exist  path=/home/thomas/sandbox/MQTT-Explorer/build/clean/icons
  • path resolved   outputFormat=set path=/home/thomas/sandbox/MQTT-Explorer/build/clean/res/icon.png
  • exited          command=app-builder code=0 pid=20919 out={"icons":[{"file":"/home/thomas/sandbox/MQTT-Explorer/build/clean/res/icon.png","size":0}],"isFallback":false}
  • spawning        command=/home/thomas/sandbox/MQTT-Explorer/node_modules/app-builder-bin/linux/x64/app-builder snap --app /home/thomas/sandbox/MQTT-Explorer/build/clean/build/linux-unpacked --stage /home/thomas/sandbox/MQTT-Explorer/build/clean/build/__snap-x64 --arch amd64 --output /home/thomas/sandbox/MQTT-Explorer/build/clean/build/MQTT-Explorer_0.3.0_amd64.snap --executable mqtt-explorer --icon /home/thomas/sandbox/MQTT-Explorer/build/clean/res/icon.png --extraAppArgs=--no-sandbox --exclude chrome-sandbox --template-url electron4
  • found existing  path=/home/thomas/.cache/electron-builder/snap/snap-template-electron-4.0
  • copy files      from=/home/thomas/sandbox/MQTT-Explorer/build/clean/res/icon.png isUseHardLinks=true to=/home/thomas/sandbox/MQTT-Explorer/build/clean/build/__snap-x64/meta/gui/icon.png
  • found existing  path=/home/thomas/.cache/electron-builder/appimage/appimage-9.1.0
  • execute command  args=/home/thomas/.cache/electron-builder/appimage/appimage-9.1.0/linux-x64/mksquashfs /home/thomas/.cache/electron-builder/snap/snap-template-electron-4.0/data-dir /home/thomas/.cache/electron-builder/snap/snap-template-electron-4.0/desktop-gnome-specific.sh /home/thomas/.cache/electron-builder/snap/snap-template-electron-4.0/gnome-platform /home/thomas/.cache/electron-builder/snap/snap-template-electron-4.0/desktop-common.sh /home/thomas/.cache/electron-builder/snap/snap-template-electron-4.0/etc /home/thomas/.cache/electron-builder/snap/snap-template-electron-4.0/usr /home/thomas/.cache/electron-builder/snap/snap-template-electron-4.0/desktop-init.sh /home/thomas/.cache/electron-builder/snap/snap-template-electron-4.0/var /home/thomas/.cache/electron-builder/snap/snap-template-electron-4.0/lib /home/thomas/sandbox/MQTT-Explorer/build/clean/build/__snap-x64/meta /home/thomas/sandbox/MQTT-Explorer/build/clean/build/__snap-x64/scripts /home/thomas/sandbox/MQTT-Explorer/build/clean/build/__snap-x64/command.sh /home/thomas/sandbox/MQTT-Explorer/build/clean/build/linux-unpacked/libGLESv2.so /home/thomas/sandbox/MQTT-Explorer/build/clean/build/linux-unpacked/swiftshader /home/thomas/sandbox/MQTT-Explorer/build/clean/build/linux-unpacked/libffmpeg.so /home/thomas/sandbox/MQTT-Explorer/build/clean/build/linux-unpacked/mqtt-explorer.bin /home/thomas/sandbox/MQTT-Explorer/build/clean/build/linux-unpacked/chrome_200_percent.pak /home/thomas/sandbox/MQTT-Explorer/build/clean/build/linux-unpacked/natives_blob.bin /home/thomas/sandbox/MQTT-Explorer/build/clean/build/linux-unpacked/resources.pak /home/thomas/sandbox/MQTT-Explorer/build/clean/build/linux-unpacked/mqtt-explorer /home/thomas/sandbox/MQTT-Explorer/build/clean/build/linux-unpacked/libEGL.so /home/thomas/sandbox/MQTT-Explorer/build/clean/build/linux-unpacked/icudtl.dat /home/thomas/sandbox/MQTT-Explorer/build/clean/build/linux-unpacked/chrome_100_percent.pak /home/thomas/sandbox/MQTT-Explorer/build/clean/build/linux-unpacked/resources /home/thomas/sandbox/MQTT-Explorer/build/clean/build/linux-unpacked/snapshot_blob.bin /home/thomas/sandbox/MQTT-Explorer/build/clean/build/linux-unpacked/locales /home/thomas/sandbox/MQTT-Explorer/build/clean/build/linux-unpacked/v8_context_snapshot.bin /home/thomas/sandbox/MQTT-Explorer/build/clean/build/MQTT-Explorer_0.3.0_amd64.snap -no-progress -quiet -noappend -comp xz -no-xattrs -no-fragments -all-root path=/home/thomas/.cache/electron-builder/appimage/appimage-9.1.0/linux-x64/mksquashfs
  • exited          command=app-builder code=0 pid=20925

Review:

➜ cloud:MQTT-Explorer git:(master) ✗ cd build/clean/build
➜ cloud:build git:(master) ✗ snap run review-tools.snap-review MQTT-Explorer_0.3.0_amd64.snap
Errors
------
 - security-snap-v2:squashfs_files
	found errors in file output: unusual mode 'rwxrwsr-x' for entry './locales', unable to read or access files in 'squashfs-root/meta' due to mode 'rwxrwsr-x', unusual mode 'rwxrwsr-x' for entry './meta/gui', unusual mode 'rwxrwsr-x' for entry './resources', unusual mode 'rwxrwsr-x' for entry './resources/inspector', unusual mode 'rwxrwsr-x' for entry './resources/inspector/Images', unusual mode 'rwxrwsr-x' for entry './resources/inspector/accessibility', unusual mode 'rwxrwsr-x' for entry './resources/inspector/accessibility_test_runner', unusual mode 'rwxrwsr-x' for entry './resources/inspector/animation', unusual mode 'rwxrwsr-x' for entry './resources/inspector/application_test_runner', unusual mode 'rwxrwsr-x' for entry './resources/inspector/audits2', unusual mode 'rwxrwsr-x' for entry './resources/inspector/audits2_test_runner', unusual mode 'rwxrwsr-x' for entry './resources/inspector/audits2_worker', unusual mode 'rwxrwsr-x' for entry './resources/inspector/bindings_test_runner', unusual mode 'rwxrwsr-x' for entry './resources/inspector/browser_debugger', unusual mode 'rwxrwsr-x' for entry './resources/inspector/changes', unusual mode 'rwxrwsr-x' for entry './resources/inspector/cm', unusual mode 'rwxrwsr-x' for entry './resources/inspector/cm_modes', unusual mode 'rwxrwsr-x' for entry './resources/inspector/color_picker', unusual mode 'rwxrwsr-x' for entry './resources/inspector/console', unusual mode 'rwxrwsr-x' for entry './resources/inspector/console_test_runner', unusual mode 'rwxrwsr-x' for entry './resources/inspector/cookie_table', unusual mode 'rwxrwsr-x' for entry './resources/inspector/coverage', unusual mode 'rwxrwsr-x' for entry './resources/inspector/coverage_test_runner', unusual mode 'rwxrwsr-x' for entry './resources/inspector/cpu_profiler_test_runner', unusual mode 'rwxrwsr-x' for entry './resources/inspector/data_grid', unusual mode 'rwxrwsr-x' for entry './resources/inspector/data_grid_test_runner', unusual mode 'rwxrwsr-x' for entry './resources/inspector/device_mode_test_runner', unusual mode 'rwxrwsr-x' for entry './resources/inspector/devices', unusual mode 'rwxrwsr-x' for entry './resources/inspector/diff', unusual mode 'rwxrwsr-x' for entry './resources/inspector/elements', unusual mode 'rwxrwsr-x' for entry './resources/inspector/elements_test_runner', unusual mode 'rwxrwsr-x' for entry './resources/inspector/emulated_devices', unusual mode 'rwxrwsr-x' for entry './resources/inspector/event_listeners', unusual mode 'rwxrwsr-x' for entry './resources/inspector/extensions_test_runner', unusual mode 'rwxrwsr-x' for entry './resources/inspector/formatter', unusual mode 'rwxrwsr-x' for entry './resources/inspector/har_importer', unusual mode 'rwxrwsr-x' for entry './resources/inspector/heap_profiler_test_runner', unusual mode 'rwxrwsr-x' for entry './resources/inspector/heap_snapshot_model', unusual mode 'rwxrwsr-x' for entry './resources/inspector/heap_snapshot_worker', unusual mode 'rwxrwsr-x' for entry './resources/inspector/help', unusual mode 'rwxrwsr-x' for entry './resources/inspector/inline_editor', unusual mode 'rwxrwsr-x' for entry './resources/inspector/javascript_metadata', unusual mode 'rwxrwsr-x' for entry './resources/inspector/js_profiler', unusual mode 'rwxrwsr-x' for entry './resources/inspector/layer_viewer', unusual mode 'rwxrwsr-x' for entry './resources/inspector/layers', unusual mode 'rwxrwsr-x' for entry './resources/inspector/layers_test_runner', unusual mode 'rwxrwsr-x' for entry './resources/inspector/network', unusual mode 'rwxrwsr-x' for entry './resources/inspector/network_test_runner', unusual mode 'rwxrwsr-x' for entry './resources/inspector/node_debugger', unusual mode 'rwxrwsr-x' for entry './resources/inspector/object_ui', unusual mode 'rwxrwsr-x' for entry './resources/inspector/perf_ui', unusual mode 'rwxrwsr-x' for entry './resources/inspector/performance_monitor', unusual mode 'rwxrwsr-x' for entry './resources/inspector/performance_test_runner', unusual mode 'rwxrwsr-x' for entry './resources/inspector/product_registry_impl', unusual mode 'rwxrwsr-x' for entry './resources/inspector/profiler', unusual mode 'rwxrwsr-x' for entry './resources/inspector/protocol_monitor', unusual mode 'rwxrwsr-x' for entry './resources/inspector/quick_open', unusual mode 'rwxrwsr-x' for entry './resources/inspector/resources', unusual mode 'rwxrwsr-x' for entry './resources/inspector/sdk_test_runner', unusual mode 'rwxrwsr-x' for entry './resources/inspector/search', unusual mode 'rwxrwsr-x' for entry './resources/inspector/security', unusual mode 'rwxrwsr-x' for entry './resources/inspector/security_test_runner', unusual mode 'rwxrwsr-x' for entry './resources/inspector/settings', unusual mode 'rwxrwsr-x' for entry './resources/inspector/snippets', unusual mode 'rwxrwsr-x' for entry './resources/inspector/source_frame', unusual mode 'rwxrwsr-x' for entry './resources/inspector/sources', unusual mode 'rwxrwsr-x' for entry './resources/inspector/sources_test_runner', unusual mode 'rwxrwsr-x' for entry './resources/inspector/text_editor', unusual mode 'rwxrwsr-x' for entry './resources/inspector/timeline', unusual mode 'rwxrwsr-x' for entry './resources/inspector/timeline_model', unusual mode 'rwxrwsr-x' for entry './resources/inspector/workspace_diff', unusual mode 'rwxrwsr-x' for entry './scripts', unusual mode 'rwxrwsr-x' for entry './swiftshader'
 - security-snap-v2:squashfs_repack_checksum
	checksums do not match. Please ensure the snap is created with either 'snapcraft pack <DIR>' (using snapcraft >= 2.38) or 'mksquashfs <dir> <snap> -noappend -comp xz -all-root -no-xattrs -no-fragments'. If using electron-builder, please upgrade to latest stable (>= 20.14.7). See https://forum.snapcraft.io/t/automated-reviews-and-snapcraft-2-38/4982/17 for details.
	https://forum.snapcraft.io/t/automated-reviews-and-snapcraft-2-38/4982/17
MQTT-Explorer_0.3.0_amd64.snap: FAIL

umask

➜ cloud:build git:(master) umask
002

umask (on a working machine)

0022

@develar
Copy link
Member

develar commented Jun 20, 2019

unusual mode 'rwxrwsr-x' for entry './meta/gui'

It means that electron-unpack is innocent, and app file copying is innocent. Simple outputFile is affected.

Thanks for cooperation and detailed answers.

@develar develar reopened this Jun 20, 2019
@thomasnordquist
Copy link
Author

No problem building with a different linux user...
Did you ever retag a release? (Create a tagged release and overwrite it later)
Just had the idea that it might be a corrupt npm/yarn cache...

@develar
Copy link
Member

develar commented Jun 20, 2019

I am sure that it is some weird Linux issue. Regardless of how is bad your machine, it is not an excuse for electron-builder to silently produce corrupted snap. If I will not managed to fix it propery, I can always use chmod -R g-s as a stupid simple solution.

@thomasnordquist
Copy link
Author

I believe I got it... For some reasons the setguid flag is set on the home directory and all subdirectories inherit the flag... 😞

@thomasnordquist
Copy link
Author

Sorry if I wasted your time...
I should probably re-install the server, seems that something unexpected happened on this machine in the past.

@develar
Copy link
Member

develar commented Jun 21, 2019

Fixed in 20.44.4. electron-builder goal to allow you just focus on your app and not on boring distribution process.

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

No branches or pull requests

2 participants