From e7a51e6145ce62b3224bd8711bad4091d7621fa7 Mon Sep 17 00:00:00 2001 From: Agung Tuah Ananda Date: Tue, 22 Aug 2023 18:29:53 +0700 Subject: [PATCH 1/2] Fix: MongoDB Compass Community not building --- recipes/MongoDB_Compass_Community.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/recipes/MongoDB_Compass_Community.yml b/recipes/MongoDB_Compass_Community.yml index 97aadcec..19acf43e 100644 --- a/recipes/MongoDB_Compass_Community.yml +++ b/recipes/MongoDB_Compass_Community.yml @@ -2,13 +2,11 @@ app: MongoDB_Compass_Community lowerapp: mongodb-compass-community ingredients: - dist: trusty - sources: - - deb http://archive.ubuntu.com/ubuntu/ trusty main universe script: - - DEB=$(wget -q "https://www.mongodb.com/download-center/compass?jmp=docs" -O - | sed -e 's|,|,\n|g' | grep -e "https://downloads.mongodb.com/compass/.*mongodb-.*_amd64.deb" | cut -d '"' -f 4 | grep community | head -n 1) - - wget -c "$DEB" - - ls mongo*.deb | cut -d _ -f 2 | sed -e 's|.deb||g' > VERSION + - DLD=$(wget -q "https://api.github.com/repos/mongodb-js/compass/releases/latest" -O - | grep -E "https.*amd64.deb" | cut -d'"' -f4 | sed '$!d') + - wget -c $DLD + - echo $DLD | cut -d/ -f8 > VERSION script: - - ls + - cp usr/share/applications/mongodb-compass.desktop . + - cp usr/share/pixmaps/mongodb-compass.png . From eb32a2a59a37d8b54b543edd59ad85480015f0de Mon Sep 17 00:00:00 2001 From: Agung Tuah Ananda Date: Wed, 23 Aug 2023 22:39:54 +0700 Subject: [PATCH 2/2] Fix: MongoDB Compass Community not building, link from docs --- recipes/MongoDB_Compass_Community.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/MongoDB_Compass_Community.yml b/recipes/MongoDB_Compass_Community.yml index 19acf43e..c3f8d457 100644 --- a/recipes/MongoDB_Compass_Community.yml +++ b/recipes/MongoDB_Compass_Community.yml @@ -3,7 +3,7 @@ lowerapp: mongodb-compass-community ingredients: script: - - DLD=$(wget -q "https://api.github.com/repos/mongodb-js/compass/releases/latest" -O - | grep -E "https.*amd64.deb" | cut -d'"' -f4 | sed '$!d') + - DLD=$(curl https://www.mongodb.com/docs/compass/current/page-data/install/page-data.json | jq | grep -E "https.*amd64.deb" | cut -d'"' -f4 | cut -d' ' -f2) - wget -c $DLD - echo $DLD | cut -d/ -f8 > VERSION