itchio / butler

🎩 Command-line itch.io helper
MIT License
744 stars 55 forks source link

`--dereference` does not work on Windows #255

Open strich opened 9 months ago

strich commented 9 months ago

We need to build our game against a lot of platforms and use symlinks to reduce the load and speed up build processes. I was glad to see --dereference exists. Unfortunately it does not work. :(

I tried using:

butler push --dereference --fix-permissions --if-changed

You get this error:

Invalid container, found the following problems:
Two entries have the same name:
drwxrwxrwx          - Data/StreamingAssets/AssetBundles/
drwxrwxrwx          - Data/StreamingAssets/AssetBundles/

On Windows you can make a symlink with:

mklink /J "dstpath" "srcpath"

A further note by the way - This whole error silently fails when trying to push on an existing channel. I had to make a new fresh channel to get the error and root problem.