Browse Source

Rework how wine is handled

Signed-off-by: falkTX <falktx@falktx.com>
pull/19/head
falkTX 3 years ago
parent
commit
05be6301ed
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
6 changed files with 22 additions and 15 deletions
  1. +2
    -2
      bootstrap-carla.sh
  2. +3
    -3
      bootstrap-plugins.sh
  3. +2
    -2
      build-plugins.sh
  4. +3
    -4
      pack-jack2.sh
  5. +3
    -3
      pack-plugins.sh
  6. +9
    -1
      setup/env.sh

+ 2
- 2
bootstrap-carla.sh View File

@@ -207,8 +207,8 @@ fi
# ---------------------------------------------------------------------------------------------------------------------
# wine bootstrap for python (needed for cross-compilation)

if [ "${WIN32}" -eq 1 ] && [ -n "${EXE_WRAPPER}" ]; then
env WINEARCH="${PAWPAW_TARGET}" WINEDLLOVERRIDES="mscoree,mshtml=" wineboot -u
if [ "${WIN32}" -eq 1 ] && [ -n "${EXE_WRAPPER}" ] && [ ! -d "${WINEPREFIX}" ]; then
wineboot -u
fi

# ---------------------------------------------------------------------------------------------------------------------


+ 3
- 3
bootstrap-plugins.sh View File

@@ -243,10 +243,10 @@ download carla ${CARLA_VERSION} "https://github.com/falkTX/Carla.git" "" "git"
build_make carla ${CARLA_VERSION} "${CARLA_EXTRAFLAGS}"

# ---------------------------------------------------------------------------------------------------------------------
# wine bootstrap for python (needed for cross-compilation)
# wine bootstrap (needed for cross-compilation)

if [ "${WIN32}" -eq 1 ] && [ -n "${EXE_WRAPPER}" ]; then
env WINEARCH="${PAWPAW_TARGET}" WINEDLLOVERRIDES="mscoree,mshtml=" wineboot -u
if [ "${WIN32}" -eq 1 ] && [ -n "${EXE_WRAPPER}" ] && [ ! -d "${WINEPREFIX}" ]; then
wineboot -u
fi

# ---------------------------------------------------------------------------------------------------------------------

+ 2
- 2
build-plugins.sh View File

@@ -29,8 +29,8 @@ source setup/versions.sh

LV2DIR="${PAWPAW_PREFIX}/lib/lv2"

if [ "${WIN32}" -eq 1 ] && [ ! -d "${HOME}/.wine" ]; then
env WINEARCH="${PAWPAW_TARGET}" WINEDLLOVERRIDES="mscoree,mshtml=" wineboot -u
if [ "${WIN32}" -eq 1 ] && [ -n "${EXE_WRAPPER}" ] && [ ! -d "${WINEPREFIX}" ]; then
wineboot -u
fi

