Skip to content

Commit

Permalink
fix: codium-marketplace (#1422)
Browse files Browse the repository at this point in the history
* add: codium-marketplace

* arches

* fix: codium-marketplace

---------

Signed-off-by: madomado <[email protected]>
(cherry picked from commit 810d59f)
  • Loading branch information
madonuko authored and raboneko committed Jul 4, 2024
1 parent 5e49cb2 commit 92ec6da
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions anda/devs/codium-marketplace/codium-marketplace.spec
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ Requires: codium sed
This package replaces the default marketplace (https://open-vsx.org/)
to the official one used by vscode.

%install
touch dummy
install -Dm644 dummy %buildroot/tmp/terra-codium-marketplace-dummy-file

%posttrans
if [ $1 -gt 1 ]; then # update/install
sed -i -e 's/^[[:blank:]]*"serviceUrl":.*/ "serviceUrl": "https:\/\/marketplace.visualstudio.com\/_apis\/public\/gallery",/' \
Expand All @@ -38,3 +42,6 @@ sed -i -e 's/^[[:blank:]]*"serviceUrl":.*/ "serviceUrl": "https:\/\/marketpla
-e 's/^[[:blank:]]*"itemUrl":.*/ "itemUrl": "https:\/\/marketplace.visualstudio.com\/items"/' \
-e '/^[[:blank:]]*"linkProtectionTrustedDomains/d' \
/usr/share/codium/resources/app/product.json || true

%files
/tmp/terra-codium-marketplace-dummy-file

0 comments on commit 92ec6da

Please sign in to comment.