mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
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:
+13
-2
@@ -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/**
|
||||
|
||||
Reference in New Issue
Block a user