ruffle README

The project's README from github.com/ruffle-rs/ruffle. As one markdown file: README.md.

Ruffle

Rust Build Status Web Build Status Ruffle Discord Ruffle translations
Firefox Extension Chrome Extension Ruffle Flathub Ruffle npm Ruffle AUR
website | demo | nightly builds | wiki

Ruffle

Ruffle is an Adobe Flash Player emulator written in the Rust programming language. Ruffle targets both the desktop and the web using WebAssembly.

Table of Contents

Project status

Ruffle supports ActionScript 1, 2 and 3 pretty well, but it's still not finished by any means. Please report any issues in the Issue Tracker.

Using Ruffle

The easiest way to try out Ruffle is to visit the web demo page, then click the "Select File" button to load a SWF file of your choice.

Nightly builds of Ruffle are available for desktop and web platforms.

For more detailed instructions, see our wiki page.

Building from source

Prerequisites

Linux prerequisites

The following are typical dependencies for Linux:

Desktop

Build

Use the following command to build and run the desktop app:

cargo run --release --package=ruffle_desktop

To run a specific SWF file, pass the SWF path as an argument:

cargo run --release --package=ruffle_desktop -- test.swf

To build in debug mode, simply omit --release from the command.

Desktop has a few optional features which you can specify via --features, comma separated:

macOS

Ruffle desktop can be built from our Homebrew Tap:

brew install --HEAD ruffle-rs/ruffle/ruffle

Note: because it is HEAD-only, you'll need to run brew upgrade --fetch-HEAD ruffle each time you want to update.

Web or Extension

Follow the instructions in the web directory for building either the web or browser extension version of Ruffle.

This project is tested with BrowserStack.

Android

Follow the instructions in the ruffle-android project for building the Android application of Ruffle.

Scanner

If you have a collection of "real world" SWFs to test against, the scanner may be used to benchmark ruffle's parsing capabilities. Provided with a folder and an output filename, it will attempt to read all of the Flash files and report on the success of such a task.

cargo run --release --package=ruffle_scanner -- scan folder/with/swfs/ results.csv

Exporter

If you have a SWF file and would like to capture an image of it, you may use the exporter tool. This currently requires hardware acceleration, but can be run headless (with no window).

Structure

Sponsors

You can support the development of Ruffle via GitHub Sponsors. Your sponsorship will help to ensure the accessibility of Flash content for the future. Thank you!

Sincere thanks to the diamond level sponsors of Ruffle:

Newgrounds.com CPMStar Sébastien Bénard Crazy Games Cool Math Games The New York Times Armor Games Onda Educa TwoPlayerGames.org wowgame.jp Matt Roszak Doll Divine Movavi Kongregate Bubble Shooter Neopets

License

Ruffle is licensed under either of

at your option.

Ruffle depends on third-party libraries under compatible licenses. See LICENSE.md for full information.

Contributing

Ruffle welcomes contribution from everyone. See CONTRIBUTING.md for help getting started.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.

The entire Ruffle community, including the chat room and GitHub project, is expected to abide by the Code of Conduct that the Rust project itself follows.

ruffle (ruffle-rs/ruffle)

Searching Database…

18.7K ·GitHub
Что это такое?Ruffle — это эмулятор Adobe Flash Player, написанный на Rust. Он возвращает Flash-контент к жизни и на десктопе, и в интернете, а в браузере работает через WebAssembly.
Это одна программа или несколько — где её вообще можно запустить?Один эмулятор с несколькими оболочками: десктопный клиент, веб-клиент на wasm-bindgen, браузерное расширение и приложение для Android. Под капотом ядро эмулятора — общий код.
Как попробовать его на каком-нибудь своём Flash-файле?Зайдите на страницу веб-демо и нажмите 'Select File', чтобы загрузить любой SWF — это самый простой способ. Для постоянного использования публикуются nightly-сборки для десктопа и веба.
Заработают ли все мои старые Flash-игры и анимации?Пока не все. ActionScript 1, 2 и 3 поддерживаются 'довольно хорошо', но README честно предупреждает, что эмулятор ещё не доделан, и просит сообщать о проблемах в Issue Tracker.
Оно бесплатное? Могу ли я использовать его в своём проекте?Бесплатно, с двойной лицензией Apache 2.0 или MIT — на ваш выбор, а сторонние зависимости распространяются под совместимыми лицензиями. Разработка финансируется через GitHub Sponsors.
Что вообще такое SWF-файл?SWF — это формат, в котором распространяется Flash-контент: игры, анимации и приложения. В Ruffle есть отдельный парсер SWF и ActionScript — один из ключевых компонентов проекта.
А Flash-видео (FLV) оно тоже воспроизводит?Да — в кодовой базе есть бэкенды для декодирования видео и отдельный декодер Flash Video (FLV), так что видео поддерживается наравне с играми и анимациями.
Как запустить нативное десктопное приложение?Соберите и запустите его через cargo: cargo run --release --package=ruffledesktop, передав путь к SWF, чтобы открыть его сразу. На macOS можно также установить из Homebrew-тапа проекта: brew install --HEAD ruffle-rs/ruffle/ruffle.
Можно ли массово протестировать или сделать скриншоты целой коллекции SWF-файлов?Да, для этого есть две вспомогательные утилиты: сканер разбирает папку с реальными SWF-файлами и записывает результаты парсинга в CSV, а экспортер снимает PNG-скриншоты SWF (можно сразу несколько кадров с --frames 5). Экспортеру нужно аппаратное ускорение, но он умеет работать без интерфейса (headless).
Creator
ruffle-rs
Size
178.4 MB
Stars
18.7K
Age
7y
Commits · 90 Days