Skip to content

Running dart run rive_native:setup --platform windows (or android) fails on Windows with: [rive_native] Exception: Failed to unzip the file: Expand-Archive : A positional parameter cannot be found that accepts argument #647

Description

@edrossy

Submission checklist

  • I have confirmed the issue is present in the latest version of the rive Flutter package
  • I have searched the documentation and forums and could not find an answer
  • I have searched existing issues and this is not a duplicate

Description

Steps to Reproduce

  1. Add rive_native: ^0.1.9 to pubspec.yaml
  2. Run flutter pub get
  3. Run dart run rive_native:setup --verbose --clean --platform android (or windows)

Environment

  • OS: Windows 10/11
  • rive_native version: 0.1.9
  • Flutter version: [paste output of flutter --version]

Workaround that worked

Replacing the _unzipFile method in bin/setup.dart with a pure Dart implementation using the archive package successfully unzips the files.

Expected behavior

Setup should download and extract binaries on Windows without PowerShell parsing errors (short paths like XXXXXX~1 seem to trigger it).


Additional info:
This affects both Android and Windows platform setup on Windows hosts.

Reproduction steps / code

Steps to Reproduce

  1. Add rive_native: ^0.1.9 to pubspec.yaml
  2. Run flutter pub get
  3. Run dart run rive_native:setup --verbose --clean --platform android (or windows)

Upload your reproduction files / stack trace

No response

Source .riv / .rev file

No response

Screenshots / video

No response

Rive Flutter package version

0.14.9

Flutter version

Flutter 3.44.7 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 84fc5cbb22 (4 days ago) • 2026-07-17 10:20:17 -0700
Engine • hash 7076f47b1d1a3a0edfd8837b17dc15be6abab661 (revision 69c8c61792) (5 days ago) • 2026-07-15 20:46:58.000Z
Tools • Dart 3.12.2 • DevTools 2.57.0

Device

Samsung S23 Ultra

OS version

Android 16

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions