/// Docs in OS X build.
pub fn resources(&mut self, _files: &Vec<&str>) -> &mut Self{ self }
/// Docs in OS X build.
- pub fn build(&mut self, _dir: InstallDir) -> Result<FruitApp, FruitError> {
+ pub fn build(&mut self, dir: InstallDir) -> Result<FruitApp, FruitError> {
+ self.self_bundle(dir)?;
+ unreachable!()
+ }
+ /// Docs in OS X build.
+ pub fn self_bundle(&mut self, _dir: InstallDir) -> Result<(), FruitError> {
Err(FruitError::UnsupportedPlatform("fruitbasket disabled or not supported on this platform.".to_string()))
}
/// Docs in OS X build.
ident != nil
}
}
- fn self_bundle(&self, dir: InstallDir) -> Result<(), FruitError> {
+ /// Same as `build`, but does not construct a FruitApp if successful.
+ ///
+ /// Useful if you'd like to use a GUI library, such as libui, and don't
+ /// want fruitbasket to try to initialize anything for you. Bundling only.
+ pub fn self_bundle(&self, dir: InstallDir) -> Result<(), FruitError> {
unsafe {
if Self::is_bundled() {
return Ok(());