mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Try to fix Snap. Part 2.
Some checks are pending
Some checks are pending
Thanks to xet7 !
This commit is contained in:
parent
9c7badb0eb
commit
3f2d4444e4
2 changed files with 19 additions and 8 deletions
|
|
@ -9,13 +9,24 @@ if [[ "$OSTYPE" == "linux-gnu" ]]; then
|
||||||
sudo systemctl enable snapd
|
sudo systemctl enable snapd
|
||||||
sudo systemctl start snapd
|
sudo systemctl start snapd
|
||||||
sudo snap install snapcraft --classic
|
sudo snap install snapcraft --classic
|
||||||
sudo snap install multipass
|
# sudo snap install multipass
|
||||||
sudo snap install lxd
|
sudo snap install lxd
|
||||||
lxd init --auto
|
lxd init --auto
|
||||||
multipass delete ubu
|
# multipass delete ubu
|
||||||
multipass purge
|
# multipass purge
|
||||||
multipass launch --name ubu
|
# multipass launch --name ubu
|
||||||
snapcraft pack
|
# snapcraft pack
|
||||||
|
# Install and initialize LXD (if not already)
|
||||||
|
sudo snap install lxd --channel=5.21/stable
|
||||||
|
sudo usermod -aG lxd "$USER"
|
||||||
|
newgrp lxd
|
||||||
|
lxd init --minimal
|
||||||
|
|
||||||
|
# Build with LXD backend and verbose logs
|
||||||
|
snapcraft --use-lxd --verbose
|
||||||
|
# If you hit a stale state, clean and retry:
|
||||||
|
#snapcraft clean
|
||||||
|
#snapcraft --use-lxd --verbose
|
||||||
exit;
|
exit;
|
||||||
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
||||||
echo "macOS"
|
echo "macOS"
|
||||||
|
|
|
||||||
|
|
@ -130,11 +130,11 @@ parts:
|
||||||
- npm
|
- npm
|
||||||
stage-packages:
|
stage-packages:
|
||||||
- libfontconfig1
|
- libfontconfig1
|
||||||
override-build: |
|
override-build: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
echo "Cleaning environment first"
|
echo "Cleaning environment first"
|
||||||
#rm -rf ~/.meteor ~/.npm /usr/local/lib/node_modules
|
#rm -rf ~/.meteor ~/.npm /usr/local/lib/node_modules
|
||||||
rm -rf .build
|
rm -rf .build
|
||||||
# Helper: resilient downloader (tries curl, then wget) with retries/backoff
|
# Helper: resilient downloader (tries curl, then wget) with retries/backoff
|
||||||
download() {
|
download() {
|
||||||
url="$1"; out="$2"; attempts="${3:-5}"; sleepsec=5
|
url="$1"; out="$2"; attempts="${3:-5}"; sleepsec=5
|
||||||
|
|
@ -248,7 +248,7 @@ parts:
|
||||||
- apt-transport-https
|
- apt-transport-https
|
||||||
- gnupg
|
- gnupg
|
||||||
- curl
|
- curl
|
||||||
override-build: |
|
override-build: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
# Resilient install of Caddy: try APT with retries, fallback to static binary
|
# Resilient install of Caddy: try APT with retries, fallback to static binary
|
||||||
echo "Installing Caddy 2..."
|
echo "Installing Caddy 2..."
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue