From 0ea38937f905022b1ec6bda4c8e54bb812ced826 Mon Sep 17 00:00:00 2001 From: Nova Cat Date: Sat, 14 Sep 2024 01:01:37 -0700 Subject: [PATCH] Edited files on Android --- generate-deb.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/generate-deb.py b/generate-deb.py index 9100946..b822505 100644 --- a/generate-deb.py +++ b/generate-deb.py @@ -1,8 +1,6 @@ #!/usr/bin/python3 import os print("Creating Debian package...") -if os.name != "posix": - print("WARNING: Machine is not running Linux (value of os.name is not \"posix\"), the script will not try to auto-build the .deb file. You might need to manually `chmod 1777` the binary.") 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"' @@ -10,5 +8,4 @@ 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") -if os.name == "posix": - os.system("dpkg-deb --root-owner-group --build dpkg sweecrypt-gtk.deb") \ No newline at end of file +os.system("dpkg-deb --root-owner-group --build dpkg sweecrypt-gtk.deb") \ No newline at end of file