From 948f7ffa9434b4d96b89008923f52cc7b13be060 Mon Sep 17 00:00:00 2001 From: swee Date: Thu, 26 Dec 2024 20:52:45 -0800 Subject: [PATCH] Add generate-flatpak.py --- generate-flatpak.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 generate-flatpak.py diff --git a/generate-flatpak.py b/generate-flatpak.py new file mode 100644 index 0000000..8434146 --- /dev/null +++ b/generate-flatpak.py @@ -0,0 +1,9 @@ +#!/usr/bin/python3 +import os +print("Creating Flatpak package...") +file = open("sweecrypt-gtk.py").read().split("\n") +file[3] = 'UI_FILE = "/app/opt/sweecrypt-gtk.ui"' +file.insert(0, "#!/usr/bin/env python3") +file = "\n".join(file) +open("sweecrypt-gtk-flatpak.py", "w").write(file) +os.system("chmod 1777 sweecrypt-gtk-flatpak.py") \ No newline at end of file