sweeCrypt-GTK/generate-flatpak.py
swee 3e9950c3ca
All checks were successful
Sanity check / Test Python file (push) Successful in 10s
Update generate-flatpak.py
2024-12-26 20:57:08 -08:00

11 lines
No EOL
422 B
Python

#!/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")
os.system("mkdir flatpak")
os.system("flatpak-builder flatpak codes.swee.SweeCryptGTK.json")