Add generate-flatpak.py
All checks were successful
Sanity check / Test Python file (push) Successful in 12s
All checks were successful
Sanity check / Test Python file (push) Successful in 12s
This commit is contained in:
parent
4233c29d58
commit
948f7ffa94
1 changed files with 9 additions and 0 deletions
9
generate-flatpak.py
Normal file
9
generate-flatpak.py
Normal file
|
@ -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")
|
Loading…
Reference in a new issue