dgiagio / warp

Create self-contained single binary applications
MIT License
1.91k stars 92 forks source link

Error: Os { code: 13, kind: PermissionDenied, message: "Permission denied" } #23

Open CRC32EX opened 5 years ago

CRC32EX commented 5 years ago

Steps to reproduce this issue

1. Init app(Windows)

$ dotnet new console -o myApp
$ cd myApp
$ dotnet publish -c Release -r linux-x64

2. Warp v0.3.0(Windows)

$ windows-x64.warp-packer.exe --arch linux-x64 --input_dir bin/Release/netcoreapp2.1/linux-x64/publish --exec myApp --output myAppOut

3. Copy file to Ubuntu

$ chmod 777 myAppOut
$ ./myAppOut
Error: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }

Possible solution

This is Bug or warp specification?

Environment

ssummer1337 commented 5 years ago

I currently have the same issue.

The program is able to extract all the files to the cache. I guess the problem here is that the file does not have the executable permission due to maybe coming from windows.

When I manually add the bit via 'chmod +x' I am able to run the application also with the packed application.

peters commented 5 years ago

@CRC32EX @ssummer1337 Did you guys find a workaround for this issue?

CRC32EX commented 5 years ago

@peters nothing yet

Unknown6656 commented 5 years ago

I have the same issue with .NET core 2.2 publishing on Win10-x64 for Linux-x64.

marcellus-trixus commented 5 years ago

Hi all, I have a fix in my branch. Currently don't have time to clean up the mess I made in my branches to create clean pull request. Hope it helps :-)

Salgat commented 5 years ago

Any chance of this going out in a release anytime soon? 😁

peters commented 5 years ago

@dgiagio Are you planning to release a new version anytime soon? :)

xarly commented 4 years ago

Please make a release with these changes

mw66 commented 4 years ago

Please make a release with these changes

+1

peters commented 4 years ago

Since the author of this project has stopping maintaining this project we have created a fork of this repository: https://github.com/fintermobilityas/warp. Updated binaries can be downloaded from: https://github.com/fintermobilityas/warp/releases/tag/v0.4.0

For those who don't trust these binaries they can be manually downloaded from the following Github Actions Workflow run: https://github.com/fintermobilityas/warp/actions/runs/146462065