Skip to content

Commit

Permalink
Don't replace product.json in RPM updates
Browse files Browse the repository at this point in the history
  • Loading branch information
proletarius101 committed Nov 15, 2020
1 parent bfb4be2 commit 2d58d3b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions patches/no-replace-product-json.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
--- vscode/resources/linux/rpm/code.spec.template 2020-11-15 15:28:20.179070106 +0800
+++ vscode/resources/linux/rpm/code.spec.template.new 2020-11-15 15:25:39.269000000 +0800
@@ -69,3 +69,5 @@
/usr/share/pixmaps/@@ICON@@.png
/usr/share/bash-completion/completions/@@NAME@@
/usr/share/zsh/site-functions/_@@NAME@@
+
+%config(noreplace) /usr/share/@@NAME@@/resources/app/product.json
1 change: 1 addition & 0 deletions prepare_vscode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ cd vscode || exit

# apply patches
patch -u src/vs/platform/update/electron-main/updateService.win32.ts -i ../patches/update-cache-path.patch
patch -u resources/linux/rpm/code.spec.template -i ../patches/no-replace-product-json.patch

if [[ "$OS_NAME" == "osx" ]]; then
CHILD_CONCURRENCY=1 yarn --frozen-lockfile --ignore-optional
Expand Down

0 comments on commit 2d58d3b

Please sign in to comment.