This repository holds examples in Rust that can be compiled as vpk for Sony Playstation Vita
- Vita SDK must be installed, and
VITASDKenvironment variable must be set to its location. You can add the environment variable to your.bashrc(or another configuration file if you are using a different shell), or you can use a tool like direnv, and put this in a.envrc. - cargo-vita tool is required for building `vpk`` files. Run this command to install it:
cargo install cargo-vita
- PrincessLog is required for monitoring stdout/stderr from your Vita.
- vitacompanion is required for uploading
eboot.bin/vpkfiles to Vita, and running commands.
To build the vpk for every example run:
cargo vita build vpk --releaseTo build the vpk for std-tests run:
cargo vita build vpk --release --package vita-std-tests --testsTo build the vpk for any specific package:
cargo vita build vpk --release --package {PACKAGE}You can automate uploading of vpk to ux0:/download/, or update eboot.bin for already installed vpk.
To upload all vpk artifacts, use --upload flag of vpk subcommand:
cargo vita build vpk --upload --releaseTo update a specific eboot.bin and run it use --update --run flags of eboot subcommand. Keep in mind that vpk must be installed in order for that to work:
cargo vita build eboot --update --run --release --package {PACKAGE}Except where noted (below and/or in individual files), all code in this repository is dual-licensed at your option under either:
- MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)