rive-app / rive-app/rive-flutter

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

Open
#647 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dart
Stars
1.5k
Forks
240
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Windows failure with dart run rive_native:setup --verbose --clean --platform android, then inspect the _unzipFile method in bin/setup.dart. Compare its archive extraction behavior with the reported pure-Dart workaround using the archive package. Done means Android and Windows setup can download and extract binaries on Windows without the PowerShell parsing error.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, powershell
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.