Modifying caches in ExaGear
This page contains instructions for modifying and building caches (.obb files) in ExaGear Windows Emulator.
Modify caches without changing packages on PC(laptop), and mobile devices
To modify the archive with the cache without replacing the packages of the system itself (for example, adding some program for Wine), you can use Microsoft Windows, GNU/Linux or Android OS.
Download and open .obb file
Download any ExaGear Windows Emulator cache that you need to modify, then open the archive in any archiver (eg 7-Zip(Windows), Ark(Linux), ZArchiver, RAR(Android)) without unpacking it.
Adding files/programs and creating shortcuts to the Start Menu for Wine (/opt folder)
This part of the manual indicates the actions, after which, programs for Wine will be added to the cache, with the ability to run them in the Start menu. If you need to modify the file system, or add/remove packages, you can find instructions below.
After opening the archive, you will see the folders of the Linux file system (shown in the photo).
/opt contains files, programs that are in the Start menu (for example WineD3D), as well as Wine files (the files may be in other folders, for example guestcont-pattern). This section of the manual will cover the option of adding files and shortcuts to the Start menu.
The guestcont-pattern folder contains the C: drive, which is used by Wine, as well as the path to shortcuts, registry files, etc.
Copy the file/program for Wine you need to /opt, having previously created a folder in the /opt
directory itself (if you add many files of similar content, for example, different versions of WineD3D for Windows will be stored in the WineD3D folder).
Important! Know what you are doing before changing other folders and deleting files! Attempts to cut the cache "to the maximum" of files can lead to the so-called "break" of the cache and its inoperability.
Create shortcuts, check cache
After adding / deleting the necessary files or other cache modifications, you need to make shortcuts for later adding them to the Start menu.
Save the archive to main.30.com.eltechs.ed.obb (standard apk, names may vary). Delete (or clear its data) ExaGear Windows Emulator and install it again, but use the one you modified as the cache.
After unpacking the cache, run the container, and in the TFM file manager, go to Z:/opt
and find the files you added there, click on it, and click "Create link", and go to the desktop folder (Desktop ). Copy the shortcut files (.lnk) to the D: drive, and then you need to exit ExaGear.
Reopen the modified .obb file, copy the shortcut files and go to /opt/guestcont-pattern/.wine/drive_c/users/Public
. Copy shortcuts there (they can be renamed), you can create folders and put shortcuts there. After copying, save the archive, reinstall ExaGear Windows Emulator, and after starting the container, the shortcuts you added will be displayed in the start menu. Try running one of them. If a program references them, it should run. If an error appeared on the screen, then after creating the shortcuts, the path to the program was changed or the file was completely deleted. If everything works and the program starts, then the process of adding programs and shortcuts to them in the Start menu is completed.
Other modifications to the Linux file system without uninstalling/installing packages
You can also add other files to Wine, or modify the Linux file system, you know how it works. Please note that before changing other folders and deleting files, know what you are doing. Attempts to cut the cache "to the maximum" of files can lead to the so-called "break" of the cache and its inoperability.
Adding packages, replacing Wine in caches
Since ExaGear uses a Linux container to run Windows applications (using Wine) on ARM systems, a Linux distribution must be installed on a computer (laptop) to replace the Wine version. If it is not possible to install the system on a permanent basis, use virtual machines (VirtualBox, VMware, etc.).
To add packages or replace Wine in Android, this instruction uses Termux and -For-Termux Exagear-For-Termux
Important! Some caches may have removed the apt package manager. Since it is not used in this article, the solution is not described here.
Downloading Wine, cache, decompressing the cache, and entering it with chroot (for laptops, computers)
Download the cache and extract it to a separate folder (for example exagearcache
)
In a terminal, mount the /dev, /proc, and /sys virtual file systems by issuing the following commands:
sudo mount proc -