A cross-platform printer service that handles custom protocol URLs for label printing.
- Custom protocol handler (
inventoryt-printer://) - Automatic protocol registration
- Support for Windows and Linux
- System tray notifications
- Automatic privilege elevation when needed
- Go 1.20 or higher
- Git
- Clone the repository:
git clone https://github.com/yourusername/inventory-tprinting-sensefinity.git
cd inventory-tprinting-sensefinity- Build for your platform:
Windows:
go build -o inventory-printer.exeLinux:
go build -o inventory-printerFor Windows (from Linux):
GOOS=windows GOARCH=amd64 go build -o inventory-printer.exeFor Linux (from Windows):
set GOOS=linux
set GOARCH=amd64
go build -o inventory-printer- Build the application for your platform
- Run the executable once to register the protocol handler
- The application will request elevated privileges if needed
The application can be triggered using URLs in the following format:
inventoryt-printer://?id=123&name=ItemName
id: Item identifiername: Item name
The project structure:
main.go: Core application logic and printing functionalityregister.go: Protocol registration handling.github/workflows/release.yml: CI/CD pipeline for automated builds
The project uses GitHub Actions to automatically:
- Build for Windows and Linux
- Create releases with binaries
- Tag versions automatically
Builds are triggered on pushes to the main branch.