Skip to content

Commit

Permalink
fix: correct search .deb
Browse files Browse the repository at this point in the history
  • Loading branch information
daiyam committed Feb 7, 2024
1 parent 8024004 commit b5eb8aa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions stores/snapcraft/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 )
Expand All @@ -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

Expand Down

0 comments on commit b5eb8aa

Please sign in to comment.