Skip to content

Commit

Permalink
Merge pull request #19 from leleobhz/feature-use-flatpak-kde-qt-with-…
Browse files Browse the repository at this point in the history
…cisco-static-qt-libs

Change SDK to updated KDE and add support to NetAcad pttp:// url scheme
  • Loading branch information
losuler authored Mar 2, 2024
2 parents 4046cce + 7361544 commit 7b9caaf
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
2 changes: 1 addition & 1 deletion com.cisco.PacketTracer.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -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
13 changes: 13 additions & 0 deletions com.cisco.PacketTracer.url.desktop
Original file line number Diff line number Diff line change
@@ -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
17 changes: 14 additions & 3 deletions com.cisco.PacketTracer.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
app-id: com.cisco.PacketTracer
runtime: org.freedesktop.Platform
runtime-version: '21.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

tags:
- proprietary

finish-args:
- --share=ipc
- --share=network
Expand All @@ -11,6 +18,7 @@ finish-args:
- --device=dri
- --filesystem=xdg-download
- --persist=.
- --env=TZ=

modules:
- name: packettracer
Expand All @@ -26,6 +34,7 @@ modules:
- install -D /app/pt/art/app.png /app/share/icons/hicolor/48x48/apps/com.cisco.PacketTracer.png
- install -D com.cisco.PacketTracer.png /app/share/icons/hicolor/128x128/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

Expand All @@ -37,5 +46,7 @@ modules:
path: com.cisco.PacketTracer.appdata.xml
- type: file
path: com.cisco.PacketTracer.desktop
- type: file
path: com.cisco.PacketTracer.url.desktop
- type: file
path: com.cisco.PacketTracer.png

0 comments on commit 7b9caaf

Please sign in to comment.