Philipp Hörist pushed to branch master at gajim / gajim
Commits:
ee4d1da8 by André Apitzsch at 2026-07-22T17:12:53+00:00
other: Add script to build flatpak nightly
Closes #12177.
- - - - -
1 changed file:
- make.py
Changes:
=====================================
make.py
=====================================
@@ -209,6 +209,58 @@ def cmd_install(args: argparse.Namespace) -> None:
)
+def cmd_flatpak(args: argparse.Namespace) -> None:
+ if args.system:
+ installation = "--system"
+ else:
+ installation = "--user"
+
+ dest_dir = Path("flatpak_build")
+ repo_dir = Path("flatpak_repo")
+ repo_name = "gajim-repo"
+ manifest = Path("flatpak/org.gajim.Gajim.Devel.yaml")
+
+ steps = [
+ [
+ "flatpak",
+ installation,
+ "remote-add",
+ "--if-not-exists",
+ "flathub",
+ "https://flathub.org/repo/flathub.flatpakrepo",
+ ],
+ [
+ "flatpak-builder",
+ installation,
+ f"--repo={repo_dir}",
+ "--install-deps-from=flathub",
+ "--force-clean",
+ dest_dir,
+ str(manifest),
+ ],
+ [
+ "flatpak",
+ installation,
+ "remote-add",
+ "--if-not-exists",
+ "--no-gpg-verify",
+ repo_name,
+ str(repo_dir),
+ ],
+ [
+ "flatpak",
+ installation,
+ "install",
+ "--or-update",
+ repo_name,
+ "org.gajim.Gajim.Devel",
+ ],
+ ]
+
+ for step in steps:
+ subprocess.run(step, check=True)
+
+
if __name__ == "__main__":
parser = argparse.ArgumentParser()
@@ -240,5 +292,13 @@ def cmd_install(args: argparse.Namespace) -> None:
)
install_parser.set_defaults(func=cmd_install)
+ flatpak_parser = subparsers.add_parser("flatpak", help="Build flatpak
nightly")
+ flatpak_parser.add_argument(
+ "--system",
+ action="store_true",
+ help="Install dependencies in system-wide installations",
+ )
+ flatpak_parser.set_defaults(func=cmd_flatpak)
+
args = parser.parse_args()
args.func(args)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/ee4d1da8930714b2efd3a3841a7376b71f3c2cf3
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/ee4d1da8930714b2efd3a3841a7376b71f3c2cf3
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]