feat: Reenable native imaging for all platforms

This commit is contained in:
Christian Kußowski 2026-02-20 17:28:19 +01:00
commit 162a594d80
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
5 changed files with 125 additions and 4 deletions

View file

@ -1,5 +1,6 @@
#!/bin/sh -ve
# Compile Vodozemac for web
version=$(yq ".dependencies.flutter_vodozemac" < pubspec.yaml)
version=$(expr "$version" : '\^*\(.*\)')
git clone https://github.com/famedly/dart-vodozemac.git -b ${version} .vodozemac
@ -10,6 +11,14 @@ cd ..
rm -f ./assets/vodozemac/vodozemac_bindings_dart*
mv .vodozemac/dart/web/pkg/vodozemac_bindings_dart* ./assets/vodozemac/
rm -rf .vodozemac
flutter pub get
dart compile js ./web/native_executor.dart -o ./web/native_executor.js -m
dart compile js ./web/native_executor.dart -o ./web/native_executor.js -m
# Download native_imaging for web:
version=$(yq ".dependencies.native_imaging" < pubspec.yaml)
version=$(expr "$version" : '\^*\(.*\)')
curl -L "https://github.com/famedly/dart_native_imaging/releases/download/v${version}/native_imaging.zip" > native_imaging.zip
unzip native_imaging.zip
mv js/* web/
rmdir js
rm native_imaging.zip