|
|
@@ -53,8 +53,10 @@ local _ARCH_PREFIX="${2}" |
|
|
|
local _MINGW_PREFIX="${3}-w64-mingw32" |
|
|
|
|
|
|
|
export PREFIX=${TARGETDIR}/carla-w${_ARCH_PREFIX} |
|
|
|
export PATH=/opt/mingw${_ARCH}/bin:${PREFIX}/bin/usr/sbin:/usr/bin:/sbin:/bin |
|
|
|
export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig |
|
|
|
export MSYS2_PREFIX="${TARGETDIR}/msys2-${CPUARCH}/mingw${ARCH}" |
|
|
|
|
|
|
|
export PATH=${PREFIX}/bin:/usr/sbin:/usr/bin:/sbin:/bin |
|
|
|
export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig:${MSYS2_PREFIX}/lib/pkgconfig |
|
|
|
|
|
|
|
export AR=${_MINGW_PREFIX}-ar |
|
|
|
export CC=${_MINGW_PREFIX}-gcc |
|
|
@@ -63,15 +65,9 @@ export STRIP=${_MINGW_PREFIX}-strip |
|
|
|
export WINDRES=${_MINGW_PREFIX}-windres |
|
|
|
|
|
|
|
export CFLAGS="-DPTW32_STATIC_LIB -DFLUIDSYNTH_NOT_A_DLL" |
|
|
|
export CFLAGS="${CFLAGS} -I${PREFIX}/include -I/opt/mingw${_ARCH}/include -I/opt/mingw${_ARCH}/${_MINGW_PREFIX}/include" |
|
|
|
|
|
|
|
if [ x"${ARCH}" != x"32" ]; then |
|
|
|
export CFLAGS="${CFLAGS} -mtune=generic -msse -msse2" |
|
|
|
fi |
|
|
|
|
|
|
|
export CFLAGS="${CFLAGS} -I${PREFIX}/include" |
|
|
|
export CXXFLAGS="${CFLAGS}" |
|
|
|
export LDFLAGS="-L${PREFIX}/lib -L/opt/mingw${_ARCH}/lib -L/opt/mingw${_ARCH}/${_MINGW_PREFIX}/lib" |
|
|
|
|
|
|
|
export LDFLAGS="-L${PREFIX}/lib" |
|
|
|
} |
|
|
|
|
|
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
@@ -79,15 +75,11 @@ export LDFLAGS="-L${PREFIX}/lib -L/opt/mingw${_ARCH}/lib -L/opt/mingw${_ARCH}/${ |
|
|
|
export_vars "${ARCH}" "${ARCH_PREFIX}" "${CPUARCH}" |
|
|
|
|
|
|
|
export WINEARCH=win${ARCH} |
|
|
|
export WINEDEBUG=-all |
|
|
|
# export WINEDEBUG=-all |
|
|
|
export WINEPREFIX=~/.winepy3_x${ARCH} |
|
|
|
export PYTHON_EXE="wine C:\\\\Python34\\\\python.exe" |
|
|
|
|
|
|
|
export CXFREEZE="$PYTHON_EXE C:\\\\Python34\\\\Scripts\\\\cxfreeze" |
|
|
|
export PYUIC="$PYTHON_EXE -m PyQt5.uic.pyuic" |
|
|
|
export PYRCC="wine C:\\\\Python34\\\\Lib\\\\site-packages\\\\PyQt5\\\\pyrcc5.exe" |
|
|
|
|
|
|
|
export PYTHONPATH=$(pwd)/source/frontend |
|
|
|
export PYTHON_EXE="wine ${MSYS2_PREFIX}/bin/python.exe" |
|
|
|
export CXFREEZE="$PYTHON_EXE ${MSYS2_PREFIX}/bin/cxfreeze" |
|
|
|
export PYTHONPATH="$(pwd)/source/frontend" # ;${MSYS2_PREFIX}/lib/python3.7 |
|
|
|
|
|
|
|
rm -rf ./data/windows/Carla ./data/windows/Carla.lv2 ./data/windows/Carla.vst |
|
|
|
mkdir -p ./data/windows/Carla/Debug |
|
|
@@ -101,10 +93,15 @@ cd data/windows/ |
|
|
|
|
|
|
|
rm -rf dist |
|
|
|
$CXFREEZE ../../bin/resources/bigmeter-ui |
|
|
|
mv dist/lib/library.zip dist/lib/library-bigmeter.zip |
|
|
|
$CXFREEZE ../../bin/resources/midipattern-ui |
|
|
|
mv dist/lib/library.zip dist/lib/library-midipattern.zip |
|
|
|
$CXFREEZE ../../bin/resources/notes-ui |
|
|
|
mv dist/lib/library.zip dist/lib/library-notes.zip |
|
|
|
$CXFREEZE ../../bin/resources/carla-plugin |
|
|
|
mv dist/lib/library.zip dist/lib/library-carla1.zip |
|
|
|
$CXFREEZE ../../bin/resources/carla-plugin-patchbay |
|
|
|
mv dist/lib/library.zip dist/lib/library-carla2.zip |
|
|
|
|
|
|
|
cp ../../bin/*.dll Carla/ |
|
|
|
cp ../../bin/*.exe Carla/ |
|
|
@@ -112,29 +109,41 @@ rm Carla/carla-discovery-native.exe |
|
|
|
rm Carla/carla-lv2-export.exe |
|
|
|
rm Carla/carla-native-plugin.exe |
|
|
|
|
|
|
|
rm -f Carla/PyQt5.Qsci.pyd Carla/PyQt5.QtNetwork.pyd Carla/PyQt5.QtSql.pyd Carla/PyQt5.QtTest.pyd Carla/PyQt5.QtXml.pyd |
|
|
|
rm -f dist/PyQt5.Qsci.pyd dist/PyQt5.QtNetwork.pyd dist/PyQt5.QtSql.pyd dist/PyQt5.QtTest.pyd dist/PyQt5.QtXml.pyd |
|
|
|
# rm -f Carla/PyQt5.Qsci.pyd Carla/PyQt5.QtNetwork.pyd Carla/PyQt5.QtSql.pyd Carla/PyQt5.QtTest.pyd Carla/PyQt5.QtXml.pyd |
|
|
|
# rm -f dist/PyQt5.Qsci.pyd dist/PyQt5.QtNetwork.pyd dist/PyQt5.QtSql.pyd dist/PyQt5.QtTest.pyd dist/PyQt5.QtXml.pyd |
|
|
|
|
|
|
|
cp $WINEPREFIX/drive_c/Python34/python34.dll Carla/ |
|
|
|
cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/icu*.dll Carla/ |
|
|
|
cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/libEGL.dll Carla/ |
|
|
|
cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/libGLESv2.dll Carla/ |
|
|
|
cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/Qt5Core.dll Carla/ |
|
|
|
cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/Qt5Gui.dll Carla/ |
|
|
|
cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/Qt5Widgets.dll Carla/ |
|
|
|
cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/Qt5OpenGL.dll Carla/ |
|
|
|
cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/Qt5Svg.dll Carla/ |
|
|
|
# cp $WINEPREFIX/drive_c/Python34/python34.dll Carla/ |
|
|
|
# cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/icu*.dll Carla/ |
|
|
|
# cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/libEGL.dll Carla/ |
|
|
|
# cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/libGLESv2.dll Carla/ |
|
|
|
# cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/Qt5Core.dll Carla/ |
|
|
|
# cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/Qt5Gui.dll Carla/ |
|
|
|
# cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/Qt5Widgets.dll Carla/ |
|
|
|
# cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/Qt5OpenGL.dll Carla/ |
|
|
|
# cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/Qt5Svg.dll Carla/ |
|
|
|
|
|
|
|
mv dist Carla/resources |
|
|
|
cp $WINEPREFIX/drive_c/Python34/python34.dll Carla/resources/ |
|
|
|
cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/icu*.dll Carla/resources/ |
|
|
|
cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/libEGL.dll Carla/resources/ |
|
|
|
cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/libGLESv2.dll Carla/resources/ |
|
|
|
cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/Qt5Core.dll Carla/resources/ |
|
|
|
cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/Qt5Gui.dll Carla/resources/ |
|
|
|
cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/Qt5Widgets.dll Carla/resources/ |
|
|
|
cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/Qt5OpenGL.dll Carla/resources/ |
|
|
|
cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/Qt5Svg.dll Carla/resources/ |
|
|
|
mkdir Carla/resources/lib/_tmp |
|
|
|
pushd Carla/resources/lib/_tmp |
|
|
|
unzip -o ../library-bigmeter.zip |
|
|
|
unzip -o ../library-midipattern.zip |
|
|
|
unzip -o ../library-notes.zip |
|
|
|
unzip -o ../library-carla1.zip |
|
|
|
unzip -o ../library-carla2.zip |
|
|
|
zip -r -9 ../library.zip *.pyc |
|
|
|
popd |
|
|
|
rm -r Carla/resources/lib/_tmp |
|
|
|
rm Carla/resources/lib/library-*.zip |
|
|
|
|
|
|
|
# cp $WINEPREFIX/drive_c/Python34/python34.dll Carla/resources/ |
|
|
|
# cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/icu*.dll Carla/resources/ |
|
|
|
# cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/libEGL.dll Carla/resources/ |
|
|
|
# cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/libGLESv2.dll Carla/resources/ |
|
|
|
# cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/Qt5Core.dll Carla/resources/ |
|
|
|
# cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/Qt5Gui.dll Carla/resources/ |
|
|
|
# cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/Qt5Widgets.dll Carla/resources/ |
|
|
|
# cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/Qt5OpenGL.dll Carla/resources/ |
|
|
|
# cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/Qt5Svg.dll Carla/resources/ |
|
|
|
|
|
|
|
mkdir Carla.lv2 |
|
|
|
cp Carla/*.exe Carla.lv2/ |
|
|
@@ -173,19 +182,11 @@ chmod +x Carla.exe |
|
|
|
# Cleanup |
|
|
|
rm -f Carla.zip CarlaControl.zip |
|
|
|
|
|
|
|
if [ x"${ARCH}" = x"32" ]; then |
|
|
|
VCARCH="86" |
|
|
|
else |
|
|
|
VCARCH="${ARCH}" |
|
|
|
fi |
|
|
|
|
|
|
|
# Create release zip |
|
|
|
rm -rf ${PKG_FOLDER} |
|
|
|
mkdir ${PKG_FOLDER} |
|
|
|
mkdir ${PKG_FOLDER}/vcredist |
|
|
|
cp -r Carla.exe Carla.lv2 Carla.vst README.txt ${PKG_FOLDER} |
|
|
|
unix2dos ${PKG_FOLDER}/README.txt |
|
|
|
cp ~/.cache/winetricks/vcrun2010/vcredist_x${VCARCH}.exe ${PKG_FOLDER}/vcredist |
|
|
|
zip -r -9 ${PKG_FOLDER}.zip ${PKG_FOLDER} |
|
|
|
|
|
|
|
cd ../.. |