From d8c761eca334205b4882ef4b8a3e050bff28650d Mon Sep 17 00:00:00 2001 From: Leonardo Amaral Date: Wed, 18 Oct 2023 14:42:31 -0300 Subject: [PATCH 1/4] Upgrade FreeDesktop Platform to 22.08 --- com.cisco.PacketTracer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com.cisco.PacketTracer.yml b/com.cisco.PacketTracer.yml index 61296ec..36e0c21 100644 --- a/com.cisco.PacketTracer.yml +++ b/com.cisco.PacketTracer.yml @@ -1,6 +1,6 @@ app-id: com.cisco.PacketTracer runtime: org.freedesktop.Platform -runtime-version: '21.08' +runtime-version: '22.08' sdk: org.freedesktop.Sdk command: /app/pt/packettracer finish-args: From c2f06842adadcd738a8c71cc089eeebed6c00c8d Mon Sep 17 00:00:00 2001 From: Leonardo Amaral Date: Wed, 18 Oct 2023 18:35:27 -0300 Subject: [PATCH 2/4] Minor changes: Tag proprietary, avoid creation of unecessary locales separated and bring TZ env var. --- com.cisco.PacketTracer.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/com.cisco.PacketTracer.yml b/com.cisco.PacketTracer.yml index 36e0c21..2b67a2b 100644 --- a/com.cisco.PacketTracer.yml +++ b/com.cisco.PacketTracer.yml @@ -3,6 +3,11 @@ runtime: org.freedesktop.Platform runtime-version: '22.08' sdk: org.freedesktop.Sdk command: /app/pt/packettracer +separate-locales: false + +tags: + - proprietary + finish-args: - --share=ipc - --share=network @@ -11,6 +16,7 @@ finish-args: - --device=dri - --filesystem=xdg-download - --persist=. + - --env=TZ= modules: - name: packettracer From 07662b0111d041267a486e6e31df48e137c0e717 Mon Sep 17 00:00:00 2001 From: Leonardo Amaral Date: Wed, 18 Oct 2023 18:47:04 -0300 Subject: [PATCH 3/4] Change base to KDE/QT but keep using QT from Cisco. Allows integrations like QtGTK support. --- com.cisco.PacketTracer.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/com.cisco.PacketTracer.yml b/com.cisco.PacketTracer.yml index 2b67a2b..006317a 100644 --- a/com.cisco.PacketTracer.yml +++ b/com.cisco.PacketTracer.yml @@ -1,7 +1,9 @@ app-id: com.cisco.PacketTracer -runtime: org.freedesktop.Platform -runtime-version: '22.08' -sdk: org.freedesktop.Sdk +runtime: org.kde.Platform +runtime-version: '5.15-22.08' +sdk: org.kde.Sdk +base: io.qt.qtwebengine.BaseApp +base-version: '5.15-22.08' command: /app/pt/packettracer separate-locales: false From d13bc4e790cbce1b2e46299dc8168c35380968e3 Mon Sep 17 00:00:00 2001 From: Leonardo Amaral Date: Thu, 23 Nov 2023 16:25:31 -0300 Subject: [PATCH 4/4] Added support to NetAcad URL scheme --- com.cisco.PacketTracer.desktop | 2 +- com.cisco.PacketTracer.url.desktop | 13 +++++++++++++ com.cisco.PacketTracer.yml | 3 +++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 com.cisco.PacketTracer.url.desktop diff --git a/com.cisco.PacketTracer.desktop b/com.cisco.PacketTracer.desktop index 24b8e35..fee03db 100644 --- a/com.cisco.PacketTracer.desktop +++ b/com.cisco.PacketTracer.desktop @@ -8,5 +8,5 @@ Icon=com.cisco.PacketTracer Name=Packet Tracer Categories=Application;Network; -MimeType=application/x-pkt;application/x-pka;application/x-pkz; +MimeType=application/x-pkt;application/x-pka;application/x-pkz;application/x-pks;application/x-pksz; StartupWMClass=PacketTracer diff --git a/com.cisco.PacketTracer.url.desktop b/com.cisco.PacketTracer.url.desktop new file mode 100644 index 0000000..7d32499 --- /dev/null +++ b/com.cisco.PacketTracer.url.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Encoding=UTF-8 +Type=Application + +Exec=/app/pt/packettracer -uri=%u +Icon=com.cisco.PacketTracer + +Name=Packet Tracer +Categories=Application;Network; +NoDisplay=true + +MimeType=x-scheme-handler/pttp; +StartupWMClass=PacketTracer diff --git a/com.cisco.PacketTracer.yml b/com.cisco.PacketTracer.yml index 006317a..d82ae9c 100644 --- a/com.cisco.PacketTracer.yml +++ b/com.cisco.PacketTracer.yml @@ -33,6 +33,7 @@ modules: - mv opt/pt /app - install -D /app/pt/art/app.png /app/share/icons/hicolor/48x48/apps/com.cisco.PacketTracer.png - install -D com.cisco.PacketTracer.desktop /app/share/applications/com.cisco.PacketTracer.desktop + - install -D com.cisco.PacketTracer.url.desktop /app/share/applications/com.cisco.PacketTracer.url.desktop - sed -i -e 's\/opt/\/app/\g' /app/pt/packettracer /app/pt/linguist - sed -i -e 's\"$@"\-style windows "$@"\;' /app/pt/packettracer /app/pt/linguist @@ -44,3 +45,5 @@ modules: path: com.cisco.PacketTracer.appdata.xml - type: file path: com.cisco.PacketTracer.desktop + - type: file + path: com.cisco.PacketTracer.url.desktop