The WingetUI source code offers you the opportunity to dig into how does this program work. Modifications can be made to the UI, functionalities, and usability, while contributions like bug fixes and new features are possible.
On this article you will find how to obtain the source code, how to install the required dependencies, how to run the source code and how to build WingetUI into a standalone, distributable executable file
Obtaining WingetUI's source code is as easy as downloading it from GitHub's servers. You can do so in two ways:
wingetui/
, you will find the main application built with Python, and under share-component-source/
you will find the solution of WingetUI's sharing interface.
In order to run WingetUI, you will need to have Python 3.10 or higher installed on your system.
Now that Python is installed, open a Command Prompt window on the root folder of the repository and execute the following command to install the required packages:
pip install -r requirements.txt
Once the command finished you will be able to run the source code without issues.
NOTE: To prevent interferences with other libraries, it is highly recommended to run the source code from a virtual python environment. More information about virtual environments here.
Under the wingetui/
directory you will find different Python files, as well as subfolders with more code files in them. To run WingetUI, just run the __init__.py
file. However, there are some considerations to take into account:
wingetui/
directory can also be executed and WingetUI will launch as expected. However, executing python files that are located on subdirectories, such as wingetui/PackageManagers
or wingetui/external
will result in an instant crash.
Note: It goes without saying that you will have to install all the required dependencies before building WingetUI. See Installing the required dependencies
To build your own version of WingetUI, you will need to run the build.bat
script located on the root directory of the repository. You may be prompted to press enter to continue a few times.
Please DO NOT delete any files or folders created by the builder. The temporary files will be cleaned automatically.
Once finished, a new folder named wingetuiBin
will be generated, containing the final executable file and its dependencies.
NOTE: If Inno Setup is found installed, the installer will be also compiled and stored on the root folder of the repository.
This is the end of this article. Return to the WingetUI Help and Documentation page?
© 2024, Martí Climent