question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Packaging darwin build on Windows results in blocked folder (access denied)

See original GitHub issue

Hi there, I’ve just started using the packager, and it works pretty well. Thanks for the great work and the efforts here 😃

I just have a problem with building for Mac on Windows. I use this line of code:

D:\work\www\droplet>electron-packager ./ Droplet --platform=darwin --arch=x64 -- version=0.33.9 --out=build

And the build was successful:

Packaging app for platform darwin x64 using electron v0.33.9
Wrote new app to build\Droplet-darwin-x64

But here comes the problem - I cannot archive or copy this build. When archiving with WinRAR, I get the following error:

!   D:\work\www\droplet\build\Droplet-darwin-x64.rar: Cannot open D:\work\www\droplet\build\Droplet-darwin-x64\Droplet.app\Contents\Frameworks\Electron Framework.framework\Libraries
    Access is denied.
!   D:\work\www\droplet\build\Droplet-darwin-x64.rar: Cannot open D:\work\www\droplet\build\Droplet-darwin-x64\Droplet.app\Contents\Frameworks\Electron Framework.framework\Resources
    Access is denied.

Followed by a 5 seconds wait time, and another like 10 errors for maybe all things in Frameworks folder.

I’ve managed to copy it through cmd, using xcopy, BUT the build was 50% larger (don’t know why), and does not run on Mac: The application “Droplet.app” can’t be opened.

Do you have any ideas why this happens? Using Windows builds (on any arch) works like a charm! Any ideas will be appreciated!

Issue Analytics

  • State:open
  • Created 8 years ago
  • Reactions:9
  • Comments:45 (17 by maintainers)

github_iconTop GitHub Comments

10reactions
Bobavincecommented, Mar 13, 2018

For me, I just fix the problem by compressing it to a 7Zip archive (.7zip) and then uncompress it somewhere else. Note that compressing in a zip archive (.zip) with 7zip doesn’t work (same access problem).

2reactions
jhovgaardcommented, Nov 15, 2016

I haven’t found a solution, but I’ve found a way to make my life a bit easier: Build a package using Mac. For your next releases you can use WinRAR or similar to update the source/asar.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Access Denied" or other errors when you access or work with ...
Issue 1: You receive an "Access Denied" error message or a similar message. Issue 2: You cannot access, change, save, or delete files...
Read more >
Changelog — Python 3.11.1 documentation
Using the dir_fd option with either os.mkfifo() or os.mknod() could result in a segfault if cpython is built with the macOS 13 SDK...
Read more >
Error with SDK package download in Android Studio
I had this similar issue below worked for me. The solution for this is: Run Android Studio as Administrator. Re run the update....
Read more >
Nixpkgs 22.11 manual - NixOS
In particular, all build-time dependencies are checked. nix-env -qa will (attempt to) hide any packages that would be refused. Each of these criteria...
Read more >
Writing R Extensions - The Comprehensive R Archive Network
4.1 Browsing; 4.2 Debugging R code; 4.3 Checking memory access ... Package structure; Configure and cleanup; Checking and building packages; Writing package ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found