A framework for building convergent cross-platform Nextcloud clients using Flutter.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.0 KiB

3 years ago
#!/bin/bash
set -euxo pipefail
cd "$(dirname "$0")/.."
color="#f37736"
function copy_nextcloud_app_svg() {
id="$1"
path="$2"
target="packages/neon/neon_$id/assets/app.svg"
3 years ago
if [ -f "$path/img/app.svg" ]; then
cp "$path/img/app.svg" "$target"
elif [ -f "$path/img/$id.svg" ]; then
cp "$path/img/$id.svg" "$target"
else
echo "Can not find icon for $id in $path"
exit 1
fi
sed -i "s/fill=\"#[^\"]*\"/fill=\"$color\"/g" "$target"
3 years ago
}
rm -rf /tmp/nextcloud-neon
mkdir -p /tmp/nextcloud-neon
3 years ago
copy_nextcloud_app_svg files external/nextcloud-server/apps/files
copy_nextcloud_app_svg news external/nextcloud-news
copy_nextcloud_app_svg notes external/nextcloud-notes
copy_nextcloud_app_svg notifications external/nextcloud-notifications
3 years ago
(
cd packages/neon/neon
3 years ago
# Nextcloud logo
wget https://raw.githubusercontent.com/nextcloud/promo/master/nextcloud-logo-inverted.svg -O assets/logo_nextcloud.svg
fvm dart run build_runner build --delete-conflicting-outputs
fvm flutter gen-l10n
)
./tool/format.sh