build: Follow up vodozemac web
This commit is contained in:
parent
2476e82c8e
commit
72f0b821a7
5 changed files with 6 additions and 3 deletions
1
assets/vodozemac/.gitignore
vendored
Normal file
1
assets/vodozemac/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
vodozemac_bindings_dart*
|
||||
|
|
@ -21,7 +21,7 @@ void main() async {
|
|||
// widget bindings are initialized already.
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
|
||||
await vod.init();
|
||||
await vod.init(wasmPath: './assets/assets/vodozemac/');
|
||||
|
||||
Logs().nativeColors = !PlatformInfos.isIOS;
|
||||
final store = await SharedPreferences.getInstance();
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ abstract class ClientManager {
|
|||
? const NativeImplementationsDummy()
|
||||
: NativeImplementationsIsolate(
|
||||
compute,
|
||||
vodozemacInit: vod.init,
|
||||
vodozemacInit: () => vod.init(wasmPath: './assets/assets/vodozemac/'),
|
||||
);
|
||||
|
||||
static Future<Client> createClient(
|
||||
|
|
|
|||
|
|
@ -124,6 +124,7 @@ flutter:
|
|||
assets:
|
||||
- assets/
|
||||
- assets/sounds/
|
||||
- assets/vodozemac/
|
||||
|
||||
msix_config:
|
||||
display_name: FluffyChat
|
||||
|
|
|
|||
|
|
@ -5,5 +5,6 @@ cd .vodozemac
|
|||
cargo install flutter_rust_bridge_codegen
|
||||
flutter_rust_bridge_codegen build-web --dart-root dart --rust-root $(readlink -f rust) --release
|
||||
cd ..
|
||||
mv .vodozemac/dart/web/pkg ./web/
|
||||
rm ./assets/vodozemac/vodozemac_bindings_dart*
|
||||
mv .vodozemac/dart/web/pkg/vodozemac_bindings_dart* ./assets/vodozemac/
|
||||
rm -rf .vodozemac
|
||||
Loading…
Add table
Reference in a new issue