-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
snap - can't push to snapcraft anymore because of execstack #2608
Comments
This bug is confirmed by both Electron and Snapcraft team. Well, as you use electron-builder, it means that it will be fixed for you :) Workaround will be added in 2 days. See workaround — https://forum.snapcraft.io/t/fonts-fail-to-load-when-desktop-plug-added/3414/3?u=develar (but yeach, not easy — you need to use afterPack hook in the electron-builder). Are you on Linux? So, please wait several days. |
Ok, it seems I have time to add workaround in one hour. |
@develar you are awesome! 🥇
I'm on Mac usually, but spin up Ubuntu virtual machine while trying to workaround this issue.
Yep. I saw this scary post. So tried to Maybe it will be easier for electron-builder to install |
Thanks @develar Unfortunetely wasn't able to snap application. Looks like icons issue in
osboxes@osboxes:~/edc$ time electron-builder -l snap
• electron-builder version=20.0.7
• loaded configuration file=package.json ("build" field)
• writing effective config file=release-builds/electron-builder.yaml
• rebuilding native production dependencies platform=linux arch=x64
• packaging platform=linux arch=x64 electron=1.8.2 appOutDir=release-builds/linux-unpacked
• building target=snap arch=x64 file=release-builds/easy-disk-cleaner_1.0.2_amd64.snap
⨯ icon directory /home/osboxes/edc/icons doesn't contain icons
github.com/develar/app-builder/pkg/icons.ConvertIcon
/Users/develar/go/src/github.com/develar/app-builder/pkg/icons/icon-converter.go:190
github.com/develar/app-builder/pkg/icons.ConfigureCommand.func1
/Users/develar/go/src/github.com/develar/app-builder/pkg/icons/icon-converter.go:27
github.com/develar/app-builder/vendor/github.com/alecthomas/kingpin.(*actionMixin).applyActions
/Users/develar/go/src/github.com/develar/app-builder/vendor/github.com/alecthomas/kingpin/actions.go:28
github.com/develar/app-builder/vendor/github.com/alecthomas/kingpin.(*Application).applyActions
/Users/develar/go/src/github.com/develar/app-builder/vendor/github.com/alecthomas/kingpin/app.go:557
github.com/develar/app-builder/vendor/github.com/alecthomas/kingpin.(*Application).execute
/Users/develar/go/src/github.com/develar/app-builder/vendor/github.com/alecthomas/kingpin/app.go:390
github.com/develar/app-builder/vendor/github.com/alecthomas/kingpin.(*Application).Parse
/Users/develar/go/src/github.com/develar/app-builder/vendor/github.com/alecthomas/kingpin/app.go:222
main.main
/Users/develar/go/src/github.com/develar/app-builder/main.go:59
runtime.main
/usr/local/Cellar/go/1.10/libexec/src/runtime/proc.go:198
runtime.goexit
/usr/local/Cellar/go/1.10/libexec/src/runtime/asm_amd64.s:2361
Error: /usr/local/lib/node_modules/electron-builder/node_modules/app-builder-bin-linux/x64/app-builder exited with code 1
at ChildProcess.childProcess.once.code (/usr/local/lib/node_modules/electron-builder/node_modules/builder-util/src/util.ts:248:14)
at ChildProcess.g (events.js:292:16)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:920:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5)
From previous event:
at LinuxPackager.resolveIcon (/usr/local/lib/node_modules/electron-builder/node_modules/electron-builder-lib/out/platformPackager.js:610:11)
at /usr/local/lib/node_modules/electron-builder/node_modules/electron-builder-lib/src/targets/LinuxTargetHelper.ts:41:35
at next (native)
From previous event:
at LinuxTargetHelper.computeDesktopIcons (/usr/local/lib/node_modules/electron-builder/node_modules/electron-builder-lib/out/targets/LinuxTargetHelper.js:72:11)
at Lazy.LinuxTargetHelper.iconPromise.Lazy (/usr/local/lib/node_modules/electron-builder/node_modules/electron-builder-lib/src/targets/LinuxTargetHelper.ts:13:54)
at Lazy.get value [as value] (/usr/local/lib/node_modules/electron-builder/node_modules/lazy-val/src/main.ts:18:23)
at LinuxTargetHelper.get icons [as icons] (/usr/local/lib/node_modules/electron-builder/node_modules/electron-builder-lib/src/targets/LinuxTargetHelper.ts:21:17)
at /usr/local/lib/node_modules/electron-builder/node_modules/electron-builder-lib/src/targets/snap.ts:132:16
at next (native)
From previous event:
at SnapTarget.build (/usr/local/lib/node_modules/electron-builder/node_modules/electron-builder-lib/out/targets/snap.js:174:11)
at taskManager.addTask.default.map.it (/usr/local/lib/node_modules/electron-builder/node_modules/electron-builder-lib/src/platformPackager.ts:121:67)
From previous event:
at LinuxPackager.packageInDistributableFormat (/usr/local/lib/node_modules/electron-builder/node_modules/electron-builder-lib/src/platformPackager.ts:121:23)
at /usr/local/lib/node_modules/electron-builder/node_modules/electron-builder-lib/src/platformPackager.ts:116:10
at next (native)
at runCallback (timers.js:672:20)
at tryOnImmediate (timers.js:645:5)
at processImmediate [as _immediateCallback] (timers.js:617:5)
From previous event:
at LinuxPackager.pack (/usr/local/lib/node_modules/electron-builder/node_modules/electron-builder-lib/out/platformPackager.js:188:11)
at /usr/local/lib/node_modules/electron-builder/node_modules/electron-builder-lib/src/packager.ts:372:24
at next (native)
at xfs.stat (/usr/local/lib/node_modules/electron-builder/node_modules/fs-extra/lib/mkdirs/mkdirs.js:56:16)
at /usr/local/lib/node_modules/electron-builder/node_modules/graceful-fs/polyfills.js:287:18
From previous event:
at Packager.doBuild (/usr/local/lib/node_modules/electron-builder/node_modules/electron-builder-lib/out/packager.js:441:11)
at /usr/local/lib/node_modules/electron-builder/node_modules/electron-builder-lib/src/packager.ts:316:52
at next (native)
at /usr/local/lib/node_modules/electron-builder/node_modules/graceful-fs/graceful-fs.js:99:16
at /usr/local/lib/node_modules/electron-builder/node_modules/graceful-fs/graceful-fs.js:43:10
at FSReqWrap.oncomplete (fs.js:123:15)
From previous event:
at Packager._build (/usr/local/lib/node_modules/electron-builder/node_modules/electron-builder-lib/out/packager.js:385:11)
at /usr/local/lib/node_modules/electron-builder/node_modules/electron-builder-lib/src/packager.ts:278:23
at next (native)
at runCallback (timers.js:672:20)
at tryOnImmediate (timers.js:645:5)
at processImmediate [as _immediateCallback] (timers.js:617:5)
From previous event:
at Packager.build (/usr/local/lib/node_modules/electron-builder/node_modules/electron-builder-lib/out/packager.js:341:11)
at /usr/local/lib/node_modules/electron-builder/node_modules/electron-builder-lib/src/index.ts:50:40
at next (native)
From previous event:
at build (/usr/local/lib/node_modules/electron-builder/node_modules/electron-builder-lib/out/index.js:47:21)
at build (/usr/local/lib/node_modules/electron-builder/src/builder.ts:228:10)
at then (/usr/local/lib/node_modules/electron-builder/src/cli/cli.ts:48:33)
at runCallback (timers.js:672:20)
at tryOnImmediate (timers.js:645:5)
at processImmediate [as _immediateCallback] (timers.js:617:5)
From previous event:
at Object.args [as handler] (/usr/local/lib/node_modules/electron-builder/src/cli/cli.ts:48:33)
at Object.runCommand (/usr/local/lib/node_modules/electron-builder/node_modules/yargs/lib/command.js:235:44)
at Object.parseArgs [as _parseArgs] (/usr/local/lib/node_modules/electron-builder/node_modules/yargs/yargs.js:1042:24)
at Object.get [as argv] (/usr/local/lib/node_modules/electron-builder/node_modules/yargs/yargs.js:957:21)
at Object.<anonymous> (/usr/local/lib/node_modules/electron-builder/src/cli/cli.ts:42:15)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:383:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:496:3
real 4m32.720s
user 1m19.905s
sys 0m26.926s osboxes@osboxes:~/edc$ ls -1 /home/osboxes/edc/icons
icon.icns
icon.ico
icon.png
icon-src.svg
icon.svg |
Please provide your electron-builder config. |
@develar UPD: This happens on both Mac and Ubuntu with following config
|
@Qiplex Icon issue fixed in the upcoming 20.0.8. |
Oh... I was able to make it work in previous version ( After lots of errors and trials such as mentioned here
I will try to reproduce the fix and update guys in #2577 with it. |
@Qiplex Your icon issue is not an issue. It is feature.
So, quite logical, that icon was not found :) What was implemented: now we also use |
@develar great! Thanks for the hotfix with default Regarding the main issue:
Just tried to push snap built with
|
@Qiplex Please refile as a new issue please about symlinks. |
Hello,
I was able to push 3 electron apps to Snapcraft without issues earlier. But recently I was getting following error while pushing the same apps using the same environment:
The affected file Snapcraft erroring about always is the application file.
I've tried to use different platforms and different electron builder versions to workararound this
OS - Mac, Ubuntu (x64)
Electron-builder - 19.50.0, 19.53.7, 20.0.4
But issue seems to be there. I believe this error somehow related to snapcraft internal change. Fix for this error Snapcraft team describes here
Can someone have a look on it? Thanks!
The text was updated successfully, but these errors were encountered: