mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
install snapd before snapcraft commands
This commit is contained in:
@@ -55,6 +55,8 @@ before_build:
|
|||||||
- sh: |
|
- sh: |
|
||||||
if [ "${SNAP_TOKEN}" != "" -a "${PROD_DEPLOY}" == "true" ]
|
if [ "${SNAP_TOKEN}" != "" -a "${PROD_DEPLOY}" == "true" ]
|
||||||
then
|
then
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get -y install snapd
|
||||||
sudo snap install snapcraft --classic
|
sudo snap install snapcraft --classic
|
||||||
echo "$SNAP_TOKEN" | snapcraft login --with -
|
echo "$SNAP_TOKEN" | snapcraft login --with -
|
||||||
fi
|
fi
|
||||||
@@ -113,8 +115,6 @@ after_build:
|
|||||||
if($env:PROD_DEPLOY -eq "true") {
|
if($env:PROD_DEPLOY -eq "true") {
|
||||||
if($isLinux) {
|
if($isLinux) {
|
||||||
echo "Deploy Linux..."
|
echo "Deploy Linux..."
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get -y install snapd
|
|
||||||
./scripts/snap-build.ps1 -version $env:PACKAGE_VERSION
|
./scripts/snap-build.ps1 -version $env:PACKAGE_VERSION
|
||||||
|
|
||||||
sudo snap install ./dist/snap/bw*.snap --dangerous
|
sudo snap install ./dist/snap/bw*.snap --dangerous
|
||||||
|
|||||||
Reference in New Issue
Block a user