mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 20:13:36 +00:00
Updated Windows build scripts.
This commit is contained in:
parent
5bad7b59f4
commit
697e27d2e3
@ -3,10 +3,14 @@
|
||||
VERSION=$1
|
||||
|
||||
if [ -z "$VERSION" ]; then
|
||||
echo "usage: ./archive-win32.sh <version>"
|
||||
echo "usage: ./archive-win.sh <version>"
|
||||
exit
|
||||
fi
|
||||
|
||||
#
|
||||
# 32-bit
|
||||
#
|
||||
|
||||
VANILLA="dist/musikcube_win32_$VERSION"
|
||||
MILKDROP="dist/musikcube_win32_with_milkdrop2_$VERSION"
|
||||
|
||||
@ -35,7 +39,7 @@ mkdir -p "$MILKDROP/themes"
|
||||
mkdir -p "$MILKDROP/locales"
|
||||
mkdir -p "$MILKDROP/fonts"
|
||||
cp bin32/release/musikcube.exe "$MILKDROP"
|
||||
cp bin32/release-con/musikcube.exe "$VANILLA/musikcube-cmd.exe"
|
||||
cp bin32/release-con/musikcube.exe "$MILKDROP/musikcube-cmd.exe"
|
||||
cp bin32/release/*.dll "$MILKDROP"
|
||||
cp bin32/release/plugins/*.dll "$MILKDROP/plugins"
|
||||
cp bin32/release/themes/*.json "$MILKDROP/themes"
|
||||
@ -46,3 +50,27 @@ pushd $MILKDROP
|
||||
7z a -tzip "musikcube_win32_with_milkdrop2_$VERSION.zip" ./* -mx=9
|
||||
mv "musikcube_win32_with_milkdrop2_$VERSION.zip" ..
|
||||
popd
|
||||
|
||||
#
|
||||
# 64-bit
|
||||
#
|
||||
|
||||
VANILLA="dist/musikcube_win64_$VERSION"
|
||||
|
||||
rm -rf "$VANILLA"
|
||||
|
||||
mkdir -p "$VANILLA/plugins"
|
||||
mkdir -p "$VANILLA/themes"
|
||||
mkdir -p "$VANILLA/locales"
|
||||
mkdir -p "$VANILLA/fonts"
|
||||
cp bin64/release/musikcube.exe "$VANILLA"
|
||||
cp bin64/release-con/musikcube.exe "$VANILLA/musikcube-cmd.exe"
|
||||
cp bin64/release/*.dll "$VANILLA"
|
||||
cp bin64/release/plugins/*.dll "$VANILLA/plugins"
|
||||
cp bin64/release/themes/*.json "$VANILLA/themes"
|
||||
cp bin64/release/locales/*.json "$VANILLA/locales"
|
||||
cp bin64/release/fonts/*.ttf "$VANILLA/fonts"
|
||||
pushd $VANILLA
|
||||
7z a -tzip "musikcube_win64_$VERSION.zip" ./* -mx=9
|
||||
mv "musikcube_win64_$VERSION.zip" ..
|
||||
popd
|
@ -1,28 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
VERSION=$1
|
||||
|
||||
if [ -z "$VERSION" ]; then
|
||||
echo "usage: ./archive-win64.sh <version>"
|
||||
exit
|
||||
fi
|
||||
|
||||
VANILLA="dist/musikcube_win64_$VERSION"
|
||||
|
||||
rm -rf "$VANILLA"
|
||||
|
||||
mkdir -p "$VANILLA/plugins"
|
||||
mkdir -p "$VANILLA/themes"
|
||||
mkdir -p "$VANILLA/locales"
|
||||
mkdir -p "$VANILLA/fonts"
|
||||
cp bin64/release/musikcube.exe "$VANILLA"
|
||||
cp bin64/release-con/musikcube.exe "$VANILLA/musikcube-cmd.exe"
|
||||
cp bin64/release/*.dll "$VANILLA"
|
||||
cp bin64/release/plugins/*.dll "$VANILLA/plugins"
|
||||
cp bin64/release/themes/*.json "$VANILLA/themes"
|
||||
cp bin64/release/locales/*.json "$VANILLA/locales"
|
||||
cp bin64/release/fonts/*.ttf "$VANILLA/fonts"
|
||||
pushd $VANILLA
|
||||
7z a -tzip "musikcube_win64_$VERSION.zip" ./* -mx=9
|
||||
mv "musikcube_win64_$VERSION.zip" ..
|
||||
popd
|
9
build-win.bat
Normal file
9
build-win.bat
Normal file
@ -0,0 +1,9 @@
|
||||
rd /s /q bin32\Release
|
||||
rd /s /q bin32\Release-Con
|
||||
rd /s /q bin64\Release
|
||||
rd /s /q bin64\Release-Con
|
||||
MSBuild.exe ../milkdrop2-musikcube/milkdrop2-musikcube.sln /m /nologo /verbosity:minimal /p:Configuration=Release /p:Platform=Win32
|
||||
MSBuild.exe musikcube.sln /m /nologo /verbosity:minimal /p:Configuration=Release-Win /p:Platform=Win32
|
||||
MSBuild.exe musikcube.sln /m /nologo /verbosity:minimal /p:Configuration=Release-Con /p:Platform=Win32
|
||||
MSBuild.exe musikcube.sln /m /nologo /verbosity:minimal /p:Configuration=Release-Win /p:Platform=Win64
|
||||
MSBuild.exe musikcube.sln /m /nologo /verbosity:minimal /p:Configuration=Release-Con /p:Platform=Win64
|
Loading…
Reference in New Issue
Block a user