Skip to content

The code required by "Bridgex" to compile (to exe), this repo contains the "Installer Exe" ("Inno Setup") and "The Exe" (The principal config to compile to exe ("Briefcase"))

License

Notifications You must be signed in to change notification settings

tutosrive/bridgex-builds-2-exe

Repository files navigation

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)

The Exe

To compile this project (exactly this, "The Exe") with "Briefcase", run this commands:

  1. Clone the repo
      git clone https://github.com/tutosrive/bridgex-builds-2-exe.git
  2. Create a virtual environment
      python -m venv .venv
  3. Active the virtual environment
      .venv\scripts\activate
  4. Install dependencies
      pip install -r requirements.txt
  5. In any command line (Console, Terminal), execute:
      # By now, only compatibility in windows (.toml is not OK to others.)
      briefcase build windows

Run Program as Admin

Warning

If you want run the .exe generated as Admin (requires permission), copy this steps

  1. Install mt.exe (Windows SDK)
  2. 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>
  1. After, inside of build/bridgex/windows/app/src/, open the CMD and execute (Replace {Path to => mt.exe} with your path):
{Path to => mt.exe} -nologo -manifest Bridgex.exe.manifest -outputresource:"Bridgex.exe;#1"

The Installer

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

Compile "The Installer" with "Install Forge".

  1. Install "Install Forge", then open this file: install-forge-bridgex-installer.ifp
  2. Fix the paths to assets, check that all is OK!

Compile "The Installer" with "Inno Setup".

  1. Install the "Inno Setup", open this file Inno-Config.iss.
  2. Sure that the directories paths been OK, not incorrect or NOT valid.
  3. Sure that you download all sources (icons, images), and that just compile "The Exe".

About

The code required by "Bridgex" to compile (to exe), this repo contains the "Installer Exe" ("Inno Setup") and "The Exe" (The principal config to compile to exe ("Briefcase"))

Topics

Resources

License

Stars

Watchers

Forks

Languages