Skip to content

Conversation

@josh-unwin
Copy link

@josh-unwin josh-unwin commented Nov 5, 2024

I have had trouble setting up my dev environment to correctly build the vpk CLI to test this change works.

Added a prefix of export VELOPACK_FIRSTRUN=1 to the initial run of the installed app triggered in the postinstall script.
In theory, this should be available to Velopack to detect first run.

Closes #167

@caesay
Copy link
Member

caesay commented Nov 6, 2024

Thanks! I'll test this shortly but it looks great.

@josh-unwin
Copy link
Author

Thanks! I'll test this shortly but it looks great.

Brilliant thanks, looking forward to it getting released once we know it works :)
Realised I forgot to add a closing tag to your issue but looks like you added it, thanks for that.

@caesay
Copy link
Member

caesay commented Nov 7, 2024

Your change did not work as intended, the app just failed to start. I have fixed this and merged. Thanks for getting the ball rolling on this in any case!

@caesay caesay merged commit cd7761b into velopack:develop Nov 7, 2024
@josh-unwin
Copy link
Author

Thank you @caesay, apologies I wasn't able to validate it, spent hours trying to get my local environment setup to run it and gave up.
Interesting your change fixed it, and thanks for picking it up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WithFirstRun hook not working on OSX

3 participants