From ff33fdb946fb3212cc8740f70dee51ac5e99a71f Mon Sep 17 00:00:00 2001 From: SRHTNIN Date: Thu, 8 Oct 2026 23:25:45 +0200 Subject: [PATCH] Add SaraView client manifest --- Programs/SaraView/Manifest.toml | 37 ++++++++++++++++++++ Programs/SaraView/Templates/Launch.sh | 8 +++++ Programs/SaraView/Templates/SaraView.desktop | 10 ++++++ 3 files changed, 55 insertions(+) create mode 100644 Programs/SaraView/Manifest.toml create mode 100755 Programs/SaraView/Templates/Launch.sh create mode 100644 Programs/SaraView/Templates/SaraView.desktop diff --git a/Programs/SaraView/Manifest.toml b/Programs/SaraView/Manifest.toml new file mode 100644 index 0000000..79ebc80 --- /dev/null +++ b/Programs/SaraView/Manifest.toml @@ -0,0 +1,37 @@ +# Kept in sync between SaraSuite/Programs/SaraView/ and SaraView/Client/Packaging/SaraSuite/. +Name = "SaraView" +Description = "SaraView's desktop client: view and edit files in a local folder, or on a SaraView server." + +[Source] +Git = "{GitHost}/SaraView" +# Only the Flet client; the server (Backend/, Frontend/) runs in Docker on SpineS. +Include = ["Client/*.py", "Client/requirements.txt", "Client/assets/**"] +Exclude = ["Client/Packaging"] + +[Python] +RequirementsFile = "Client/requirements.txt" + +[[Templates]] +Source = "Launch.sh" +Target = "{AppDir}/Client/Packaging/Launch.sh" +Executable = true + +[[Templates]] +Source = "SaraView.desktop" +Target = "{ApplicationsDir}/SaraView.desktop" + +# Made by SaraView itself: Config.toml and Session.toml (your saved login). +[[Leftovers]] +Path = "{ConfigDir}" +Kind = "Config" +Note = "SaraView's settings and saved server login" + +[[Leftovers]] +Path = "{CacheHome}/SaraView" +Kind = "Runtime" +Note = "server files downloaded to open in other programs" + +# Shared with the other Flet programs; see Programs/FletIdentity.py. +[[Templates]] +Source = "../../FletIdentity.py" +Target = "{ProgramDir}/FletIdentity.py" diff --git a/Programs/SaraView/Templates/Launch.sh b/Programs/SaraView/Templates/Launch.sh new file mode 100755 index 0000000..b48bad9 --- /dev/null +++ b/Programs/SaraView/Templates/Launch.sh @@ -0,0 +1,8 @@ +#!/bin/sh +# Written by SaraSuite. Runs from the client's folder so Flet finds assets/. +# A Flet client copy with the window app ID srhtnin.{Name}, so the desktop +# matches the window to {Name}.desktop (StartupWMClass) instead of showing it +# as "com.appveyor.flet". Empty if that fails: Flet then uses its own client. +export FLET_VIEW_PATH="$("{Python}" "{ProgramDir}/FletIdentity.py" "srhtnin.{Name}")" +cd "{AppDir}/Client" || exit 1 +exec "{Python}" Main.py "$@" diff --git a/Programs/SaraView/Templates/SaraView.desktop b/Programs/SaraView/Templates/SaraView.desktop new file mode 100644 index 0000000..3ef928b --- /dev/null +++ b/Programs/SaraView/Templates/SaraView.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Type=Application +Name=SaraView +Comment=View and edit files, locally or on a SaraView server +Exec={AppDir}/Client/Packaging/Launch.sh +Icon={AppDir}/Client/assets/Icon.png +Terminal=false +Categories=Utility; +StartupNotify=true +StartupWMClass=srhtnin.{Name}