1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-05-29 06:30:52 +00:00
starship/build.rs
David Knaack 89fd5320af
feat(release): add windows msi installers (#4031)
* feat(release): add windows msi installers

* add install documentation

* use intransparent ico-file

* run installer tests on push, add continue-on-error
2022-06-02 22:26:10 +02:00

16 lines
341 B
Rust

use std::error::Error;
fn main() -> Result<(), Box<dyn Error>> {
shadow_rs::new().map_err(|err| err.to_string())?;
#[cfg(windows)]
{
let mut res = winres::WindowsResource::new();
res.set_manifest_file("starship.exe.manifest")
.set_icon("media/icon.ico");
res.compile()?;
}
Ok(())
}