Skip to content

Conversation

@Doy-lee
Copy link
Contributor

@Doy-lee Doy-lee commented Oct 27, 2025

This removes the extra sh update_version.sh script from needing to be called by the user which means that to get started on the project you just need to yarn install, without it the build complains about a missing src/version.h.

The version file is automatically built on the configuration step. The project automatically invokes the configuration step when you build via yarn install (this is suboptimal but it's fine to reconfigure every time for a small project) so the version file is always regenerated.

@Doy-lee Doy-lee force-pushed the cmake-make-version-file branch from 17d941c to 2f80029 Compare October 27, 2025 04:09
```
~/Cloud/Code/libsession-util-nodejs$ ./prepare_release.sh
Package: 0.5.9; Commit: fe47f7e228a4affc77bf0729f40df408b4f3d8c2
Error: Version mismatch! package.json version is 0.5.9, but src/version.h has 0.5.10. Build the project first before packaging 'yarn install'

~/Cloud/Code/libsession-util-nodejs$ ./prepare_release.sh
Package: 0.5.9; Commit: fe47f7e228a4affc77bf0729f40df408b4f3d8c2
Error: Version mismatch! Git commit is fe47f7e228a4affc77bf0729f40df408b4f3d8c2, but src/version.h has ee47f7e228a4affc77bf0729f40df408b4f3d8c2. Build the project first before packaging 'yarn install'
```
@Bilb Bilb merged commit ea13c80 into session-foundation:main Oct 28, 2025
4 checks passed
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.

2 participants