ci: build-macos

This commit is contained in:
b1n
2024-06-26 14:16:32 +08:00
parent e8c2d5244c
commit 42ce7c54b6
9 changed files with 197 additions and 0 deletions

View File

@@ -5,4 +5,12 @@ fn main() {
res.set_icon("logo/icon.ico");
res.compile().unwrap();
}
#[cfg(target_os = "macos")]
{
use std::fs;
let version = env!("CARGO_PKG_VERSION");
fs::write("VERSION", version).unwrap();
}
}