Skip to content
This repository has been archived by the owner on Jan 20, 2025. It is now read-only.

Commit

Permalink
Add build.sh file for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
dnjulek committed Feb 1, 2024
1 parent f46dfb3 commit ffcc0e3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ ssim = core.ssimulacra2.SSIMULACRA2(ref, dist)

## Building
``zig build -Doptimize=ReleaseFast``

[Download](https://ziglang.org/download/) the latest zig-dev, or run the ``build.sh`` file if you're on Linux.
16 changes: 16 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh

set -x

wget https://github.com/ziglang/www.ziglang.org/raw/master/data/releases.json
json_file="releases.json"

VER=$(jq -r '.master.version' "${json_file}")
ZNAME="zig-linux-x86_64-${VER}"

wget "https://ziglang.org/builds/${ZNAME}.tar.xz"
tar -xf "${ZNAME}.tar.xz"

"${ZNAME}/zig" build -Doptimize=ReleaseFast

sudo mv zig-out/lib/libssimulacra2.so /usr/lib/vapoursynth

0 comments on commit ffcc0e3

Please sign in to comment.