Skip to content

Building

airsquared edited this page Jun 27, 2023 · 6 revisions

Follow these instructions to build blobsaver yourself:

  1. Install JDK 19 on your machine.
  2. Download the source code for the release you want, or from master.
  3. If you are building for a platform that's not macOS (Intel/Apple Silicon), Windows (x86_64), or Linux (x86_64), download tsschecker for your architecture from here and replace the file in the correct location for your platform:
    • dist/linux/tsschecker (Linux)
    • dist/macos/Contents/MacOS/tsschecker (macOS)
    • dist/windows/files/lib/tsschecker.exe (Windows).
  4. On any Linux platform or not one of the aforementioned platforms, install the libraries libimobiledevice and libirecovery, which should be in your distribution's default repositories.
  5. Run ./gradlew build in the root of the repository and you should have the the compiled files in the directory build/distributions

You can supply additional arguments to the build:

  • -PnoCompress=true: don't compress the java bytecode and keep debug information, useful for debugging
  • -PnoConsole=false: (windows only) show console by default when running app
  • -PinstallerType=[value]: [value] can be one of:
    • portable: (windows only) don't build installer; application directory will be built to build/jpackage instead
    • tar.gz: (linux only)
    • deb: (linux only)
    • rpm: (linux only)
    • pkg: (mac only) build pkg installer

For example: ./gradlew build -PnoCompress=true -PnoConsole=false -PinstallerType=portable