Skip to content

Commit

Permalink
fix: codium-marketplace (#1422) (#1424)
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)

Co-authored-by: madomado <[email protected]>
  • Loading branch information
raboneko and madonuko authored Jul 4, 2024
1 parent 2102e5e commit 5667717
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 5667717

Please sign in to comment.