Use smc and just to package

This commit is contained in:
Rémi BERTHO 2023-11-07 20:55:38 +01:00
parent d1fe41cbee
commit 68860aad80
Signed by: dalan
GPG key ID: EE3B917931C07B64
6 changed files with 56 additions and 535 deletions

24
Justfile Normal file
View file

@ -0,0 +1,24 @@
#!/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"