function validate_lv2_bundles() {


+ 3
- 4
pack-jack2.sh View File

@@ -49,7 +49,6 @@ if [ "${WIN32}" -eq 1 ]; then
dlfile="${PAWPAW_DOWNLOADDIR}/innosetup-6.0.5.exe"
innodir="${PAWPAW_BUILDDIR}/innosetup-6.0.5"
iscc="${innodir}/drive_c/InnoSeup/ISCC.exe"
wine="env WINEARCH="${PAWPAW_TARGET}" WINEDLLOVERRIDES="mscoree,mshtml=" WINEPREFIX="${innodir}" wine"

# download it
if [ ! -f "${dlfile}" ]; then
@@ -59,12 +58,12 @@ if [ "${WIN32}" -eq 1 ]; then

# initialize wine
if [ ! -d "${innodir}"/drive_c ]; then
${wine}boot -u
env WINEPREFIX="${innodir}" wineboot -u
fi

# install innosetup in custom wineprefix
if [ ! -f "${innodir}"/drive_c/InnoSeup/ISCC.exe ]; then
${wine} "${dlfile}" /allusers /dir=C:\\InnoSeup /nocancel /norestart /verysilent
env WINEPREFIX="${innodir}" wine "${dlfile}" /allusers /dir=C:\\InnoSeup /nocancel /norestart /verysilent
fi

# copy jackrouter binaries
@@ -84,7 +83,7 @@ if [ "${WIN32}" -eq 1 ]; then
ln -sf "${PAWPAW_PREFIX}/bin/Qt5"{Core,Gui,Network,Widgets,Xml}".dll" .
ln -sf "${PAWPAW_PREFIX}/lib/qt5/plugins/platforms/qwindows.dll" .
ln -sf "${jack2_prefix}" "${PAWPAW_TARGET}"
${wine} "${iscc}" "${PAWPAW_TARGET}.iss"
env WINEPREFIX="${innodir}" wine "${iscc}" "${PAWPAW_TARGET}.iss"
popd

# and move installer file where CI expects it to be


+ 3
- 3
pack-plugins.sh View File

@@ -35,11 +35,11 @@ function download_and_install_innosetup {
fi

if [ ! -d "${pkgdir}"/drive_c ]; then
env WINEARCH="${PAWPAW_TARGET}" WINEDLLOVERRIDES="mscoree,mshtml=" WINEPREFIX="${pkgdir}" wineboot -u
env WINEPREFIX="${pkgdir}" wineboot -u
fi

if [ ! -f "${pkgdir}"/drive_c/InnoSeup/ISCC.exe ]; then
env WINEARCH="${PAWPAW_TARGET}" WINEPREFIX="${pkgdir}" wine "${dlfile}" /allusers /dir=C:\\InnoSeup /nocancel /norestart /verysilent
env WINEPREFIX="${pkgdir}" wine "${dlfile}" /allusers /dir=C:\\InnoSeup /nocancel /norestart /verysilent
fi
}

@@ -48,7 +48,7 @@ function create_innosetup_exe {
local iscc="${pkgdir}/drive_c/InnoSeup/ISCC.exe"

echo "#define VERSION \"${VERSION}\"" > /tmp/pawpaw/version.iss
env WINEARCH="${PAWPAW_TARGET}" WINEPREFIX="${pkgdir}" wine "${iscc}" "setup/inno/${PAWPAW_TARGET}.iss"
env WINEPREFIX="${pkgdir}" wine "${iscc}" "setup/inno/${PAWPAW_TARGET}.iss"
}

# ---------------------------------------------------------------------------------------------------------------------


+ 9
- 1
setup/env.sh View File

@@ -145,6 +145,9 @@ TARGET_PKG_CONFIG_PATH="${PAWPAW_PREFIX}/lib/pkgconfig"
MAKE_ARGS=""
WAF_ARGS=""
unset EXE_WRAPPER
unset WINEARCH
unset WINEDLLOVERRIDES
unset WINEPREFIX

if which nproc > /dev/null; then
MAKE_ARGS+="-j $(nproc)"
@@ -156,6 +159,12 @@ fi

if [ "${CROSS_COMPILING}" -eq 1 ]; then
MAKE_ARGS+=" CROSS_COMPILING=true"
if [ "${WIN32}" -eq 1 ]; then
export EXE_WRAPPER="wine"
export WINEARCH="${PAWPAW_TARGET}"
export WINEDLLOVERRIDES="mscoree,mshtml="
export WINEPREFIX="${PAWPAW_PREFIX}/wine"
fi
fi

if [ "${MACOS}" -eq 1 ]; then
@@ -170,7 +179,6 @@ elif [ "${WIN32}" -eq 1 ]; then
if [ "${WIN64}" -eq 1 ]; then
MAKE_ARGS+=" WIN64=true"
fi
export EXE_WRAPPER="wine"
fi

# ---------------------------------------------------------------------------------------------------------------------

Loading…
Cancel
Save