From b5eb8aa46957374ba02bb85c8218e2ae48fc9cc6 Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Wed, 7 Feb 2024 12:15:01 +0100 Subject: [PATCH] fix: correct search .deb --- stores/snapcraft/build.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/stores/snapcraft/build.sh b/stores/snapcraft/build.sh index 4bb98fc..47bf368 100755 --- a/stores/snapcraft/build.sh +++ b/stores/snapcraft/build.sh @@ -9,6 +9,7 @@ cd "$( dirname "${BASH_SOURCE[0]}" )" # Include utilities . ../../utils.sh +SNAP_VERSION=$( echo "${RELEASE_VERSION}" | sed 's|\-insider||' ) ICON_NAME="$( echo "${APP_NAME}" | awk '{print tolower($0)}' )" if [[ "${VSCODE_QUALITY}" == "insider" ]]; then @@ -18,7 +19,7 @@ fi rm -rf .build mkdir -p .build/snap/gui -DEB_ARCHIVE=$( ls ../../assets/*.deb ) +DEB_ARCHIVE=$( ls ../../vscode/.build/linux/deb/amd64/deb/*.deb ) if [[ -z "${DEB_ARCHIVE}" ]]; then ARCHITECTURE=$( dpkg --print-architecture ) @@ -44,8 +45,6 @@ mv ".build/deb/usr/share/${BINARY_NAME}" ".build/snap/usr/share/${BINARY_NAME}" # Prepare snapcraft.yaml cp ${VSCODE_QUALITY}/snapcraft.yaml .build/snap/snapcraft.yaml -SNAP_VERSION=$( echo "${RELEASE_VERSION}" | sed 's|\-insider||' ) - replace "s|@@SNAP_NAME@@|${BINARY_NAME}|g" .build/snap/snapcraft.yaml replace "s|@@SNAP_VERSION@@|${SNAP_VERSION}|g" .build/snap/snapcraft.yaml