Skip to content

Commit

Permalink
Linux gfxtrace file association with GAPID.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuetschard committed Oct 26, 2017
1 parent 52fec8b commit ec4d253
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions kokoro/linux/gapid-mime.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-gfxtrace">
<comment>Graphics API Trace</comment>
<glob pattern="*.gfxtrace"/>
</mime-type>
</mime-info>
1 change: 1 addition & 0 deletions kokoro/linux/gapid.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion kokoro/linux/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]" 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 <<EOF
Expand Down

0 comments on commit ec4d253

Please sign in to comment.