Use smc and just to package
This commit is contained in:
parent
d1fe41cbee
commit
68860aad80
6 changed files with 56 additions and 535 deletions
24
Justfile
Normal file
24
Justfile
Normal 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"
|
Loading…
Add table
Add a link
Reference in a new issue