Skip to content

Compiling Sala from source

Aleksi edited this page Aug 24, 2020 · 5 revisions

Setup on Windows

  1. Follow the Gotk3 setup guide to set up your compilation environment: https://github.com/gotk3/gotk3/wiki/Installing-on-Windows
  2. Make sure that both the Git and Go binaries are in your PATH! This is important.
  3. Start "MSYS MinGW 64-bit" from Start Menu.
  4. Run go get -d -v github.com/Gskartwii/roblox-dissector (see alternative command below for WinDivert).
  5. Run cd $(go env GOPATH)/github.com/Gskartwii/roblox-dissector.
  6. Run git submodule update --init.

Setup for WinDivert

You may also want to use an additional compilation flag for WinDivert support: -tags=divert. In that case, you must download the WinDivert binary packages (the A option will most likely work). You must also download the appropriate dependencies: go get -d -v -tags=divert github.com/Gskartwii/roblox-dissector When compiling for the first time, copy x64\WinDivert.lib to your mingw64 installation's /mingw64/lib/ directory. Also copy x64\WinDivert.dll and x64\WinDivert64.sys to %GOPATH%\src\github.com\Gskartwii\roblox-dissector\ (without renaming them).

Compiling Sala after the setup

  1. Start "MSYS MinGW 64-bit" from Start Menu.
  2. Run cd $(go env GOPATH)/github.com/Gskartwii/roblox-dissector.
  3. Run go build -ldflags "-H=windowsgui" to compile the executable. Append -tags=divert to the command if you want WinDivert to be enabled.
  4. Try running the executable: ./roblox-dissector.exe
Clone this wiki locally