Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: MongoDB Compass Community not building #542

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions recipes/MongoDB_Compass_Community.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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=$(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

script:
- ls
- cp usr/share/applications/mongodb-compass.desktop .
- cp usr/share/pixmaps/mongodb-compass.png .