From ec4d2536f59c908465c0330104926927df1376f4 Mon Sep 17 00:00:00 2001 From: Pascal Muetschard Date: Thu, 26 Oct 2017 13:59:32 -0700 Subject: [PATCH] Linux gfxtrace file association with GAPID. --- kokoro/linux/gapid-mime.xml | 7 +++++++ kokoro/linux/gapid.desktop | 1 + kokoro/linux/package.sh | 3 ++- 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 kokoro/linux/gapid-mime.xml diff --git a/kokoro/linux/gapid-mime.xml b/kokoro/linux/gapid-mime.xml new file mode 100644 index 0000000000..a80d53868b --- /dev/null +++ b/kokoro/linux/gapid-mime.xml @@ -0,0 +1,7 @@ + + + + Graphics API Trace + + + diff --git a/kokoro/linux/gapid.desktop b/kokoro/linux/gapid.desktop index 3c58b01497..b0c7f4448d 100644 --- a/kokoro/linux/gapid.desktop +++ b/kokoro/linux/gapid.desktop @@ -7,3 +7,4 @@ Categories=Development;Debugger;Graphics;3DGraphics Icon=/opt/gapid/icon.png Exec=/opt/gapid/gapid %f Terminal=false +MimeType=application/x-gfxtrace diff --git a/kokoro/linux/package.sh b/kokoro/linux/package.sh index efa927b6f7..d343ebb421 100755 --- a/kokoro/linux/package.sh +++ b/kokoro/linux/package.sh @@ -38,12 +38,13 @@ VERSION=$(awk -F= 'BEGIN {major=0; minor=0; micro=0} END {print major"."minor"."micro}' ../pkg/build.properties) # Combine package contents. -mkdir -p gapid/DEBIAN gapid/opt/gapid gapid/usr/share/applications gapid/usr/share/menu +mkdir -p gapid/DEBIAN gapid/opt/gapid gapid/usr/share/applications gapid/usr/share/menu gapid/usr/share/mime/packages cp -r ../pkg/* gapid/opt/gapid cp -r ../current/java/gapic-linux.jar gapid/opt/gapid/lib/gapic.jar cp "$SRC/../../gapic/res/icons/logo@2x.png" gapid/opt/gapid/icon.png cp "$SRC/gapid.desktop" gapid/usr/share/applications/google-gapid.desktop cp "$SRC/gapid.menu" gapid/usr/share/menu/google-gapid.menu +cp "$SRC/gapid-mime.xml" gapid/usr/share/mime/packages/gapid.xml # Create the dpkg config file. cat > gapid/DEBIAN/control <