GitHub里面有写,需要在终端里操作。有兴趣可以研究下,其实不太复杂,英语好的稍轻松点,其实也就那三四个步骤。
以下拷贝于GitHub,或许中间有几步要梯子?反正等了挺久的,梯子开关了几次,好在装上去了。建议上GitHub看,粘过来的代码看着太不明显了
How to use on Linux/macOS using Nix
Note: This howto is for Nix on Linux/macOS, if you don't use Nix, you can also follow the upstream install and usage guide for Python pip instead.
Open the terminal
Install and setup Nix:
sh <(curl -L
https://nixos.org/nix/install) --daemon
mkdir -p ~/.config/nix
echo 'experimental-features = nix-command flakes' > ~/.config/nix/nix.conf
See
https://nixos.org/download.html for more details
Use Nix to install pianotrans:
nix profile install github:azuwis/pianotrans
Run pianotrans to open the GUI, choose audio/video files, hold ⌘ to select multiple files
For CLI usage, run pianotrans file1 file2 ....
To upgrade pianotrans, run:
$ nix profile list
0 github:azuwis/pianotrans#defaultPackage.aarch64-linux github:azuwis/pianotrans/e19d5fd12f4295816fad49f6398e2e53ed2d2b7a#defaultPackage.aarch64-linux /nix/store/zdalndvcralish8d43drzslv0p4pm97v-python3.9-pianotrans-0.2.1
# list nix profiles, `0` is pianotrans
$ nix --option tarball-ttl 1 profile upgrade 0
$ nix profile list
0 github:azuwis/pianotrans#defaultPackage.aarch64-linux github:azuwis/pianotrans/e944720dd0dfcc2b87dcc39c1fdaab086eba4ca6#defaultPackage.aarch64-linux /nix/store/rv5iikrdvc7jrc7mqs8mkc21qh2gklhx-python3.9-pianotrans-1.0
# pianotrans upgraded to v1.0