mirror of
https://github.com/VSCodium/vscodium.git
synced 2024-12-23 08:52:43 +03:00
fix: correct search .deb
This commit is contained in:
parent
8024004702
commit
b5eb8aa469
@ -9,6 +9,7 @@ cd "$( dirname "${BASH_SOURCE[0]}" )"
|
|||||||
# Include utilities
|
# Include utilities
|
||||||
. ../../utils.sh
|
. ../../utils.sh
|
||||||
|
|
||||||
|
SNAP_VERSION=$( echo "${RELEASE_VERSION}" | sed 's|\-insider||' )
|
||||||
ICON_NAME="$( echo "${APP_NAME}" | awk '{print tolower($0)}' )"
|
ICON_NAME="$( echo "${APP_NAME}" | awk '{print tolower($0)}' )"
|
||||||
|
|
||||||
if [[ "${VSCODE_QUALITY}" == "insider" ]]; then
|
if [[ "${VSCODE_QUALITY}" == "insider" ]]; then
|
||||||
@ -18,7 +19,7 @@ fi
|
|||||||
rm -rf .build
|
rm -rf .build
|
||||||
mkdir -p .build/snap/gui
|
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
|
if [[ -z "${DEB_ARCHIVE}" ]]; then
|
||||||
ARCHITECTURE=$( dpkg --print-architecture )
|
ARCHITECTURE=$( dpkg --print-architecture )
|
||||||
@ -44,8 +45,6 @@ mv ".build/deb/usr/share/${BINARY_NAME}" ".build/snap/usr/share/${BINARY_NAME}"
|
|||||||
# Prepare snapcraft.yaml
|
# Prepare snapcraft.yaml
|
||||||
cp ${VSCODE_QUALITY}/snapcraft.yaml .build/snap/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_NAME@@|${BINARY_NAME}|g" .build/snap/snapcraft.yaml
|
||||||
replace "s|@@SNAP_VERSION@@|${SNAP_VERSION}|g" .build/snap/snapcraft.yaml
|
replace "s|@@SNAP_VERSION@@|${SNAP_VERSION}|g" .build/snap/snapcraft.yaml
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user