Create ~/pkg//DEBIAN/control with minimal fields:
Package: <appname>
Version: 1.0-1
Section: utils
Priority: optional
Architecture: all
Depends: wine | wine64, wine32 | wine
Maintainer: Your Name <you@example.com>
Description: Short description of the app (single line).
Long description line 1.
You will need a Debian-based system (Debian, Ubuntu, Pop!_OS, Linux Mint, etc.) with administrative privileges (sudo).
mkdir -p myapp/DEBIAN
mkdir -p myapp/usr/local/bin
mkdir -p myapp/usr/share/applications
mkdir -p myapp/opt/myapp
Create /usr/bin/:
#!/bin/sh
exec wine "/opt/<appname>/program.exe" "$@"
Make it executable.
Before touching a single command, let's clarify what .exe and .deb actually are: how to convert exe to deb
Because the underlying instruction sets (even on the same CPU) and system calls are different, an EXE cannot be run natively on Linux, and therefore cannot be simply re-packaged as a DEB without a compatibility layer.
What you actually want is to run a Windows program on Debian/Ubuntu and optionally create a launcher package. That process is called packaging Windows software for Linux using a compatibility layer. You will need a Debian-based system (Debian, Ubuntu, Pop
The primary tool for this job is Wine (Wine Is Not an Emulator), which translates Windows API calls into Linux POSIX calls.
cp your-program.exe myapp/usr/share/myapp/
nano myapp/usr/share/applications/myapp.desktop Create /usr/bin/ :
#
[Desktop Entry]
Name=My Windows App
Exec=run-myapp
Icon=wine
Type=Application
Categories=Utility;
Solution: Update the Depends line in your control file to wine (>= 5.0).
|
/ | Log in |
| Join now |
| Log in |
| About us |
| Terms & Conditions |
| Privacy Policy |
| Responsible Gaming |
| Contact us |
| Download App |
| ©Copyright 2025 Castlebet Lite, Zambia |