From 9226aa615d2e006d9b28319f2da1bef0589aa7da Mon Sep 17 00:00:00 2001 From: Nick Richards Date: Thu, 16 Nov 2017 21:42:54 +0000 Subject: [PATCH] switch to external appdata --- com.visualstudio.code.appdata.xml | 21 +++++++++++++++++++++ com.visualstudio.code.json | 9 ++++++--- 2 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 com.visualstudio.code.appdata.xml diff --git a/com.visualstudio.code.appdata.xml b/com.visualstudio.code.appdata.xml new file mode 100644 index 0000000..c7d7591 --- /dev/null +++ b/com.visualstudio.code.appdata.xml @@ -0,0 +1,21 @@ + + + com.visualstudio.code.desktop + Multiple, see https://code.visualstudio.com/license + LicenseRef-proprietary=https://code.visualstudio.com/license + Visual Studio Code + https://code.visualstudio.com + Visual Studio Code. Code editing. Redefined. + +

Visual Studio Code is a new choice of tool that combines the simplicity of a code editor with what developers need for the core edit-build-debug cycle. See https://code.visualstudio.com/docs/setup/linux for installation instructions and FAQ.

+
+ + + https://code.visualstudio.com/home/home-screenshot-linux-lg.png + Editing TypeScript and searching for extensions + + + + + +
diff --git a/com.visualstudio.code.json b/com.visualstudio.code.json index 4856f7c..45d3f1b 100644 --- a/com.visualstudio.code.json +++ b/com.visualstudio.code.json @@ -99,6 +99,7 @@ "install apply_extra /app/bin", "install code.sh /app/bin/code", "cp /usr/bin/ar /app/bin", + "install -Dm644 com.visualstudio.code.appdata.xml /app/share/appdata/com.visualstudio.code.appdata.xml", "install -m644 npmrc /app/etc" ], "cleanup": [ @@ -119,9 +120,7 @@ "install -Dm644 share/pixmaps/code.png export/share/icons/hicolor/512x512/apps/com.visualstudio.code.png", "install -Dm644 share/applications/code.desktop export/share/applications/com.visualstudio.code.desktop", "desktop-file-edit --set-key=Exec --set-value='code %F' export/share/applications/com.visualstudio.code.desktop", - "desktop-file-edit --set-key=Icon --set-value='com.visualstudio.code' export/share/applications/com.visualstudio.code.desktop", - "mkdir -p export/share/appdata", - "sed -e s/code.desktop/com.visualstudio.code.desktop/ -e 's/Multiple, see /LicenseRef-proprietary=/g' share/appdata/code.appdata.xml > export/share/appdata/com.visualstudio.code.appdata.xml" + "desktop-file-edit --set-key=Icon --set-value='com.visualstudio.code' export/share/applications/com.visualstudio.code.desktop" ] }, { @@ -132,6 +131,10 @@ { "type": "file", "path": "npmrc" + }, + { + "type": "file", + "path": "com.visualstudio.code.appdata.xml" } ] }