PDXinfo version and build number resets upon build

,

I'm having a weird issue with the build and version number resetting every time I make a build of my project. Right now the current version is "alpha 0.1", if I set it to literally anything else it will always reset to "alpha 0.1" when I build the project. Same with build number, it always resets to 0.

Using Playdate SDK 3.0.1, developing in VS Code (with the Orta.playdate extension) on Mac. Never had this issue with my other Playdate projects.

I have switched machines since I last touched this project, but I can’t imagine what the cause could be. Perhaps it’s a bug.

Any ideas..?

@benjymous gave me the answer over on discord! I will copy paste his answer here, incase anyone else does the same mistake as me.

are you editing the pdxinfo file in your build folder, rather than the one in the source folder?

(On windows) I have my pdxinfo set as

...

version=$VERSION$ buildNumber=$BUIILDNUMBER$

...

in the pdxinfo, and a script that overwrites those with envvars set during my build when it copies it to the output pdx folder

Thank you benjymous for the quick answer!

2 Likes