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.

Building Mac applications on Windows generates no output

See original GitHub issue
electron-packager . ${APP_NAME} --platform=darwin --arch=x64 --version=${ELECTRON_VERSION} --out=${OUTPUT_DIR}/mac64

Apparently the above command doesn’t output anything

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:28 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
maleptcommented, Jan 1, 2019

It probably has something to do with the fact that your app directory is on one drive and the temp directory is on the other. Also, it’s --out, not -out.

0reactions
dogancelikcommented, Jan 1, 2019

Electron-packager fails when building for Darwin (on Windows host). I used to create Mac packages successfully on version 8.7.2. I’m running cmd.exe as Admin.

Similar issues: #164 and my comment from 2016 (symlink was working)

# npx electron-packager --version
Electron Packager 13.0.1
Node v11.3.0
Host Operating system: win32 (x64)

# npx electron-packager . --platform=win32 --arch=x64 --electron-version=4.0.0
Packaging app for platform win32 x64 using electron v4.0.0
Wrote new app to d:\Projects\Public\atomic-tweetdeck\master\Atomic TweetDeck-win32-x64

# npx electron-packager . --platform=linux --arch=x64 --electron-version=4.0.0
Packaging app for platform linux x64 using electron v4.0.0
Wrote new app to d:\Projects\Public\atomic-tweetdeck\master\Atomic TweetDeck-linux-x64

# npx electron-packager . --platform=darwin --arch=x64 --electron-version=4.0.0
Packaging app for platform darwin x64 using electron v4.0.0
EPERM: operation not permitted, stat 'C:\Users\dogan\AppData\Local\Temp\electron-packager\darwin-x64\Atomic TweetDeck-darwin-x64\Atomic TweetDeck.app\Contents\Frameworks\Squirrel.framework\Versions\Current'

# npx electron-packager . --platform=darwin --arch=x64 --electron-version=4.0.0 --no-tmpdir
Packaging app for platform darwin x64 using electron v4.0.0
Cannot copy '.' to a subdirectory of itself, 'd:\Projects\Public\atomic-tweetdeck\master\Atomic TweetDeck-darwin-x64\Electron.app\Contents\Resources\app'.

# npx electron-packager . --platform=darwin --arch=x64 --electron-version=4.0.0 --no-tmpdir -out=build
Packaging app for platform darwin x64 using electron v4.0.0
Cannot copy '.' to a subdirectory of itself, 'd:\Projects\Public\atomic-tweetdeck\master\Atomic TweetDeck-darwin-x64\Electron.app\Contents\Resources\app'.

# I set a parent directory as build folder: "..\build"
# npx electron-packager . --platform=darwin --arch=x64 --electron-version=4.0.0 --no-tmpdir -out=..\build
Packaging app for platform darwin x64 using electron v4.0.0
Cannot copy '.' to a subdirectory of itself, 'd:\Projects\Public\atomic-tweetdeck\master\Atomic TweetDeck-darwin-x64\Electron.app\Contents\Resources\app'.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Compiling and Building - Visual Studio for Mac - Microsoft Learn
This article describes how to compile and build projects and solutions in Visual Studio for Mac.
Read more >
Building a Universal macOS Binary - Apple Developer
Building a Universal macOS Binary. Create macOS apps and other executables that run natively on both Apple silicon and Intel-based Mac computers.
Read more >
How To Create Your First Cross-Platform Desktop Application ...
Linux: If you build on Windows or macOS, Snap and AppImage for x64 will be the output. Otherwise if you build on Linux,...
Read more >
Run Windows on Mac - Parallels Desktop 18 Virtual Machine ...
Run Windows on Mac without rebooting. Run more than 200,000 Windows apps on a Mac, including Microsoft Office for Windows. Download and Install...
Read more >
Configure VS Code for Clang/LLVM on macOS
From the macOS Terminal, create an empty folder called projects where you can store ... After the build succeeds, your program's output will...
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