11 lines
No EOL
476 B
Python
11 lines
No EOL
476 B
Python
#!/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())
|
|
file[3] = 'UI_FILE = "/opt/sweecrypt-gtk.ui"'
|
|
file.insert(0, "#!/usr/bin/env python3")
|
|
file = "\n".join(file)
|
|
open("dpkg/usr/bin/sweecrypt-gtk",'w').write(file)
|
|
os.system("chmod 1777 dpkg/usr/bin/sweecrypt-gtk")
|
|
os.system("dpkg-deb --root-owner-group --build dpkg sweecrypt-gtk.deb") |