Exporting as release package from Peek tools option results in error if canceled

Andrew Scott 1 year ago updated by Lazlo Bonin (Lead Developer) 1 year ago 3

Select tools->peek->internal->Export Release Package

It will say a message about deleting generated data do you wish to confirm, confirm this and a window will pop up, all you need do here is cancel that and the error will pop up in the console.

ArgumentException: Invalid path
System.IO.Path.GetDirectoryName (System.String path) (at <567df3e0919241ba98db88bec4c6696f>:0)
Ludiq.Peek.PeekProduct.ExportReleasePackage () (at Assets/Ludiq/Ludiq.Peek/Editor/Plugin/PeekProduct.cs:108)

Unity Version:
Peek Version:

Hi Andrew,

You should not use this function at all. It is under "Internal" because it's for the Ludiq team only. It's what we use when uploading the package to the Asset Store. It deletes all user data and settings and as such may corrupt things in your Peek installation.

Thankfully the error you experienced made it abort, I'll see about fixing it, but really you shouldn't click this. ;)

Fixed (Unreleased)

Hi Andrew,

So in 1.1.6 I fixed this error specifically, but I also added a special check so that all developer menu items are hidden unless Developer Mode is enabled in the settings. This kind of confusion shouldn't happen again!