11 releases
new 0.3.7 | Feb 13, 2025 |
---|---|
0.3.6 | Feb 13, 2025 |
0.3.6-repro.6 |
|
0.2.0 | Jul 25, 2023 |
0.1.1 | May 28, 2023 |
#137 in Cargo plugins
22KB
505 lines
altvup
altvup
is an installer for the Rust module on alt:V.
It can also download alt:V server binaries & data files.
If you are familiar with
altv-pkg
,altvup
is Rust version of it
How to install
Recommended: (if you don't have it: cargo-binstall)
cargo binstall cargo-altvup
Or you can compile from source code: (but it's gonna take longer)
cargo install cargo-altvup
How to use
cargo altvup <branch>
- it will install rust-module
(more about it here), alt:V server files (altv-server(.exe)
binary, data bins, etc.) and minimal server config if it doesn't exists.
<branch>
- alt:V branch, possible values: release or rc
For example: cargo altvup release
There are also some optional parameters:
--force-recompile
Compile latest rust-module
again (if rust-module
binary already exists it wont be installed by default).
For example: cargo altvup release --force-recompile
--reloading
Enable reloading feature for development.
For example: cargo altvup release --reloading
--dont-compile
Don't download altv-rust
source code and compile rust-module
binary.
For example: cargo altvup release --dont-compile
--src-dir
The directory to which altv-rust
source code will be downloaded (.altvup-src
by default).
For example: cargo altvup release --src-dir=my_dir
--jsv2
Download serverside part of jsv2 module (disabled by default).
For example: cargo altvup release --jsv2
--voice-server
Download external voice server binary (disabled by default).
For example: cargo altvup release --voice-server
--rust-module-releases-pages
How many pages to fetch from github releases API to search for rust-module
source code (2 by default).
Increase it if you have "Cannot find altv-rust release of branch..." error
For example: cargo altvup release --rust-module-releases-pages=5
--pdb
NOTE: Windows only
Copy pdb file of rust-module to modules/rust-module
directory to enable backtraces for rust-module binary.
For example: cargo altvup release --pdb
How rust-module
is installed
It downloads altv-rust
source code to .altvup-src
directory (see also: --src-dir
) and compiles rust-module
(.so or .dll) to the modules/rust-module
directory, after compilation .altvup-src
directory will be deleted.
Dependencies
~5–15MB
~210K SLoC