-
Notifications
You must be signed in to change notification settings - Fork 539
Building from source
David Parsons edited this page Feb 6, 2023
·
2 revisions
The release ZIP file contains pre-compiled executables but if you want to compile the code please follow these instructions.
The Go language allows cross-compilation for multiple platforms and architectures. It is possible to compile the unlocker on Windows, Linux and macOS for VMware Workstation on Linux and Windows.
To build from source, do the following:
- Install go and git using either scoop or chocolatey
- Open a Windows command prompt
go install github.com/tc-hib/go-winres@latestgit clone https://github.com/DrDonk/unlocker.gitcd unlocker-
build.cmd x.y.zwhere x.y.z is the desiered Unlocker version number; e.g. 4.2.1. cd build/windows- Run the binaries as needed.
To build from source, do the following:
- Install go from your distro's repos
go install github.com/tc-hib/go-winres@latestexport PATH="$PATH:$HOME/go/bin"git clone https://github.com/DrDonk/unlocker.gitcd unlocker-
sh build.sh x.y.zwhere x.y.z is the desired Unlocker version number; e.g. 4.2.1. cd build/linux- Run the binaries as needed.
If you want to build from the source of a specific release and not of the latest commit,
add --branch <tag_name> to the git clone command. For example, if you want to build from
the v4.2.1 tag, type in:
git clone --branch v4.2.1 https://github.com/DrDonk/unlocker.git.
and then build the code on your platform.
© 2014-2026 David Parsons