/
pushamp
/
PACman
Обзор
Документация
Войти
/
pushamp
/
PACman
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
master
build.rs
35 строк
1 KB
Dmitry Zhiltsov
feat(core): Init commit
19 фев 2026, 18:01
19 фев 2026, 18:01
1fadda9
Код
Авторство
О чём код?
use std::fs; use std::path::Path; fn main() { let out_dir = std::env::var("OUT_DIR").unwrap(); let plist_path = Path::new(&out_dir).join("Info.plist"); let plist = r#"<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>CFBundleName</key> <string>PACman</string> <key>CFBundleIdentifier</key> <string>com.pushamp.PACman</string> <key>CFBundleVersion</key> <string>0.1.0</string> <key>CFBundleShortVersionString</key> <string>0.1.0</string> <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleExecutable</key> <string>pacman-vpn</string> <key>LSUIElement</key> <true/> <key>LSMinimumSystemVersion</key> <string>13.0</string> <key>NSHighResolutionCapable</key> <true/> </dict> </plist>"#; fs::write(&plist_path, plist).expect("Failed to write Info.plist"); println!("cargo:rerun-if-changed=build.rs"); }