mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 12:25:11 +00:00
10 lines
390 B
Bash
Executable file
10 lines
390 B
Bash
Executable file
#!/bin/sh -ve
|
|
rm -r assets/js/package
|
|
|
|
OLM_VERSION=$(cat pubspec.yaml | yq .dependencies.flutter_olm)
|
|
DOWNLOAD_PATH="https://github.com/famedly/olm/releases/download/v$OLM_VERSION/olm.zip"
|
|
|
|
cd assets/js/ && curl -L $DOWNLOAD_PATH > olm.zip && cd ../../
|
|
cd assets/js/ && unzip olm.zip && cd ../../
|
|
cd assets/js/ && rm olm.zip && cd ../../
|
|
cd assets/js/ && mv javascript package && cd ../../
|