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

Problem creating AppImage #2664

Closed
CoDanny opened this issue Mar 5, 2018 · 6 comments · May be fixed by qcif/data-curator#563
Closed

Problem creating AppImage #2664

CoDanny opened this issue Mar 5, 2018 · 6 comments · May be fixed by qcif/data-curator#563
Labels

Comments

@CoDanny
Copy link

CoDanny commented Mar 5, 2018

Version :20.2.1

Platform details: platform=linux arch=x64 electron=1.8.2

I get the following issue when trying to build an AppImage:

output: /home/osboxes/.cache/electron-builder/appimage/appimage-9.1.0/linux-x64/mksquashfs: invalid option
@develar
Copy link
Member

develar commented Mar 5, 2018

Please set env DEBUG=electron-builder and attach log of the terminal output.

@CoDanny
Copy link
Author

CoDanny commented Mar 5, 2018


osboxes@osboxes:~/astroprint-repos/AstroPrint-App$ DEBUG=electron-builder npm run package-app

> astroprint@0.1.13 package-app /home/osboxes/astroprint-repos/AstroPrint-App
> build

  • electron-builder version=20.2.1
  • loaded configuration file=package.json ("build" field)
  • effective config config=
                       directories:
                         output: build/dist
                         buildResources: resources
                         app: build/app
                       appId: com.astroprint.desktop
                       copyright: Copyright (c) 2018 AstroPrint
                       asarUnpack:
                         - bin
                       compression: maximum
                       mac:
                         target:
                           - dmg
                         icon: resources/icon.icns
                         category: public.app-category.productivity
                       dmg:
                         title: AstroPrint Desktop App
                         icon: resources/icon.icns
                         background: resources/darwin/install-bg.png
                         contents:
                           - x: 25
                             'y': 150
                           - x: 300
                             'y': 150
                             type: link
                             path: /Applications
                       win:
                         target: squirrel
                       squirrelWindows:
                         iconUrl: 'https://s3.amazonaws.com/p2p-static/desktop-app.ico'
                         loadingGif: resources/win32/win-install.gif
                       linux:
                         target: AppImage
                         icon: resources/linux/512x512.png
                         category: Printing
                       
  • two package.json structure is used devPackageFile=/home/osboxes/astroprint-repos/AstroPrint-App/package.json appPackageFile=/home/osboxes/astroprint-repos/AstroPrint-App/build/app/package.json
  • writing effective config file=build/dist/electron-builder.yaml
  • no native production dependencies
  • packaging       platform=linux arch=x64 electron=1.8.2 appOutDir=build/dist/linux-unpacked
Error: EACCES: permission denied, unlink '/home/osboxes/astroprint-repos/AstroPrint-App/build/dist/linux-unpacked/resources/app.asar'
    at Error (native)
From previous event:
    at /home/osboxes/astroprint-repos/AstroPrint-App/node_modules/electron-builder-lib/src/packager/dirPackager.ts:54:7
    at next (native)
From previous event:
    at unpack (/home/osboxes/astroprint-repos/AstroPrint-App/node_modules/electron-builder-lib/out/packager/dirPackager.js:55:21)
    at unpackElectron (/home/osboxes/astroprint-repos/AstroPrint-App/node_modules/electron-builder-lib/src/packager/dirPackager.ts:27:10)
    at /home/osboxes/astroprint-repos/AstroPrint-App/node_modules/electron-builder-lib/src/platformPackager.ts:167:27
    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.doPack (/home/osboxes/astroprint-repos/AstroPrint-App/node_modules/electron-builder-lib/out/platformPackager.js:269:11)
    at /home/osboxes/astroprint-repos/AstroPrint-App/node_modules/electron-builder-lib/src/platformPackager.ts:116:16
    at next (native)
From previous event:
    at LinuxPackager.pack (/home/osboxes/astroprint-repos/AstroPrint-App/node_modules/electron-builder-lib/out/platformPackager.js:189:11)
    at /home/osboxes/astroprint-repos/AstroPrint-App/node_modules/electron-builder-lib/src/packager.ts:372:24
    at next (native)
    at xfs.stat (/home/osboxes/astroprint-repos/AstroPrint-App/node_modules/fs-extra-p/node_modules/fs-extra/lib/mkdirs/mkdirs.js:56:16)
    at /home/osboxes/astroprint-repos/AstroPrint-App/node_modules/graceful-fs/polyfills.js:287:18
