2023-09-01 15:04:04 +02:00
|
|
|
#!/bin/bash -ex
|
2023-09-01 14:56:43 +02:00
|
|
|
|
|
|
|
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
|
|
|
php composer-setup.php
|
|
|
|
php -r "unlink('composer-setup.php');"
|
|
|
|
mv composer.phar /usr/local/bin/composer
|
|
|
|
|
|
|
|
apk add procps git unzip github-cli openssh
|
|
|
|
|
2023-09-01 15:31:26 +02:00
|
|
|
rmdir docs
|
2023-09-01 15:14:28 +02:00
|
|
|
curl -L https://github.com/danog/MadelineProtoDocs/archive/refs/heads/master.tar.gz | tar -xz
|
|
|
|
mv MadelineProtoDocs-master/ docs
|
|
|
|
|
2023-09-01 15:16:47 +02:00
|
|
|
git submodule init schemas
|
|
|
|
git submodule update schemas
|
|
|
|
|
2023-09-01 14:56:43 +02:00
|
|
|
composer update
|
|
|
|
composer build
|
|
|
|
|
2023-09-01 15:04:04 +02:00
|
|
|
if [ "$(git diff)" != "" ]; then echo "Please run composer build!"; exit 1; fi
|