Configs to compile "Bridgex" project to a .exe
Important
Fix Absolute paths
- Configs to compile to "The Exe" (This exe is the main program)
- Configs to compile "The Installer" (Is the program setup)
To compile this project (exactly this, "The Exe") with "Briefcase", run this commands:
- Clone the repo
git clone https://github.com/tutosrive/bridgex-builds-2-exe.git
- Create a virtual environment
python -m venv .venv
- Active the virtual environment
.venv\scripts\activate
- Install dependencies
pip install -r requirements.txt
- In any command line (Console, Terminal), execute:
# By now, only compatibility in windows (.toml is not OK to others.) briefcase build windows
Warning
If you want run the .exe generated as Admin (requires permission), copy this steps
- Install mt.exe (Windows SDK)
- Create a file
Bridgex.exe.manifest
on the root of the Build folder (Created by Brifcase) and copy this:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" name="Bridgex" />
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
- After, inside of
build/bridgex/windows/app/src/
, open theCMD
and execute (Replace{Path to => mt.exe}
with your path):
{Path to => mt.exe} -nologo -manifest Bridgex.exe.manifest -outputresource:"Bridgex.exe;#1"
Note
(Optional) If you want create a basic and simple "Installer" and not use the "Inno Setup Config", run this
# By now, only compatibility in windows (.toml is not OK to others.)
briedfcase package windows
Using Install Forge
Compile "The Installer" with "Install Forge".
- Install "Install Forge", then open this file:
install-forge-bridgex-installer.ifp
- Fix the paths to assets, check that all is OK!
Using Inno Setup
Compile "The Installer" with "Inno Setup".
- Install the "Inno Setup", open this file
Inno-Config.iss
. - Sure that the directories paths been OK, not incorrect or NOT valid.
- Sure that you download all sources (icons, images), and that just compile "The Exe".