#!/usr/bin/env -S just --justfile set windows-shell := ["powershell.exe", "-NoLogo", "-Command"] alias b := build build: cargo build dist_linux: rm -Rf ./dist mkdir dist cargo build --release smc bin_linux files smc sources dist_win: Remove-Item dist -Force -Recurse New-Item -Path dist -Type Directory cargo build --release smc bin_win files smc sources pandoc -i LICENSE.md -s -o LICENSE.rtf Start-Process -FilePath "C:\Program Files (x86)\Inno Setup 6\compil32.exe" -ArgumentList "/cc", "win-setup.iss" -Wait Get-FileHash "dist/SimplePanoramaViewer-2.0.0-x86_64-pc-windows-msvc-setup.exe" -Algorithm SHA512 | Select-Object -ExpandProperty Hash | Out-File "dist/SimplePanoramaViewer-2.0.0-x86_64-pc-windows-msvc-setup.exe.sha512sum"