Skip to content

Commit

Permalink
using curl to fetch QGIS desktop files (tmp Chack)
Browse files Browse the repository at this point in the history
  • Loading branch information
betolink committed Jan 16, 2024
1 parent a3d8639 commit 33daf2d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions ci/start
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@ APPLICATIONS_DIR="${HOME}/.local/share/applications"
DESKTOP_DIR="${HOME}/Desktop"
mkdir -p "${APPLICATIONS_DIR}"
mkdir -p "${DESKTOP_DIR}"
for desktop_file_path in ${REPO_DIR}/ci/*.desktop; do
cp "${desktop_file_path}" "${APPLICATIONS_DIR}/."

# Symlink application to desktop
desktop_file_name="$(basename ${desktop_file_path})"
ln -sf "${APPLICATIONS_DIR}/${desktop_file_name}" "${DESKTOP_DIR}/${desktop_file_name}"
done


curl https://raw.githubusercontent.com/NASA-Openscapes/corn/main/ci/qgis.desktop -O --output--dir "${APPLICATIONS_DIR}/."

ln -sf "${APPLICATIONS_DIR}/qgis.desktop" "${DESKTOP_DIR}/qgis.desktop"

update-desktop-database "${APPLICATIONS_DIR}"

# Add MIME Type data from XML files in `mime/` dir to the MIME database.
MIME_DIR="${HOME}/.local/share/mime"
MIME_PACKAGES_DIR="${MIME_DIR}/packages"
mkdir -p "${MIME_PACKAGES_DIR}"
for mime_file_path in ${REPO_DIR}/ci/*.xml; do
cp "${mime_file_path}" "${MIME_PACKAGES_DIR}/."
done

curl https://raw.githubusercontent.com/NASA-Openscapes/corn/main/ci/qgis.xml -O --output--dir "${MIME_PACKAGES_DIR}/."

update-mime-database "${MIME_DIR}"

# ==== ONLY EDIT WITHIN THIS BLOCK =====
Expand Down

0 comments on commit 33daf2d

Please sign in to comment.