Update generate-deb.py
This commit is contained in:
parent
c61e9a504d
commit
76f51b769f
1 changed files with 2 additions and 3 deletions
|
@ -6,11 +6,10 @@ if os.name != "posix":
|
|||
file = open("sweecrypt-gtk.py").read().split("\n")
|
||||
open("dpkg/opt/sweecrypt-gtk.ui",'w').write(open("sweecrypt-gtk.ui").read())
|
||||
file[4] = 'UI_FILE = "/opt/sweecrypt-gtk.ui"'
|
||||
file.insert(0, "#!/usr/bin/env python3")
|
||||
file.insert(0, "#!/usr/bin/env")
|
||||
file = "\n".join(file)
|
||||
open("dpkg/usr/bin/sweecrypt-gtk",'w').write(file)
|
||||
os.chmod("dpkg/usr/bin/sweecrypt-gtk", 1777)
|
||||
os.system("chmod 1777 dpkg/usr/bin/sweecrypt-gtk")
|
||||
if os.name == "posix":
|
||||
os.chmod("dpkg/DEBIAN/control", 1777)
|
||||
os.system("dpkg-deb --root-owner-group --build dpkg")
|
||||
os.rename("dpkg.deb", "sweecrypt-gtk.deb")
|
Loading…
Reference in a new issue