24 lines
762 B
Makefile
24 lines
762 B
Makefile
#!/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:
|
|
coreutils rm -Rf ./dist
|
|
coreutils mkdir dist
|
|
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
|
|
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"
|