mirror of
https://github.com/DrDonk/unlocker.git
synced 2026-04-26 06:06:01 +03:00
No results
2
Building from source
David Parsons edited this page 2023-02-06 12:24:57 +00:00
Compiling from source code
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.
Building on 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 unlockerbuild.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.
Building on Linux
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 unlockersh 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.
Build a specific release
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