A simple application to watch videos in the terminal.
2024-11-10.15-45-38.-.Trim.mp4
cli.video.player.mp4
- Go (Make sure Go is installed on your system)
You can build the application for all supported platforms by running the build.sh
script.
The builds will be placed in separate folders based on the target platform.
To run the build script:
-
Simply double-click the
build.sh
file. -
The binaries will be created in the
build/
directory under the corresponding platform folders (e.g.,build/linux_arm64/
,build/windows/
).
-
Ensure that the
build.sh
script is executable. If it's not, you can make it executable by running:chmod +x build.sh
-
Run the
build.sh
script from the command line:./build.sh
-
The binaries will be created in the
build/
directory under the corresponding platform folders (e.g.,build/linux_arm64/
,build/windows/
).
After building the application, you can set it up for global use so that you can run it from anywhere on your system.
-
Copy the binary to a directory that's included in your
PATH
. Common directories include/usr/local/bin/
or/usr/bin/
.sudo cp build/linux_arm64/play /usr/local/bin/
For AMD64, you would use:
sudo cp build/linux_amd64/play /usr/local/bin/
-
Ensure the binary has executable permissions:
sudo chmod +x /usr/local/bin/play
-
Now you can run the application globally from anywhere by typing:
play video.mp4 play "other video.mp4"
After building the application, you can set it up for global use by adding the directory containing the play.exe
file to your system's environment variables:
-
Build the application using
build.sh
. -
Add the directory containing the
play.exe
file to your system's environment variables:
- Open the Start Menu, search for "Environment Variables," and select "Edit the system environment variables."
- In the "System Properties" window, click on "Environment Variables."
- Under "System variables," find and select the
Path
variable, then click "Edit." - Click "New" and add the full path to the directory containing
play.exe
. - Click "OK" to save the changes.
-
Open a new command prompt window and run the application by typing:
play video.mp4 play "other video.mp4"