mirror of
https://github.com/citra-emu/citra.git
synced 2024-12-19 03:01:06 +00:00
3b6ffd9c27
* Improve directory creation in WindowsCopyFiles.cmake * Release msvc compiled binaries as an alternative to mingw releases * msvc: do not ship .pdb files * msvc: Copy necessary files to the release * windows-msvc: enable compatibility reporting translation was disabled because the bundled qt doesn't have the necessary component Co-authored-by: Michał Janiszewski <janisozaur@users.noreply.github.com>
42 lines
1.2 KiB
PowerShell
42 lines
1.2 KiB
PowerShell
|
|
$GITDATE = $(git show -s --date=short --format='%ad') -replace "-", ""
|
|
$GITREV = $(git show -s --format='%h')
|
|
|
|
# Find out what release we are building
|
|
if ( $GIT_TAG_NAME ) {
|
|
$RELEASE_NAME = ${GIT_TAG_NAME}.split("-")[0]
|
|
$RELEASE_NAME = "${RELEASE_NAME}-msvc"
|
|
}
|
|
else {
|
|
$RELEASE_NAME = "head"
|
|
}
|
|
|
|
$MSVC_BUILD_ZIP = "citra-windows-msvc-$GITDATE-$GITREV.zip" -replace " ", ""
|
|
$MSVC_SEVENZIP = "citra-windows-msvc-$GITDATE-$GITREV.7z" -replace " ", ""
|
|
|
|
$BUILD_DIR = ".\build\bin\Release"
|
|
|
|
# Create artifact directories
|
|
mkdir $RELEASE_NAME
|
|
mkdir "artifacts"
|
|
|
|
echo "Starting to pack ${RELEASE_NAME}"
|
|
|
|
Copy-Item $BUILD_DIR\* -Destination $RELEASE_NAME -Recurse
|
|
Remove-Item $RELEASE_NAME\tests.* -ErrorAction ignore
|
|
Remove-Item $RELEASE_NAME\*.pdb -ErrorAction ignore
|
|
|
|
# Copy documentation
|
|
Copy-Item license.txt -Destination $RELEASE_NAME
|
|
Copy-Item README.md -Destination $RELEASE_NAME
|
|
|
|
# Copy cross-platform scripting support
|
|
Copy-Item dist\scripting -Destination $RELEASE_NAME -Recurse
|
|
|
|
# Build the final release artifacts
|
|
7z a -tzip $MSVC_BUILD_ZIP $RELEASE_NAME\*
|
|
7z a $MSVC_SEVENZIP $RELEASE_NAME
|
|
|
|
Copy-Item $MSVC_BUILD_ZIP -Destination "artifacts"
|
|
Copy-Item $MSVC_SEVENZIP -Destination "artifacts"
|