simoniz0r / deb2appimage

Build AppImages from deb packages on any distro with simple json configuration
MIT License
117 stars 14 forks source link

Unable to pass prerun step with local deb #15

Open magicvince opened 4 years ago

magicvince commented 4 years ago

Is it possible to run deb2image with a local deb? When I execute deb2appimages, I read a message "permission not allowed" for the prerun bash (failed input) and the script with exit code 2 ` ../deb2appimage-0.0.5-x86_64.AppImage -j openelearning.json

Executing prerun...

bash: /home/magicvince/Applications/Deb2Appimages/openelearning/OpenElearning_1.4.2_amd64.deb: Permission non accordée

Input Error!

'prerun' failed!

Failed to execute: /home/magicvince/Applications/Deb2Appimages/openelearning/OpenElearning_1.4.2_amd64.deb

Exit code 2 `

Here's my recipe:

`{

"buildinfo": [

{

    "prerun": [

        "/home/magicvince/Applications/Deb2Appimages/openelearning/OpenElearning_1.4.2_amd64.deb"

    ],

    "name": "openelearning",

    "version": "linux",

    "deps": "libgconf2-4",

    "repoarch": "amd64",

    "distrorepo": "Debian",

    "repoversion": "jessie-backports,jessie,jessie",

    "binarypath": "/usr/bin/OpenElearning",

    "desktoppath": "/usr/share/applications/OpenElearning.desktop",

    "iconpath": "/usr/share/pixmaps/OpenElearning.png",

    "usewrapper": "true",

    "postrun": [

        null

    ]

}

],

"apprunconf": [

{

    "setpath": "true",

    "setlibpath": "true",

    "setpythonpath": "false",

    "setpythonhome": "false",

    "setpythondontwritebytecode": "false",

    "setxdgdatadirs": "false",

    "setperllib": "false",

    "setgsettingsschemadir": "false",

    "setqtpluginpath": "false",

    "exec": "/usr/bin/OpenElearning.wrapper"

}

],

"authors": [

{

    "type": "Author",

    "author": "OpenElearning Team",

    "url": "https://openelearning.org"

},

{

    "type": "AppImage Maintainer",

    "author": "Magicvince",

    "url": "https://github.com/magicvince"

}

]

}

`

junetried commented 4 years ago

The prerun section is executed line-by-line before the dependencies are downloaded. (In the README) This is why you get a permission denied error. If you want to use an existing package, move it to ~/.cache/deb2appimage/debs/ in the prerun section.