Skip to content

A free, open-source, web-based incremental game about printing money, forever(?).

Notifications You must be signed in to change notification settings

FaultyRAM/infinite-money-printer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Infinite Money Printer

Infinite Money Printer is a free, open-source, web-based incremental game.

Build Instructions

Setup

  1. Install Rust (we recommend using rustup to manage Rust toolchains; the following instructions assume you are using rustup).

  2. Install the standard Rust libraries for the wasm32-unknown-unknown target:

    rustup target add wasm32-unknown-unknown
  3. Install the wasm-bindgen-cli crate, which is used to generate bindings between Rust (WebAssembly) and JavaScript:

    cargo install wasm-bindgen-cli

Compilation

  1. From within the root source directory, invoke Cargo to build the infinite-money-printer-core crate:

    cargo build -p infinite-money-printer-core --target wasm32-unknown-unknown
  2. Invoke wasm-bindgen-cli to generate the Rust ←→ JavaScript bindings:

    wasm-bindgen --out-dir ./pkg --target web --split-linked-modules --reference-types ./target/wasm32-unknown-unknown/debug/infinite_money_printer_core.wasm

Note that cargo build defaults to debug builds. For release builds, you’ll need to add --release to the cargo build command and point wasm-bindgen-cli to the corresponding WebAssembly module:

cargo build --release -p infinite-money-printer-core --target wasm32-unknown-unknown
wasm-bindgen --out-dir ./pkg --target web --split-linked-modules --reference-types ./target/wasm32-unknown-unknown/release/infinite_money_printer_core.wasm

Native App

Infinite Money Printer is designed to run in either a web browser, or a native app via Tauri. The above instructions apply to both situations, but the latter requires some extra steps:

  1. If you are cross-compiling the native app, install the standard Rust libraries for each desired target:

    rustup target add <triple>
  2. Install the tauri-cli crate, which is used to pack and compile the native app:

    cargo install tauri-cli@"^2.0.0-beta"
  3. After compiling the WebAssembly modules (see Compilation above), invoke tauri-cli to compile the native app.

    1. You can test the native app locally before generating a release build:

      cargo tauri dev
    2. Once you’re ready, use tauri-cli to generate the release build (append --target <triple> if cross-compiling):

      cargo tauri build

About

A free, open-source, web-based incremental game about printing money, forever(?).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published