Skip to content

Go application that moves a specified binary file to a global path, making it accessible system-wide

License

Notifications You must be signed in to change notification settings

tachRoutine/movebin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MoveBin - Global Binary Installer

A cross-platform Go CLI tool to move a binary to a system-wide path (e.g., /usr/local/bin on Unix). Handles macOS, Linux, and Windows.

Features

  • Auto-detects OS and target directory.
  • Sets executable permissions on Unix.
  • Validates file existence and prevents overwrites.
  • Creates destination dir if needed.

Build & Install

  1. Ensure Go 1.21+ is installed.
  2. Save movebin.go.
  3. Build: go build movebin.go.
  4. Self-install: sudo ./movebin ./movebin.
  5. Run: movebin /path/to/binary.

Usage

movebin ./myapp
  • macOS/Linux: Moves to /usr/local/bin/myapp (use sudo for perms).
  • Windows: Moves to C:\Program Files\bin\myapp.exe (run as Admin).

Output: Successfully moved /path/to/myapp to /usr/local/bin/myapp.

License

MIT.

About

Go application that moves a specified binary file to a global path, making it accessible system-wide

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages