fluffychat/scripts/build-snap.sh

9 lines
413 B
Bash
Raw Normal View History

2020-12-08 15:46:47 +01:00
#!/bin/sh -ve
2020-11-21 11:36:13 +01:00
'curl -L $(curl -H "X-Ubuntu-Series: 16" "https://api.snapcraft.io/api/v1/snaps/details/flutter?channel=latest/stable" | jq ".download_url" -r) --output flutter.snap'
sudo mkdir -p /snap/flutter
sudo unsquashfs -d /snap/flutter/current flutter.snap
rm -f flutter.snap
sudo ln -sf /snap/flutter/current/flutter.sh /snap/bin/flutter
sudo ln -sf /snap/flutter/current/env.sh /snap/bin/env.sh
2020-12-08 15:46:47 +01:00
snapcraft