Skip to content

mpv-easy/mpsm-scripts

Repository files navigation

@mpv-easy/mpsm-scripts

This repository is responsible for maintaining commonly used js scripts and making them installable via @mpv-easy/mpsm. Each script can be used individually or in combination, and will try to avoid functional conflicts caused by multiple scripts.

MPV Script RFC

https://github.com/mpv-easy/mpv-easy/blob/main/blog/Revolutionizing-mpv-Scripting-A-New-Package-Format-Proposal.md

MPV Scripts

MPV Scripts

add a new script

scripts.json

Add script.json directly to the scripts

{
  "name": "green-screen",
  "download": "https://github.com/ahaoboy/green-screen/blob/main/green-screen.js",
  "description": "Display the green screen, which can be toggled on and off with the 'g' key",
  "author": "ahaoboy",
  "homepage": "https://github.com/ahaoboy/green-screen"
}

run update command

npm run update:full

udpate cdn

run ci https://github.com/mpv-easy/mpv-easy-cdn/actions/workflows/update.yml on dev branch

script name

The script file name should be consistent with the script name in meta, in order to avoid problems in some extreme cases. If you encounter problems, please open an issue

web

https://github.com/mpv-easy/mpv-build

https://mpv-easy.github.io/mpv-build/

dev

fish

set -x MPV_SCRIPT_DIR=/your_mpv_dir/portable_config/scripts ; pnpm run dev

bash

export MPV_SCRIPT_DIR=/your_mpv_dir/portable_config/scripts && pnpm run dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published