Update CMakeLists.txt to allow for static compilation | Update Readme.md | Update package.ps1 (#74)

* Fix CMakeLists, Update Readme and package.ps1

Fixed CMakeLists to allow for static complilation/workaround for broken Hunspell Upped version number to 2.5.0

Updated Readme to include corrected compilation instructions for Visual Studio and Workarounds.

Updated package.ps1 to include the cli executable in the dist zips and upped the version number to 2.5.0

* Update README.md

* Update package.ps1

* Update package.ps1

* Update CHANGES.md

* Update preferences_window.cpp

* Update README.md
This commit is contained in:
BaconCatBug
2024-04-29 18:47:19 +01:00
committed by GitHub
parent ad6d40df4c
commit 862907cf5b
5 changed files with 99 additions and 70 deletions
+13 -2
View File
@@ -1,6 +1,15 @@
# Super basic build script for release versions.
# Note the hardcoded version numbers which don't read from CMakeLists at all.
# Set alias for 7zip
$7zipPath = "$env:ProgramFiles\7-Zip\7z.exe"
if (-not (Test-Path -Path $7zipPath -PathType Leaf)) {
throw "7 zip file '$7zipPath' not found"
}
Set-Alias 7z $7zipPath
# Cleanup and Recreate the working directories.
Remove-Item .\out\temp -Recurse
Remove-Item .\out\dist -Recurse
@@ -40,16 +49,18 @@ Copy-Item ./data/ko.mse-locale/ ./out/temp/data/ko.mse-locale/ -Force -Recurse
Copy-Item ./BUNDLED_README.txt ./out/temp/x64/README.txt -Force -Recurse
Copy-Item ./out/build/x64-Release-static/magicseteditor.com ./out/temp/x64/ -Force -Recurse
Copy-Item ./out/build/x64-Release-static/magicseteditor.exe ./out/temp/x64/ -Force -Recurse
Copy-Item ./out/build/x64-Release-static/magicseteditor-cli.exe ./out/temp/x64/ -Force -Recurse
#Copy-Item ./data/en.mse-locale/ ./out/temp/x64/data/en.mse-locale/ -Force -Recurse
Copy-Item ./out/temp/data/ ./out/temp/x64/data/ -Force -Recurse
7z a -tzip ./out/dist/MagicSetEditor-2.4.0-win64.zip ./out/temp/x64/**
7z a -tzip ./out/dist/MagicSetEditor-2.5.0-unofficial-win64.zip ./out/temp/x64/**
# Gather the relevant x86 files and Zip them.
Copy-Item ./BUNDLED_README.txt ./out/temp/x86/README.txt -Force -Recurse
Copy-Item ./out/build/x86-Release-static/magicseteditor.com ./out/temp/x86/ -Force -Recurse
Copy-Item ./out/build/x86-Release-static/magicseteditor.exe ./out/temp/x86/ -Force -Recurse
Copy-Item ./out/build/x86-Release-static/magicseteditor-cli.exe ./out/temp/x86/ -Force -Recurse
#Copy-Item ./data/en.mse-locale/ ./out/temp/x86/data/en.mse-locale/ -Force -Recurse
Copy-Item ./out/temp/data/ ./out/temp/x86/data/ -Force -Recurse
7z a -tzip ./out/dist/MagicSetEditor-2.4.0-win32.zip ./out/temp/x86/**
7z a -tzip ./out/dist/MagicSetEditor-2.5.0-unofficial-win32.zip ./out/temp/x86/**