fix(snap): fix substitution

This commit is contained in:
Baptiste Augrain 2022-09-05 12:25:59 +02:00
parent 7c9d1d4e54
commit 21757c11e7

View file

@ -27,7 +27,7 @@ parts:
rm -f latest.json rm -f latest.json
rm -f "${SNAPCRAFT_PART_INSTALL}/${DEB}" rm -f "${SNAPCRAFT_PART_INSTALL}/${DEB}"
# Set version # Set version
snapcraftctl set-version "${VERSION/\\-insider/)}" snapcraftctl set-version "${VERSION/\\-insider/}"
# Correct path to icon. # Correct path to icon.
sed -i 's|Icon=vscodium-insiders|Icon=${SNAP}/usr/share/pixmaps/vscodium-insiders.png|g' ${SNAPCRAFT_PART_INSTALL}/usr/share/applications/codium-insiders.desktop sed -i 's|Icon=vscodium-insiders|Icon=${SNAP}/usr/share/pixmaps/vscodium-insiders.png|g' ${SNAPCRAFT_PART_INSTALL}/usr/share/applications/codium-insiders.desktop
sed -i 's|Exec=/usr/share/codium-insiders/codium-insiders|Exec=codium-insiders|g' ${SNAPCRAFT_PART_INSTALL}/usr/share/applications/codium-insiders.desktop sed -i 's|Exec=/usr/share/codium-insiders/codium-insiders|Exec=codium-insiders|g' ${SNAPCRAFT_PART_INSTALL}/usr/share/applications/codium-insiders.desktop