44
loading...
This website collects cookies to deliver better user experience
my_app
.my_app/app.py
and copy the following contents to it:import tkinter as tk
root = tk.Tk()
tk.Label(master=root, text="Hello world", font=("Arial", 30)).pack()
root.mainloop()
my_app
directory and run the following command in CMD:pip install pyinstaller
pyinstaller --onefile app.py -w
my_app/dist/app.exe
).my_app
my_app/app.py
and copy the following contents to it:import tkinter as tk
root = tk.Tk()
tk.Label(master=root, text="Hello world", font=("Arial", 30)).pack()
root.mainloop()
my_app
directory and run the following command in terminal:pip install pyinstaller
pyinstaller app.py -w
my-app_1.0.0/DEBIAN
my-app_1.0.0/my_app
my-app_1.0.0/usr/share/applications
my-app_1.0.0/DEBIAN/control
and copy the following contents into it.Package: my-app
Version: 1.0.0
Architecture: all
Maintainer: [Your name]
Copyright: [year] [Your name]
License: MIT
Homepage: [homepage url]
Description: My deb package.
my-app_1.0.0/usr/share/applications/my-app.desktop
and copy the following contents into it.[Desktop Entry]
Type=Application
Exec=/my_app/app
Hidden=false
NoDisplay=false
Name=My app
Comment=My app.
my_app/dist
to my-app_1.0.0/my_app
my-app_1.0.0
and execute the following command:dpkg-deb --build my-app_1.0.0
my-app_1.0.0.deb