瀏覽代碼

Don't let MS add their apt repo to the system (#24)

Fixes #23
Peter Squicciarini 6 年之前
父節點
當前提交
8a561e165d
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      build.sh

+ 5 - 0
build.sh

@@ -11,6 +11,11 @@ if [[ "$SHOULD_BUILD" == "yes" ]]; then
   if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
   if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
     npx gulp vscode-darwin-min
     npx gulp vscode-darwin-min
   else
   else
+    # microsoft adds their apt repo to sources
+    # unless the app name is code-oss
+    # as we are renaming the application to vscodium
+    # we need to edit a line in the post install template
+    sed -i "s/code-oss/vscodium/" resources/linux/debian/postinst.template
     npx gulp vscode-linux-x64-min
     npx gulp vscode-linux-x64-min
     npx gulp vscode-linux-x64-build-deb
     npx gulp vscode-linux-x64-build-deb
     npx gulp vscode-linux-x64-build-rpm
     npx gulp vscode-linux-x64-build-rpm