mobox icon indicating copy to clipboard operation
mobox copied to clipboard

Add winetricks

Open Asuka-pr8 opened this issue 1 year ago • 9 comments

I think it will be easier for users to be able to use winetricks to get stuff like fonts or video codecs.

Thanks for your hard work I really like the project so far.

Asuka-pr8 avatar Jan 15 '24 07:01 Asuka-pr8

+1 to this. I think winetricks was very useful to install fonts when using other locales. In the meanwhile, im wondering if is there a way to do this (install fonts or packages) manually?

pikatwinky avatar Jan 20 '24 20:01 pikatwinky

+1 Need winetricks for installing dotnet packages for some apps

Toni500github avatar Jan 24 '24 11:01 Toni500github

I got it working on my android.

First, you need some prerequisites:

export GLIBC_BIN=$PREFIX/glibc/bin
pkg install cabextract unzip p7zip which

# download bash for x86
wget https://github.com/ptitSeb/box64/raw/main/tests/bash
mv bash $GLIBC_BIN/bash86
chmod +x $GLIBC_BIN/bash86

# download winetricks
wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
mv winetricks $GLIBC_BIN/winetricks
chmod +x $GLIBC_BIN/winetricks

When you have all this, you can run winetricks like so:

LD_PRELOAD= WINESERVER=$PREFIX/glibc/bin/wineserver WINE=$PREFIX/glibc/bin/wine64 $PREFIX/glibc/bin/box64 $PREFIX/glibc/bin/bash86 $PREFIX/glibc/bin/winetricks

screeny05 avatar Jan 25 '24 15:01 screeny05

I got it working on my android.

First, you need some prerequisites:

export GLIBC_BIN=$PREFIX/glibc/bin
pkg install cabextract unzip p7zip which

# download bash for x86
wget https://github.com/ptitSeb/box64/raw/main/tests/bash
mv bash $GLIBC_BIN/bash86
chmod +x $GLIBC_BIN/bash86

# download winetricks
wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
mv winetricks $GLIBC_BIN/winetricks
chmod +x $GLIBC_BIN/winetricks

When you have all this, you can run winetricks like so:

LD_PRELOAD= WINESERVER=$PREFIX/glibc/bin/wineserver WINE=$PREFIX/glibc/bin/wine64 $PREFIX/glibc/bin/box64 $PREFIX/glibc/bin/bash86 $PREFIX/glibc/bin/winetricks

Thanks it works, but only if I run with --help arg. Is it supposed to be so slow or hagging there at first?

$ LD_PRELOAD= WINESERVER=$PREFIX/glibc/bin/wineserver WINE=$PREFIX/glibc/bin/wine64 $PREFIX/glibc/bin/box64 $PREFIX/glibc/bin/bash86 $PREFIX/glibc/bin/winetricks
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL PageSize:4096 Running on Kryo-V2 Cortex-A73 with 8 Cores
Params database has 40 entries
Box64 with Dynarec v0.2.5  built on Nov 10 2023 14:30:39
Counted 43 Env var
BOX64 LIB PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/:/data/data/com.termux/files/usr/glibc/lib/x86_64-linux-gnu/
BOX64 BIN PATH: ./:bin/:/data/data/com.termux/files/usr/bin/:/data/data/com.termux/files/home/.local/bin/:/data/data/com.termux/files/usr/bin/
Looking for /data/data/com.termux/files/usr/glibc/bin/bash86
argv[1]="/data/data/com.termux/files/usr/glibc/bin/winetricks"
Rename process to "bash86"
Using native(wrapped) libtinfo.so.6
Using native(wrapped) libdl.so.2
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux-x86-64.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) libutil.so.1
Using native(wrapped) librt.so.1

Toni500github avatar Jan 25 '24 19:01 Toni500github

Yeah, it's not the fastest. But installing directplay worked for me.

screeny05 avatar Jan 26 '24 08:01 screeny05

@screeny05 I end up to get this error

wine: could not load kernel32.dll, status c0000135

Toni500github avatar Jan 27 '24 06:01 Toni500github

I'm sorry, i'm no wine-magician. Maybe someone more experienced than me can help here?

screeny05 avatar Jan 29 '24 16:01 screeny05

I got it working on my android.

First, you need some prerequisites:

export GLIBC_BIN=$PREFIX/glibc/bin
pkg install cabextract unzip p7zip which

# download bash for x86
wget https://github.com/ptitSeb/box64/raw/main/tests/bash
mv bash $GLIBC_BIN/bash86
chmod +x $GLIBC_BIN/bash86

# download winetricks
wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
mv winetricks $GLIBC_BIN/winetricks
chmod +x $GLIBC_BIN/winetricks

When you have all this, you can run winetricks like so:

LD_PRELOAD= WINESERVER=$PREFIX/glibc/bin/wineserver WINE=$PREFIX/glibc/bin/wine64 $PREFIX/glibc/bin/box64 $PREFIX/glibc/bin/bash86 $PREFIX/glibc/bin/winetricks

so what should i do to install dll,i am sorry to trouble you but i tried it for several days. @screeny05

sdtthdsr7u avatar May 15 '24 12:05 sdtthdsr7u

As of 20241202, this modded script worked (for wow64 version):

export GLIBC_BIN=$PREFIX/glibc/bin
pkg install cabextract unzip p7zip which

# download bash for x86
wget https://github.com/ptitSeb/box64/raw/main/tests/box64-bash
mv bash $GLIBC_BIN/box64-bash
chmod +x $GLIBC_BIN/box64-bash

# download winetricks
wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
mv winetricks $GLIBC_BIN/winetricks
chmod +x $GLIBC_BIN/winetricks
LD_PRELOAD= WINESERVER=$PREFIX/glibc/bin/wineserver WINE=$PREFIX/glibc/bin/wine64 $PREFIX/glibc/bin/box64 $PREFIX/glibc/bin/box64-bash $PREFIX/glibc/bin/winetricks

Note because most winetricks needs GUI, so you may also need to execute export DISPLAY=:0 beforehand

NyaMisty avatar Dec 02 '24 04:12 NyaMisty