From previous event:
    at Packager.doBuild (/home/osboxes/astroprint-repos/AstroPrint-App/node_modules/electron-builder-lib/out/packager.js:441:11)
    at /home/osboxes/astroprint-repos/AstroPrint-App/node_modules/electron-builder-lib/src/packager.ts:316:52
    at next (native)
    at /home/osboxes/astroprint-repos/AstroPrint-App/node_modules/graceful-fs/graceful-fs.js:99:16
    at /home/osboxes/astroprint-repos/AstroPrint-App/node_modules/graceful-fs/graceful-fs.js:43:10
    at FSReqWrap.oncomplete (fs.js:123:15)
From previous event:
    at Packager._build (/home/osboxes/astroprint-repos/AstroPrint-App/node_modules/electron-builder-lib/out/packager.js:385:11)
    at /home/osboxes/astroprint-repos/AstroPrint-App/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 (/home/osboxes/astroprint-repos/AstroPrint-App/node_modules/electron-builder-lib/out/packager.js:341:11)
    at /home/osboxes/astroprint-repos/AstroPrint-App/node_modules/electron-builder-lib/src/index.ts:50:40
    at next (native)
From previous event:
    at build (/home/osboxes/astroprint-repos/AstroPrint-App/node_modules/electron-builder-lib/out/index.js:47:21)
    at build (/home/osboxes/astroprint-repos/AstroPrint-App/node_modules/electron-builder/src/builder.ts:228:10)
    at then (/home/osboxes/astroprint-repos/AstroPrint-App/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] (/home/osboxes/astroprint-repos/AstroPrint-App/node_modules/electron-builder/src/cli/cli.ts:48:33)
    at Object.runCommand (/home/osboxes/astroprint-repos/AstroPrint-App/node_modules/electron-builder/node_modules/yargs/lib/command.js:235:44)
    at Object.parseArgs [as _parseArgs] (/home/osboxes/astroprint-repos/AstroPrint-App/node_modules/electron-builder/node_modules/yargs/yargs.js:1042:24)
    at Object.get [as argv] (/home/osboxes/astroprint-repos/AstroPrint-App/node_modules/electron-builder/node_modules/yargs/yargs.js:957:21)
    at Object.<anonymous> (/home/osboxes/astroprint-repos/AstroPrint-App/node_modules/electron-builder/src/cli/cli.ts:42:15)
    at Module._compile (module.js:577:32)
    at Object.Module._extensions..js (module.js:586:10)
    at Module.load (module.js:494:32)
    at tryModuleLoad (module.js:453:12)
    at Function.Module._load (module.js:445:3)
    at Module.runMain (module.js:611:10)
    at run (bootstrap_node.js:387:7)
    at startup (bootstrap_node.js:153:9)
    at bootstrap_node.js:500:3

npm ERR! Linux 4.4.0-116-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "package-app"
npm ERR! node v6.13.0
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! astroprint@0.1.13 package-app: `build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the astroprint@0.1.13 package-app script 'build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the astroprint package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs astroprint
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls astroprint
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/osboxes/astroprint-repos/AstroPrint-App/npm-debug.log
osboxes@osboxes:~/astroprint-repos/AstroPrint-App$ 

@CoDanny
Copy link
Author

CoDanny commented Mar 5, 2018

Also with 19.56.2 it works

@develar
Copy link
Member

develar commented Mar 5, 2018

Strange, but your output doesn't contain debug information.

DEBUG=electron-builder npm run package-app

@CoDanny
Copy link
Author

CoDanny commented Mar 5, 2018

I have updated the log output above

@vladimiry
Copy link
Contributor

vladimiry commented Mar 5, 2018

I've run into the same issue, travis build output is here, downgrading 20.2.1 => 20.2.0 helps.

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