sweeCrypt-GTK/generate-deb.py

11 lines
476 B
Python
Raw Permalink Normal View History

2024-09-09 23:48:51 -07:00
#!/usr/bin/python3
import os
print("Creating Debian package...")
file = open("sweecrypt-gtk.py").read().split("\n")
open("dpkg/opt/sweecrypt-gtk.ui",'w').write(open("sweecrypt-gtk.ui").read())
2024-09-12 17:00:20 -07:00
file[3] = 'UI_FILE = "/opt/sweecrypt-gtk.ui"'
2024-09-12 17:03:56 -07:00
file.insert(0, "#!/usr/bin/env python3")
file = "\n".join(file)
open("dpkg/usr/bin/sweecrypt-gtk",'w').write(file)
2024-09-10 16:17:09 -07:00
os.system("chmod 1777 dpkg/usr/bin/sweecrypt-gtk")
2024-09-14 01:01:37 -07:00
os.system("dpkg-deb --root-owner-group --build dpkg sweecrypt-gtk.deb")