This repository has been archived by the owner on Nov 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 464
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@latest
git clone https://github.com/DrDonk/unlocker.git
cd unlocker
-
build.cmd x.y.z
where 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@latest
export PATH="$PATH:$HOME/go/bin"
git clone https://github.com/DrDonk/unlocker.git
cd unlocker
-
sh build.sh x.y.z
where 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.
© David Parsons