#cargo #cargo-subcommand #plugin #game #ip #directory #skyline

app cargo-skyline

A cargo 子命令,用于处理用 Rust 编写的 Skyline 插件

38 个稳定版本

3.2.0 2022 年 9 月 1 日
3.0.0 2022 年 7 月 1 日
2.2.2 2022 年 5 月 15 日
2.2.1 2021 年 11 月 21 日
1.15.0 2020 年 7 月 17 日

#310 in Cargo 插件

Download history 18/week @ 2024-03-11 46/week @ 2024-03-18 11/week @ 2024-03-25 25/week @ 2024-04-01 20/week @ 2024-04-08 24/week @ 2024-04-15 16/week @ 2024-04-22 4/week @ 2024-04-29 5/week @ 2024-05-06 14/week @ 2024-05-20 13/week @ 2024-05-27 27/week @ 2024-06-03 13/week @ 2024-06-10 5/week @ 2024-06-17 12/week @ 2024-06-24

58 每月下载量

MIT 许可证

72KB
2K SLoC

cargo-skyline

A cargo 子命令,用于更轻松地处理(和创建)Skyline 插件。

cargo-skyline 1.13.0

USAGE:
    cargo skyline <SUBCOMMAND>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

SUBCOMMANDS:
    build          Build the current plugin as an NRO
    help           Prints this message or the help of the given subcommand(s)
    install        Build the current plugin and install to a switch over FTP
    list           List the files in the plugin directory for the given game
    listen         Listen for logs being output from a switch running skyline at the given ip
    new            Create a new plugin from a template
    package        Package plugin and latest Skyline into a zip file to prepare it for release
    rm             Delete a file from the plugin directory for the given game
    run            Install the current plugin and listen for skyline logging
    self-update    Update cargo-skyline command
    set-ip         Set the IP address of the switch to install to
    show-ip        Show the currently configured IP address
    update         Update libraries for current plugin folder
    update-std     Download the latest stdlib for aarch64-skyline-switch

先决条件

安装

cargo install cargo-skyline

示例用法

在当前目录下创建一个名为 fps_counter 的新插件(在同名文件夹中)

cargo skyline new fps_counter

构建当前插件为 nro

cargo skyline build

将 Switch 的 IP 设置为安装到 192.168.0.0

cargo skyline set-ip 192.168.0.0

在 IP 为 192.168.0.0 的 Switch 上安装当前插件,应用程序标题为 01006A800016E000

cargo skyline install --ip 192.168.0.0 --title-id 01006A800016E000

注意:如果已设置 IP,则可以从参数中省略(或使用参数覆盖)。

要设置插件的默认标题 ID,请使用以下格式在 Cargo.toml

[package.metadata.skyline]
titleid = "01006A800016E000"

将当前插件安装到默认 IP 和标题 ID,然后监听控制台输出

cargo skyline run

通过 Docker 的替代安装

docker build -t cargo-skyline .
docker run it cargo-skyline cargo skyline --help

依赖项

~29–45MB
~844K SLoC