Rename calculated VERSION.txt in BINARY_DIR

Otherwise if BINDIR == SRCDIR this would overwrite
the original VERSION.txt.
This commit is contained in:
Christian Hohnstaedt 2023-10-01 12:40:09 +02:00
parent de3de97454
commit 6dd1ceb7f3
3 changed files with 6 additions and 3 deletions

View File

@ -19,7 +19,7 @@ include(GNUInstallDirs)
##### Git command to tweak the version and commit hash
include(cmake/git_version.cmake)
file(WRITE ${PROJECT_BINARY_DIR}/VERSION.txt ${PROJECT_VERSION}\n)
file(WRITE ${PROJECT_BINARY_DIR}/PKGVERSION.txt ${PROJECT_VERSION}\n)
##### Build specifications

View File

@ -103,7 +103,7 @@ cmake -B "$BUILDDIR_APPSTORE" "$XCA_DIR" \
-DAPPSTORE_COMPLIANT=ON \
-DPROVISIONPROFILE="$TOP_DIR/XCA_AppStore_Provisioning.provisionprofile"
read xca_version < "$XCA_DIR"/VERSION.txt
read xca_version < "$BUILDDIR_APPSTORE"/PKGVERSION.txt
cmake --build "$BUILDDIR_APPSTORE" -j$JOBS
productbuild --component "$BUILDDIR_APPSTORE/xca.app" /Applications \
--sign "3rd Party Mac Developer Installer" xca-${xca_version}-appstore.pkg
--sign "3rd Party Mac Developer Installer" "$BUILDDIR_APPSTORE/xca-${xca_version}-appstore.pkg"

View File

@ -27,6 +27,9 @@ xcrun stapler staple "$DMG"
Microsoft Store
-----------------
OpenSSL:
./Configure mingw64 --prefix=/c/OpenSSL --libdir=lib
https://partner.microsoft.com ("Partner Center")
MSIX Packaging Tool