2023-11-07 19:55:38 +00:00
|
|
|
#!/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:
|
2023-11-09 22:15:32 +00:00
|
|
|
coreutils rm -Rf ./dist
|
|
|
|
coreutils mkdir dist
|
2023-11-07 19:55:38 +00:00
|
|
|
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
|
2023-11-09 22:15:32 +00:00
|
|
|
Start-Process -WorkingDirectory dist coreutils -ArgumentList sha512sum, -b, "SimplePanoramaViewer-2.0.0-x86_64-pc-windows-msvc-setup.exe" -RedirectStandardOutput "dist/SimplePanoramaViewer-2.0.0-x86_64-pc-windows-msvc-setup.exe.sha512sum"
|