Electron-packager: Cannot create symlinks; skipping darwin platform on Windows

Created on 5 Jul 2015  路  6Comments  路  Source: electron/electron-packager

  • v5.0.0
  • npm run clean:osx && electron-packager ./app \"sulu\" --out=dist --platform=darwin --arch=x64 --version=0.25.3 --icon=src/icon.icns
  • windows 7 32bit

Returns Cannot create symlinks; skipping darwin platform :crying_cat_face:

Most helpful comment

It works running cmd.exe as admin. Strange. I am always logged in as administrator! Anyway ty for help!

All 6 comments

That message is due to electron-packager working around #71 (which I see you've also commented on); without the workaround, electron-packager would just silently bail out in this situation.

You can try running as administrator on Windows to get around this, but even then, I'm not sure there's a safe way to zip up the OS X app - I tried Windows' built-in compressed folder and 7-zip and both trip up on the symlinks.

I'm inclined to close this and continue tracking #71.

It works running cmd.exe as admin. Strange. I am always logged in as administrator! Anyway ty for help!

No problem. I'll close this then.

Just in case any one else having trouble to copy symlinks on windows for :apple: distribution

xcopy /b /Y /E . c:\dist-osx\

@kfranqueiro you are right. Far away from easy to distribute. Cannot zip and cannot add symlinks to git repo :/

Another option here is to use Docker with a named volume, which is essentially a shortcut for doing the whole packaging step in a linux VM. For an example, see https://github.com/toolness/walden-journal-extractor/commit/f5191c98ae420f2405024c96dfd43c1fd781c1cc.

Obviously it's still _far_ from ideal, though.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Bharwcb picture Bharwcb  路  5Comments

kdawg1406 picture kdawg1406  路  4Comments

caishengmao picture caishengmao  路  3Comments

Liam-Ryan picture Liam-Ryan  路  4Comments

29e7e280-0d1c-4bba-98fe-f7cd3ca7500a picture 29e7e280-0d1c-4bba-98fe-f7cd3ca7500a  路  4Comments