Skip to content

Commit

Permalink
windows release fix
Browse files Browse the repository at this point in the history
not sure how could this work before, but we need to copy version.txt to
huggle_core before initiating build since that's where it's going to
look for it

with this change it seems to be possible to build the release package
even under much newer VS 2017, although we need to target even newer VS
2022 in the future (there is no support for Qt5, only Qt6 from that one
onwards though)
  • Loading branch information
benapetr committed Mar 28, 2024
1 parent 47629f9 commit 7561af8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions windows/release.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ if ($git_enabled -and (Test-Path("..\.git")))
{
echo "build: non-git build (windows)" > version.txt
}

cp version.txt huggle_core\

if (!(Test-Path("huggle_core\definitions.hpp")))
{
cp "huggle_core\definitions_prod.hpp" "huggle_core\definitions.hpp"
Expand Down

0 comments on commit 7561af8

Please sign in to comment.