-
-
Notifications
You must be signed in to change notification settings - Fork 950
Building Ruffle
Justin-CB edited this page Mar 27, 2020
·
16 revisions
Ruffle is built using the Rust programming language. The first step to building Ruffle:
- Install Rust for your platform.
Ruffle can be built for Linux, OSX, and Windows using the following commands:
cd desktopcargo run -- testing.swf
Ruffle uses npm and wasm-pack to build for web.
Navigate to your cloned repository's main directory and build with these steps:
cd web/self-hostednpm installnpm run build- Build files will be placed in the
distfolder
The demo page is a quick way to test SWF content in Ruffle on the web. Navigate to your cloned repository's main directory and run it with these steps:
cd web/demonpm installnpm run serve -- --mode=production- Navigate to the indicated page in your browser (usually http://localhost:8080)
- Install Rust for your platform.
- Install wasm-pack.
Navigate to your cloned repository's main directory and follow these steps:
cd webwasm-pack build --out-name=ruffle --target=web- The package scripts are built in the
pkgfolder
Navigate to your cloned repository's main directory and follow these steps:
cd web/extensionnpm installnpm run build- Build files will be placed in the
buildfolder, which is an unpacked extension and can be loaded using the instructions in the extension section of the Using Ruffle wiki page.
To run unit and regression tests:
cargo test --all
© 2025 Ruffle Wiki Contributors. View license.